[MERGE] compare types with "is" not ==
Benjamin Peterson
benjamin at python.org
Sun Mar 8 00:28:43 GMT 2009
2009/3/7 John Arbash Meinel <john at arbash-meinel.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Benjamin Peterson wrote:
>> 2009/3/7 Benjamin Peterson <benjamin at python.org>:
>>> __class__ should always be compared with "is"
>>
>> Attaching the patch should help.
>
> I'm curious if this is really a big difference or not. But you certainly
> already did the work, and if it is "better python" then I'm happy to
> have it merged.
Mostly it's the reaction of my pep8 side. :)
>
> BB:approve
--
Regards,
Benjamin
More information about the bazaar
mailing list