Tag: python 3.0

  • Python 3.0 and Iterators that Quack like a List

    I’d like to raise an issue that was partially discussed in 2006 ( http://groups.google.co.uk/group/comp.lang.python/browse_thread/thread/1811df36f2a131fd/435ba1cae670aecf?lnk=st&q=python+iterators+duck+typing#435ba1cae670aecf ) with the half-promise that it would be revisited before Python 3000. Now’s the last chance. Duck Typing What is Duck Typing? Ultimately, the goal is that if you do something stupid, Python will give you a big fat error message […]