On Fri, Jul 22, 2016 at 3:02 AM, Stefan Ring <stefan...@gmail.com> wrote: > So to sum this up, you claim that PyLong_FromUnsignedLongLong can > somehow produce a number larger than the value range of a 64 bit > number (0x10000000000000180). I have a hard time believing this.
Perhaps I misunderstood your meaning, but Python's integers (AKA "PyLong") can be bigger that a machine-native integer (e.g. 64 bits): "All integers are implemented as “long” integer objects of *arbitrary size*." (emphasis mine) (https://docs.python.org/3.5//c-api/long.html) -eric _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com