3 ms·
returnValue raises a specific exception that inlineCallbacks understands and translates to a normal return value. It was a hack that was only needed for python
by plq 3y ago
returnValue raises a specific exception that inlineCallbacks understands and translates to a normal return value. It was a hack that was only needed for python versions that couldn't have generators return non-None values. With modern versions, you don't need it anymore -- just use return.