Testing if a global is defined in a module

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Jul 5 19:36:24 CEST 2011


Waldek M. wrote:

> Dnia Tue, 5 Jul 2011 14:11:56 +0000 (UTC), Grant Edwards napisał(a):
>> Because those specially-formatted comments are wrong.
> 
> ... because?
> Not in sarcasm mode; just curious why you don't like them.

Because unless you are extremely disciplined, code and the comments
describing them get out of sync. Quote:

"At Resolver we've found it useful to short-circuit any doubt and just        
refer to comments in code as 'lies'. "
--Michael Foord paraphrases Christian Muirhead on python-dev, 2009-03-22




-- 
Steven




More information about the Python-list mailing list