From: SourceForge.net <no...@so...> - 2010-12-30 16:08:39
|
Feature Requests item #3141665, was opened at 2010-12-22 11:51 Message generated for change (Comment added) made by baoilleach You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=351645&aid=3141665&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Noel O'Boyle (baoilleach) Assigned to: Nobody/Anonymous (nobody) Summary: Support for Python PEP 384 - a stable API for extensions Initial Comment: The forthcoming Python 3.2 implements PEP 384. The short description is at http://docs.python.org/dev/whatsnew/3.2.html: "In the past, extension modules built for one Python version were often not usable with other Python versions. Particularly on Windows, every feature release of Python required rebuilding all extension modules that one wanted to use. This requirement was the result of the free access to Python interpreter internals that extension modules could use. With Python 3.2, an alternative approach becomes available: extension modules which restrict themselves to a limited API (by defining Py_LIMITED_API) cannot use many of the internals, but are constrained to a set of API functions that are promised to be stable for several releases. As a consequence, extension modules built for 3.2 in that mode will also work with 3.3, 3.4, and so on. Extension modules that make use of details of memory structures can still be built, but will need to be recompiled for every feature release." Could SWIG look into defining Py_LIMITED_API in future releases? Naturally I have no clue whether this is feasible, but if it were, it would sure save me a lot of work (in about 4 years time!). Right now, I have to create 4 distinct installers for 4 versions of Python (2.5, 2.6, 2.7, 3.1). If the 3.2 installer worked with 3.3, 3.4, etc. that'd be great. ---------------------------------------------------------------------- >Comment By: Noel O'Boyle (baoilleach) Date: 2010-12-30 16:08 Message: I've just checked and right now, I can't compile the bindings in the first place with Python 3.2. Seems to be already reported - see related bug report http://sourceforge.net/tracker/?func=detail&aid=3057804&group_id=1645&atid=101645. I understand the heads up, but I'm not familiar with either the Python or SWIG internals I'm afraid. ---------------------------------------------------------------------- Comment By: Olly Betts (olly) Date: 2010-12-23 14:18 Message: We don't really have an active SWIG/Python maintainer currently, so realistically if you want something like this to happen any time soon, you probably need to drive it forwards yourself. What happens if you just try defining Py_LIMITED_API while building the currently generated code with Python 3.2? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=351645&aid=3141665&group_id=1645 |