M.-A. Lemburg wrote: >> sys.userdirsuffix >> ----------------- >> >> sys.userdirsuffix is an implementation and platform specific string that >> is used to construct the path for the user site directory as explained >> in PEP 370. The string contains the implementation name as well as the >> version number of Python. > > Don't we already have this information available as site.getuserbase()/ > site.getusersitepackages() ?
No, the new attribute is intended to allow a VM implementation to customise the way site.py calculates the user directories so that CPython, Jython, IronPython, etc, don't have to share the same directory. CPython will stick with the directory as named in PEP 370 (since we already released a version with that behaviour), but the other implementations will be able to choose a name that doesn't conflict with it. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com