is parameter an iterable?

Fredrik Lundh fredrik at pythonware.com
Wed Nov 16 23:10:51 CET 2005


Steven D'Aprano wrote:

> This means we're no longer assuming what the error message will be,
> which makes our code a lot more future-proof and implementation-proof: if
> some version of Python changes the error string from "iteration over
> non-sequence" to something else, the code should continue to work
> correctly.

Alex has already posted the right way to do this.  can you please stop

</F> 






More information about the Python-list mailing list