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

2015年3月08日 23:14:08 -0700

On 03/08/2015 11:07 PM, Serhiy Storchaka wrote:
> If you don't call isinstance(x, int) (PyLong_Check* in C).
> 
> Most conversions from Python to C implicitly call __index__ or __int__, but 
> unfortunately not all.
[snip examples]
Thanks, Serhiy, that's what I was looking for.
--
~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