[wingide-users] querying debug?
Wingware Support
support at wingware.com
Mon Feb 23 08:29:03 MST 2009
Michael Foord wrote:
>> import os
>> if os.environ.has_key('WINGDB_ACTIVE'):
>> print "debugging"
>
> Come on Stephan, has_key is deprecated - you know that. ;-)
>
> if 'WINGDB_ACTIVE' in os.environ:
Sorry, long years of habit are hard to overcome... and this
particular change I find a bit odd. I always thought of the
values as being the things "in" the dict and not the keys,
which are just the way of getting at the values quickly.
Oh well...
--
Stephan Deibel
Wingware | Python IDE
Advancing Software Development
www.wingware.com
More information about the wingide-users
mailing list