[wingide-users] method completion

Martijn Pieters mj at zopatista.com
Mon Mar 13 10:05:15 EST 2006


ybastide wrote:
> Yep, there's a standard idiom::
> 
> if 0:
>      assert isinstance(self.logger, Logger)

No need to hide the statement in a if 0; assertions are, if your code is 
correct, harmless. You can also instruct Python to not even compile 
assertions (the only difference between 'optimized' and nonoptimized 
python bytecode).

Martijn Pieters
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : /pipermail/wingide-users/attachments/20060313/19b87062/signature.bin


More information about the wingide-users mailing list