[Python-Dev] Re: Candidate Itertools (original) (raw)
Brett C. bac at OCF.Berkeley.EDU
Fri Jul 2 00:40:50 CEST 2004
- Previous message: [Python-Dev] Allowing u.encode() to return non-strings
- Next message: [Python-Dev] -1 on @[decorator]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Raymond Hettinger wrote:
[David Eppstein]
In another place I used the dictionary directly but it amounted to the same thing. All respondents prefer having a dictionary (elements mapped to counts) instead of an itertool returning (cnt, elem) ... Just to be clear before I do it, does everyone support having dict.countkeys() as a dictionary classmethod instead of the original proposal?
I would rather not have it as a class method personally. I believe Bob suggested creating a bucket type. That sounds reasonable and could go into 'collections'
-Brett
- Previous message: [Python-Dev] Allowing u.encode() to return non-strings
- Next message: [Python-Dev] -1 on @[decorator]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]