[EMAIL PROTECTED]:
> 456 ".itervalues()" lang:python
> 415 ".iteritems()" lang:python
> 403 ".iterkeys()" lang:python
> 387 ".values()" lang:python
> 385 ".clear()" lang:python
> 256 ".update(" lang:python
> 254 ".fromkeys(" lang:python
> 224 ".has_key(" lang:python
> 201 ".get(" lang:python
> 200
Marc 'BlackJack' Rintsch:
> I don't know if this is documented somewhere but the `reversed()` function
> looks for a `__reversed__()` method that returns an iterator.
You are right, thank you, I have done some tests already, and I'll soon
add that method too.
---
Partially relat
In <[EMAIL PROTECTED]>, bearophileHUGS
wrote:
> I have implemented yet another Odict class:
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498195
> It's very slow, but it is O(1) for get, set and del too.
>
> I have added ritervalues(), rkeys(), etc methods because I presume I
> can't
> Something unrelated that I don't know where to put.
> Recently I have seen the amb operator, it's not a simple operator. I
> have seen a (very simple) Ruby implementation:
> http://www.randomhacks.net/articles/2005/10/11/amb-operator
> I think a good amb implementation is a very complex thing. Ca