set and dict iteration

Paul Rubin no.email at nospam.invalid
Thu Aug 16 17:26:17 EDT 2012


Dave Angel <d at davea.name> writes:
> Everything else is implementation defined.  Why should an implementation
> be forced to have ANY extra data structure to detect a static bug in the
> caller's code?

For the same reason the interpreter checks for type errors at runtime
and raises TypeError, instead of letting the program go into the weeds.



More information about the Python-list mailing list