This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: expose PYTHON_API_VERSION via sys
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: loewis, skip.montanaro
Priority: normal Keywords: patch

Created on 2002-08-28 18:17 by skip.montanaro, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sys.diff skip.montanaro, 2002-08-28 18:17
Messages (3)
msg41053 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2002-08-28 18:17
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
msg41054 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-09-02 06:30
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.
msg41055 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2002-09-03 13:26
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
History
Date User Action Args
2022-04-10 16:05:37adminsetgithub: 37101
2002-08-28 18:17:15skip.montanarocreate