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/2003-December/040706.html below:

[Python-Dev] Re: Re: Int FutureWarnings and other 2.4 TODOs

[Python-Dev] Re: Re: Int FutureWarnings and other 2.4 TODOs [Python-Dev] Re: Re: Int FutureWarnings and other 2.4 TODOsPhillip J. Eby pje at telecommunity.com
Thu Dec 4 10:38:21 EST 2003
At 09:36 AM 12/4/03 -0500, Andrew Koenig wrote:
>So here's the strategy:  If the low-order bit of an integer is *off*, it's
>really a pointer to the rest of the implementation.  If the low-order bit is
>*on*, then it represents an integral value that can be obtained by doing a
>one-bit arithmetic right shift.
>
>Yes, it's sleazy.  But I imagine it would be much faster than using
>inheritance.

I imagine it wouldn't, because it'd add an extra test to not only every 
Py_INCREF and Py_DECREF, but every PyObject_something call.


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