On 2/13/06, Jim Jewett <jimjjewett at gmail.com> wrote: > 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). Given the number of folks who misappreciate the difference between __getattr__ and __getattribute__, I'm not sure I'd want to encourage using abbreviated and full forms of the same term in the same context. When confronted with the existence of __int__ and __integer__ I can see plenty of confusion ahead. -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4