[Python-Dev] boxing and unboxing data types
Serhiy Storchaka
storchaka at gmail.com
Mon Mar 9 08:13:57 CET 2015
More information about the Python-Dev mailing list
Mon Mar 9 08:13:57 CET 2015
- Previous message (by thread): [Python-Dev] boxing and unboxing data types
- Next message (by thread): [Python-Dev] boxing and unboxing data types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 09.03.15 08:12, Ethan Furman wrote: > 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. May be most if not all of these examples can be considered as bugs and slowly fixed, but we can't control third-party code.
- Previous message (by thread): [Python-Dev] boxing and unboxing data types
- Next message (by thread): [Python-Dev] boxing and unboxing data types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list