Message133076
bool(Counter({'a': 0'})) is True.
Is this wise? I want to be able to do:
if my_counter:
whatever
To check whether my counter has any elements. Currently this seems to be impossible because of this bug.
Will we have to keep this weird behavior because of backwards compatibility? If so, perhaps `.elements` could be turned into a smart object so we could at least do `if my_counter.elements():` and get the expected result.
If you want a patch let me know and I'll write one. |
|
Date |
User |
Action |
Args |
2011-04-05 18:57:11 | cool-RR | set | recipients:
+ cool-RR |
2011-04-05 18:57:11 | cool-RR | set | messageid: <1302029831.74.0.558006617631.issue11775@psf.upfronthosting.co.za> |
2011-04-05 18:57:10 | cool-RR | link | issue11775 messages |
2011-04-05 18:57:09 | cool-RR | create | |
|