Message167533
This is intentional handling of non-existant variables, and is not resticted to '==' operations. Returning the value of a Counter parameter that has not yet been set returns 0 by default.
See the documentation here:
http://docs.python.org/library/collections.html
"Counter objects have a dictionary interface except that they return a zero count for missing items instead of raising a KeyError:"
Since this is intended behavior, I recommend this bug become closed. |
|
Date |
User |
Action |
Args |
2012-08-06 02:44:53 | slwebber | set | recipients:
+ slwebber, rhettinger |
2012-08-06 02:44:47 | slwebber | set | messageid: <1344221087.45.0.533158816878.issue14182@psf.upfronthosting.co.za> |
2012-08-06 02:44:45 | slwebber | link | issue14182 messages |
2012-08-06 02:44:39 | slwebber | create | |
|