duck-type-checking?

Terry Reedy tjreedy at udel.edu
Wed Nov 12 20:28:29 EST 2008


Joe Strout wrote:
> On Nov 12, 2008, at 2:42 PM, Tim Rowe wrote:

> True.  I love the ABC approach; now I just have to figure out whether I 
> love it enough to move our entire company over to 2.6 (despite 2.5's 
> great advantage that it's pre-installed on every Mac by default), or 
> whether instead I'll come up with some sort of ABC-compatible interim 
> solution I can use to hobble along until we do switch.

Grab _abcoll.py, abc.py, numbers.py and put in application search path.
Modify collections.py to import _abcoll.py.
See if they word 'as is' or if they use new 2.6 features, and if so, if 
they can be backported.  (If they have to be changed, others might 
appreciate the revised version too if made available via pypi.)




More information about the Python-list mailing list