Peer review: Python encyphering script
Nick Mathewson
QnickQm at alum.mit.edu
Thu Feb 28 10:27:12 EST 2002
In article <a5lfoo$38q$1 at animus.fel.iae.nl>, Carel Fellinger wrote:
> Nick Mathewson <QnickQm at alum.mit.edu> wrote:
>> In article <3c7c1a91.150875561 at menuhin.netfront.net>, A. Jones wrote:
> ...
>>> if type(blurb[z]) == "<type 'list'>": #Stops nesting
>>> strings
>
>> #It's bad style to rely in the string value of a type. Intstead, you
>
> Not only is it bad style, it does do what he thinks it does:)
Yeah, so it seems. I should have resisted my "assume it somehow
works" instincts and checked whether type([]) had an __eq__ method
that did string coercion.
Apparently not; Python is not C++.
And-what-a-good-thing-that-is-ly Y'rs,
Nick
More information about the Python-list
mailing list