Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
That's much better than:
return _out
because when _out == None, it will blow up because r is not declared.
Happy debugging :D -
@gears return _out or False
What i mean is that, the multiple line version has an issue that will make it crash when _out == None
Refactoring legacy code when...
if _out == True:
r = True
elif _out == False:
r = False
return r
undefined
python legacy fuck