This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author slwebber
Recipients rhettinger, slwebber
Date 2012-08-06.02:44:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344221087.45.0.533158816878.issue14182@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-08-06 02:44:53slwebbersetrecipients: + slwebber, rhettinger
2012-08-06 02:44:47slwebbersetmessageid: <1344221087.45.0.533158816878.issue14182@psf.upfronthosting.co.za>
2012-08-06 02:44:45slwebberlinkissue14182 messages
2012-08-06 02:44:39slwebbercreate