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/2015-March/138671.html below:

[Python-Dev] boxing and unboxing data types

[Python-Dev] boxing and unboxing data types [Python-Dev] boxing and unboxing data typesEthan Furman ethan at stoneleaf.us
Mon Mar 9 05:33:00 CET 2015
On 03/08/2015 09:12 PM, Steven D'Aprano wrote:

> Does that answer your questions?

No, unfortunately.  You correctly guessed my question is motivated by the IntFlag discussion.

I guess it could boil down to:  if IntEnum was not based on 'int', but instead had the __int__ and __index__ methods
(plus all the other __xxx__ methods that int has), would it still be a drop-in replacement for actual ints?  Even when
being used to talk to non-Python libs?

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150308/ab6ea129/attachment.sig>
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