[Patches] [ python-Patches-601456 ] expose PYTHON_API_VERSION via sys
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 03 Sep 2002 06:26:28 -0700
Patches item #601456, was opened at 2002-08-28 13:17
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=601456&group_id=5470
Category: Core (C code)
Group: Python 2.3
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Skip Montanaro (montanaro)
Summary: expose PYTHON_API_VERSION via sys
Initial Comment:
I was scratching my head today about some API version mismatches I
got from the VTK Python wrappers. Apparently, somewhere along
the way the VTK build process used two different versions of the
Python compilation environment to build different extension
modules. From a debugging standpoint it seems like it would be a
mild convenience to expose PYTHON_API_VERSION via the sys
module. The attached trivial patch does this.
This should be easily portable to the 2.1 and 2.2 maintenance
branches though it's not strictly a bugfix.
Skip
----------------------------------------------------------------------
>Comment By: Skip Montanaro (montanaro)
Date: 2002-09-03 08:26
Message:
Logged In: YES
user_id=44345
checked in as Python/sysmodule.c 2.108, Doc/lib/libsys.tex 1.60 and
Misc/NEWS 1.477
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-09-02 01:30
Message:
Logged In: YES
user_id=21627
There is no documentation change: you'll need to edit
libsys.tex (using \versionadded), and Misc/NEWS.
Apart from that, the patch is fine; please apply it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=601456&group_id=5470