Guido: > I don't like __true_int__ very much. Personally, > I'm fine with calling it __index__
index is OK, but is there a reason __integer__ would be rejected? __int__ roughly follows the low-level C implementation, and may do odd things on unusual input. __integer__ properly creates a conceptual integer, so it won't lose or corrupt information (unless the class writer does this intentionally). -jJ _______________________________________________ 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