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 mrabarnett
Recipients cool-RR, ezio.melotti, mrabarnett, rhettinger
Date 2011-04-05.19:13:41
SpamBayes Score 0.0028942795
Marked as misclassified No
Message-id <1302030824.44.0.228727550712.issue11775@psf.upfronthosting.co.za>
In-reply-to
Content
It depends on what kind of object it's like. If it's like a dict then your example is clearly not empty, but if it's like a set then it /is/ empty, in which case it's empty if:

    all(count == 0 for count in my_counter.values())
History
Date User Action Args
2011-04-05 19:13:44mrabarnettsetrecipients: + mrabarnett, rhettinger, ezio.melotti, cool-RR
2011-04-05 19:13:44mrabarnettsetmessageid: <1302030824.44.0.228727550712.issue11775@psf.upfronthosting.co.za>
2011-04-05 19:13:41mrabarnettlinkissue11775 messages
2011-04-05 19:13:41mrabarnettcreate