Alex Martelli wrote: > I thought that's what we had __index__ for -- reject arguments that > don't SMOOTHLY turn into integers when an integer is actually > required!
Sure. However, using that would create an incompatibility, that's why you only get a warning when it falls back to not using __index__. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com