A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-November/083529.html below:

[Python-Dev] n.numbits: method or property?

[Python-Dev] n.numbits: method or property? [Python-Dev] n.numbits: method or property?Victor Stinner victor.stinner at haypocalc.com
Wed Nov 12 01:37:17 CET 2008
> n.numbits: method or property?

Fredrik Johansson and me agree to use a property.

My last patch (numbits-4.patch) implement numbits as a property. Examples:
>>> (1023).numbits
10
>>> x=1023L; x.numbits
10L
>>> x=2**(2**10); x.numbits
1025L
>>> x=2**(2**10); x.numbits.numbits   # combo!
11L

Victor
More information about the Python-Dev mailing list

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