Testing if a global is defined in a module
Chris Rebert
clp2 at rebertia.com
Thu Jul 7 20:36:27 EDT 2011
On Thu, Jul 7, 2011 at 7:18 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2011-07-06, Waldek M. <wm at localhost.localdomain> wrote:
>> Dnia Wed, 06 Jul 2011 03:36:24 +1000, Steven D'Aprano napisa?(a):
>
>>> Because unless you are extremely disciplined, code and the comments
>>> describing them get out of sync. [...]
>
>> True, but that gets far worse with external docs. Do you have in mind
>> any better replacement?
>
> You write code that's easy to read
Reminded me of this excellent presentation:
"Uncomment Your Code"
https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw
Cheers,
Chris
More information about the Python-list
mailing list