summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-05 00:27:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-05 00:27:25 (GMT)
commitebea6fae86f4217b9515f93dc3169b219fc4222e (patch)
tree0ddb8da819b8658c839b538e1e3cdb9a4d7f8cfa
parentd7f73e913d90fdf0bab7baef51816926b42e4ed9 (diff)
downloadcpython-ebea6fae86f4217b9515f93dc3169b219fc4222e.zip
cpython-ebea6fae86f4217b9515f93dc3169b219fc4222e.tar.gz
cpython-ebea6fae86f4217b9515f93dc3169b219fc4222e.tar.bz2
Update whatsnew for Pep3149.
-rw-r--r--Doc/whatsnew/3.2.rst31
1 files changed, 27 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index c19c094..8484c65 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -105,12 +105,35 @@ aspects that are visible to the programmer:
:pep:`3147` - PYC Repository Directories
PEP written by Barry Warsaw.
-PEPs
-====
+PEP 3149 ABI Version Tagged .so Files
+=====================================
+
+The PYC repository directory allows multiple bytecode cache files to be
+co-located. This PEP implements a similar mechanism for shared object files by
+giving them a common directory and distinct names for each version.
+
+The common directory is "pyshared" and the file names are made distinct by
+identifying the Python implementation (such as CPython, PyPy, Jython, etc.), the
+major and minor version numbers, and optional build flags (such as "d" for
+debug, "m" for pymalloc, "u" for wide-unicode). For an arbtrary package, "foo",
+you may see these files when the distribution package is installed::
+
+ /usr/share/pyshared/foo.cpython-32m.so
+ /usr/share/pyshared/foo.cpython-33md.so
-Implemented PEPs:
+In Python itself, the tags are accessible from functions in the :mod:`sysconfig`
+module::
-* :pep:`3149`
+ >>> import sysconfig
+ >>> sysconfig.get_config_var('SOABI') # find the version tag
+ 'cpython-32mu'
+ >>> sysconfig.get_config_var('SO') # find the full filename extension
+ 'cpython-32mu.so'
+
+.. seealso::
+
+ :pep:`3149` - ABI Version Tagged .so Files
+ PEP written by Barry Warsaw.
Other Language Changes