[Python-Dev] n.numbits: method or property? (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Wed Nov 12 17:11:36 CET 2008
- Previous message: [Python-Dev] n.numbits: method or property?
- Next message: [Python-Dev] n.numbits: method or property?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mark Dickinson <dickinsm gmail.com> writes:
Right: numbits is only a natural property of a binary integer. On the other hand, I can't realistically see Python ever adopting a non power-of-two based implementation.
No, but Python is duck-typed and alternate integer classes could adopt such an implementation while trying to respect the Python-level long API.
cheers
Antoine.
- Previous message: [Python-Dev] n.numbits: method or property?
- Next message: [Python-Dev] n.numbits: method or property?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]