Re: [Python-Dev] boxing and unboxing data types

2015年3月08日 21:35:09 -0700

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~

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to