Python Gotcha's?
Cameron Simpson
cs at zip.com.au
Wed Apr 4 19:18:55 EDT 2012
On 04Apr2012 15:34, Miki Tebeka <miki.tebeka at gmail.com> wrote:
| I'm going to give a "Python Gotcha's" talk at work.
| If you have an interesting/common "Gotcha" (warts/dark corners ...) please share.
|
| (Note that I want over http://wiki.python.org/moin/PythonWarts already).
Missing "return" means "return None".
One only has to miss a control path to have this happen.
Easy enough to accomodate, if only by having a return or raise at the
end of the function, but ...
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
I really don't like :-) symbols as well. I feel that if you can't see the pie
coming, you deserve whipped cream up your nose.
- robd at cherry.cray.com (rob derrick)
More information about the Python-list
mailing list