[New-bugs-announce] [issue39762] PyLong_AS_LONG missing from longobject.h

Enji Cooper report at bugs.python.org
Wed Feb 26 13:19:28 EST 2020

New submission from Enji Cooper <yaneurabeya at gmail.com>:

While trying to port python 2 C extension code forward to python 3, I noticed that the python 2.6 PyInt -> PyLong unification lacks a forward-compatible API for PyLong_AS_LONG.

I'm not sure if this was intentional, but it is a slightly annoying wicket to deal with when forward C extension code that needs to straddle 2 and 3 for a period of time.

components: C API
messages: 362705
nosy: ngie
priority: normal
severity: normal
status: open
title: PyLong_AS_LONG missing from longobject.h
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list