Message132711
| Author |
vstinner |
| Recipients |
cool-RR, rhettinger, vstinner |
| Date |
2011年03月31日.21:51:53 |
| SpamBayes Score |
0.029776039 |
| Marked as misclassified |
No |
| Message-id |
<1301608314.12.0.270300951775.issue11733@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It would be interesting to have Counter.elements_count() if it has a complexity of O(1): if the collections maintains a total (in a private attribute).
Otherwise, I think that sum(c.values()) is enough and can be documented as an example in the Counter doc. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年03月31日 21:51:54 | vstinner | set | recipients:
+ vstinner, rhettinger, cool-RR |
| 2011年03月31日 21:51:54 | vstinner | set | messageid: <1301608314.12.0.270300951775.issue11733@psf.upfronthosting.co.za> |
| 2011年03月31日 21:51:53 | vstinner | link | issue11733 messages |
| 2011年03月31日 21:51:53 | vstinner | create |
|