Making the case for "typed" lists/iterators in python

Stefan Behnel stefan_ml at behnel.de
Fri Dec 16 15:16:22 EST 2011


Nathan Rice, 16.12.2011 19:51:
> Nothing stops me from implementing it, in fact it is VERY trivial to
> wrap member class methods onto a list subclass, and wrap functions to
> support vectorized behavior.  The problem is that as soon as you hit
> anything outside your code that returns a list or iterator, everything
> gets blown away unless you explicitly wrap the return value, which
> entirely defeats the point.

The point you are trying to make, maybe.

Stefan

PS: note that you top-posted in your reply, you should try to avoid that.




More information about the Python-list mailing list