In <7367295.815.1333578860181.JavaMail.geo-discussion-forums@ynpp8> Miki Tebeka 
<miki.teb...@gmail.com> writes:

> Greetings,

> I'm going to give a "Python Gotcha's" talk at work.
> If you have an interesting/common "Gotcha" (warts/dark corners ...)
> please share.

This is fairly pedestrian as gotchas go, but it has bitten me:

If you are working with data that is representable as either an integer
or a string, choose one and stick to it.  Treating it as both/either will
eventually lead to grief.

Or, in other words: 1 != '1'

-- 
John Gordon                   A is for Amy, who fell down the stairs
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to