Python-Dev
Threads by month
- ----- 2025 -----
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2000 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1999 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
January 2010
- 77 participants
- 42 discussions
ACTIVITY SUMMARY (12/25/09 - 01/01/10)
Python tracker at http://bugs.python.org/
To view or respond to any of the issues listed below, click on the issue
number. Do NOT respond to this message.
2537 open (+22) / 16902 closed (+19) / 19439 total (+41)
Open issues with patches: 1016
Average duration of open issues: 705 days.
Median duration of open issues: 462 days.
Open Issues Breakdown
open 2504 (+22)
pending 32 ( +0)
Issues Created Or Reopened (42)
_______________________________
doc: Code is not always colored 12/30/09
CLOSED http://bugs.python.org/issue7487 reopened flox
documention buglet for PyBuffer 12/26/09
CLOSED http://bugs.python.org/issue7577 created ronaldoussoren
easy
Behavior of operations on a closed file object is not documented 12/26/09
http://bugs.python.org/issue7578 created blep
Patch to add docstrings to msvcrt 12/26/09
http://bugs.python.org/issue7579 created brian.curtin
patch
distutils makefile from python.org installer doesn't work on OS 12/27/09
http://bugs.python.org/issue7580 created bskaplan
incomplete doc of zlib 12/27/09
CLOSED http://bugs.python.org/issue7581 created coolwanglu
[patch] diff.py to use iso timestamp 12/27/09
http://bugs.python.org/issue7582 created techtonik
patch
doctest should normalize tabs when comparing output 12/27/09
http://bugs.python.org/issue7583 created techtonik
datetime.rfcformat() for Date and Time on the Internet 12/27/09
http://bugs.python.org/issue7584 created techtonik
[patch] difflib should separate filename from timestamp with tab 12/27/09
http://bugs.python.org/issue7585 created techtonik
patch
Typo in collections documentation 12/28/09
CLOSED http://bugs.python.org/issue7586 created nneonneo
Python 3.1.1 source build issues 12/28/09
CLOSED http://bugs.python.org/issue7587 created sharmaag
unittest.TestCase.shortDescription isn't short anymore 12/28/09
http://bugs.python.org/issue7588 created exarkun
setup.py shouldn't try to build nis module when nis headers aren 12/28/09
CLOSED http://bugs.python.org/issue7589 created Arfrever
patch
'exceptions' module mentioned in documentation 12/28/09
CLOSED http://bugs.python.org/issue7590 created July
test_get_platform fails on 3.1 12/28/09
http://bugs.python.org/issue7591 created pitrou
buildbot
ssl module documentation: SSLSocket.unwrap description shown twi 12/28/09
http://bugs.python.org/issue7592 created mnewman
Computed-goto patch for RE engine 12/29/09
http://bugs.python.org/issue7593 created akuchling
patch, needs review
shlex refactoring 12/29/09
http://bugs.python.org/issue7594 created ferringb
patch, needs review
Doc typo for select.kevent() 12/29/09
CLOSED http://bugs.python.org/issue7595 created whit537
test_logging sometimes fails 12/29/09
CLOSED http://bugs.python.org/issue7596 created pitrou
curses.use_env implementation error 12/30/09
http://bugs.python.org/issue7597 created kanru
patch
Cannot install, problems with assembly? 12/30/09
CLOSED http://bugs.python.org/issue7598 created sh.00
(c)ElementTree can produce invalid XML 12/30/09
http://bugs.python.org/issue7599 created jwilk
interpreter crashes before start 12/30/09
CLOSED http://bugs.python.org/issue7600 created mhh91
Installation - 2 tests failed: test_cmd_line test_xmlrpc 12/30/09
CLOSED http://bugs.python.org/issue7601 created sadhak
Doc: make clean and make update do not delete or update Doc/tool 12/30/09
CLOSED http://bugs.python.org/issue7602 created flox
There is no 'seq' type 12/30/09
CLOSED http://bugs.python.org/issue7603 created tom66
delattr __slots__ inconsistancy 12/30/09
CLOSED http://bugs.python.org/issue7604 created ferringb
test_cmd_line fails with non-ascii path 12/30/09
http://bugs.python.org/issue7605 created pitrou
test_xmlrpc fails with non-ascii path 12/30/09
http://bugs.python.org/issue7606 created pitrou
stringlib fastsearch could be improved on 64-bit builds 12/30/09
http://bugs.python.org/issue7607 created pitrou
PyUnicode_FromFormatV handles %R and %S incorrectly. 12/30/09
CLOSED http://bugs.python.org/issue7608 created alexandre.vassalotti
Add --with-system-expat option 12/31/09
CLOSED http://bugs.python.org/issue7609 created Arfrever
patch
Cannot use both read and readline method in same ZipExtFile obje 12/31/09
http://bugs.python.org/issue7610 created lucifer
shlex not posix compliant when parsing "foo#bar" 12/31/09
http://bugs.python.org/issue7611 created jjdmol2
Fix "pass and object" typo in Library Reference / Built-in Types 12/31/09
CLOSED http://bugs.python.org/issue7612 created ygale
patch
[cppcheck] found a regression : Invalid number of character ((). 12/31/09
CLOSED http://bugs.python.org/issue7613 created ettl.martin
patch
Python 2.6.4 segfaults 12/31/09
CLOSED http://bugs.python.org/issue7614 created ttsiod
unicode_escape codec does not escape quotes 01/01/10
http://bugs.python.org/issue7615 created rhansen
patch
test_memoryview test_setitem_writable failures with Intel ICC 01/01/10
http://bugs.python.org/issue7616 created ivank
distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option 01/01/10
http://bugs.python.org/issue7617 created Arfrever
patch
Issues Now Closed (46)
______________________
True division of integers could be more accurate 715 days
http://bugs.python.org/issue1811 mark.dickinson
patch
API to clear most free lists 690 days
http://bugs.python.org/issue2019 amaury.forgeotdarc
patch
unit test UnicodeWarning 687 days
http://bugs.python.org/issue2100 ezio.melotti
test_disutils fails 568 days
http://bugs.python.org/issue3054 ronaldoussoren
patch
test_formatdate_usegmt fails on non-englisch locale 451 days
http://bugs.python.org/issue4046 r.david.murray
"à" in u"foo" raises a misleading error 410 days
http://bugs.python.org/issue4328 r.david.murray
zipfile - add __exit__ attribute to make ZipFile object compatib 287 days
http://bugs.python.org/issue5511 ezio.melotti
patch
test_urllib2 fails - urlopen error file not on local host 271 days
http://bugs.python.org/issue5625 orsenthil
Improve --with-dbmliborder option 170 days
http://bugs.python.org/issue6491 benjamin.peterson
patch
Move the special-case for integer objects out of PyBytes_FromObj 141 days
http://bugs.python.org/issue6687 alexandre.vassalotti
patch, 26backport
setup.py fails to find headers of system libffi 104 days
http://bugs.python.org/issue6943 benjamin.peterson
patch, easy
The replacement suggested for callable(x) in py3k is not equival 92 days
http://bugs.python.org/issue7006 benjamin.peterson
patch
C/API - Document exceptions 89 days
http://bugs.python.org/issue7033 lekma
patch
subprocess.check_output: "docstring has inconsistent leading whi 35 days
http://bugs.python.org/issue7381 georg.brandl
patch
optparse Documentation References Example Files that do not Exis 30 days
http://bugs.python.org/issue7404 georg.brandl
patch
datetime.datetime.isoformat truncation problem 29 days
http://bugs.python.org/issue7413 amaury.forgeotdarc
patch, needs review
doc: Code is not always colored 0 days
http://bugs.python.org/issue7487 georg.brandl
float('nan')**2 != nan. float('nan')**2 error 33 on windows 13 days
http://bugs.python.org/issue7534 mark.dickinson
patch
If a generator raises TypeError when being unpacked, an unrelate 10 days
http://bugs.python.org/issue7548 amaury.forgeotdarc
ctypes doc improvement: c_char_p 6 days
http://bugs.python.org/issue7569 georg.brandl
Strange issue : cursor.commit() with sqlite 5 days
http://bugs.python.org/issue7572 ghaering
tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestf 5 days
http://bugs.python.org/issue7575 mark.dickinson
patch
documention buglet for PyBuffer 2 days
http://bugs.python.org/issue7577 georg.brandl
easy
incomplete doc of zlib 0 days
http://bugs.python.org/issue7581 amaury.forgeotdarc
Typo in collections documentation 0 days
http://bugs.python.org/issue7586 georg.brandl
Python 3.1.1 source build issues 0 days
http://bugs.python.org/issue7587 amaury.forgeotdarc
setup.py shouldn't try to build nis module when nis headers aren 1 days
http://bugs.python.org/issue7589 benjamin.peterson
patch
'exceptions' module mentioned in documentation 1 days
http://bugs.python.org/issue7590 georg.brandl
Doc typo for select.kevent() 0 days
http://bugs.python.org/issue7595 georg.brandl
test_logging sometimes fails 1 days
http://bugs.python.org/issue7596 ezio.melotti
Cannot install, problems with assembly? 0 days
http://bugs.python.org/issue7598 ezio.melotti
interpreter crashes before start 0 days
http://bugs.python.org/issue7600 r.david.murray
Installation - 2 tests failed: test_cmd_line test_xmlrpc 1 days
http://bugs.python.org/issue7601 ezio.melotti
Doc: make clean and make update do not delete or update Doc/tool 0 days
http://bugs.python.org/issue7602 georg.brandl
There is no 'seq' type 0 days
http://bugs.python.org/issue7603 benjamin.peterson
delattr __slots__ inconsistancy 0 days
http://bugs.python.org/issue7604 benjamin.peterson
PyUnicode_FromFormatV handles %R and %S incorrectly. 0 days
http://bugs.python.org/issue7608 alexandre.vassalotti
Add --with-system-expat option 1 days
http://bugs.python.org/issue7609 benjamin.peterson
patch
Fix "pass and object" typo in Library Reference / Built-in Types 0 days
http://bugs.python.org/issue7612 ezio.melotti
patch
[cppcheck] found a regression : Invalid number of character ((). 0 days
http://bugs.python.org/issue7613 ezio.melotti
patch
Python 2.6.4 segfaults 0 days
http://bugs.python.org/issue7614 mark.dickinson
Fwd: Debian Bug#42318: urllib.py has problems with malformed pro 3436 days
http://bugs.python.org/issue210849 shinnosuke
urllib / urllib2 should cache 301 redirections 2425 days
http://bugs.python.org/issue735515 pitrou
fast modular exponentiation 2084 days
http://bugs.python.org/issue936813 mark.dickinson
patch
bdist_deb - Debian packager 316 days
http://bugs.python.org/issue1054967 astraw
patch
Carbon.Scrap.PutScrapFlavor 987 days
http://bugs.python.org/issue1700507 ronaldoussoren
Top Issues Most Discussed (10)
______________________________
11 Add Option to Bind to a Local IP Address in httplib.py 462 days
open http://bugs.python.org/issue3972
8 fast modular exponentiation 2084 days
closed http://bugs.python.org/issue936813
6 [patch] difflib should separate filename from timestamp with ta 5 days
open http://bugs.python.org/issue7585
6 [patch] diff.py to use iso timestamp 5 days
open http://bugs.python.org/issue7582
6 Implement fastsearch algorithm for rfind/rindex 24 days
open http://bugs.python.org/issue7462
5 test_xmlrpc fails with non-ascii path 2 days
open http://bugs.python.org/issue7606
5 test_logging sometimes fails 1 days
closed http://bugs.python.org/issue7596
5 Patch to add docstrings to msvcrt 6 days
open http://bugs.python.org/issue7579
5 Distutils-based installer does not detect 64bit versions of Pyt 126 days
open http://bugs.python.org/issue6792
5 _sha256 et al. encode to UTF-8 by default 17 days
open http://bugs.python.org/issue3745
1
0
Hello,
A while ago I've proposed to refactor the APIs that provides access to
the installation paths and configuration variables at runtime into a
single module called "sysconfig", and make it easier for all
implementations to work with them.
I've started a branch and worked on it, and I'd like to ask here for
some feedback. And in particular from Jython and IronPython people
because they would probably need to work in that file for their
implementation and/or propose things to add. My understanding is that
we have people like Phillip (Jenvey), Michael F., Frank W. in this
list so they can comment directly and I don't need to cross-post this
mail elsewhere.
== Installation schemes ==
First, the module contains the installation schemes for each platform
CPython uses.
An install scheme is a mapping where the key is the "code" name for a
directory, and
the value the path of that directory, with some $variable that can be expanded.
Install schemes are stored in a private mapping, where the keys are
usually the value of os.name,
and the value, the mapping I've mentionned earlier.
So, for example, the paths for win32 are:
_INSTALL_SCHEMES = {
...
'nt': {
'stdlib': '$base/Lib',
'platstdlib': '$base/Lib',
'purelib': '$base/Lib/site-packages',
'platlib': '$base/Lib/site-packages',
'include': '$base/include',
'platinclude': '$base/include',
'scripts': '$base/Scripts',
'data' : '$base',
},
...
}
where each key corresponds to a directory that contains some Python files:
- stdlib : root of the standard library
- platstdlib: root of platform-specific elements of the standard library
- purelib: the site-packages directory for pure python modules
- platlib: the site-packages directory for platform-specific modules
- include: the include dir
- platinclude: the include dir for platform-specific files
- scripts: the directory where scripts are added
- data: the directory where data file are added
All these directory are read and used by:
- distutils when a package is installed, so the install command can
dispatch files in the right place
- site.py, when Python is initialized
IOW, any part of the stdlib can use these paths to locate and work
with Python files.
The public APIs are:
* get_path_names() : returns a list of the path names ("stdlib",
"platstdlib", etc.)
* get_paths(scheme, vars) : Returns a mapping containing an install scheme.
- "scheme" is the name of the scheme, if not provided will get the
default scheme of the current platform
- vars is an optonal mapping that can provide values for the
various $variables. Notice that they all have
default values, for example $base == sys.prefix.
for example: get_paths('nt')
* get_path(name, scheme, vars): Returns one path corresponding to the scheme.
for example : get_paths('stdlib', 'nt')
Those API are generic, but maybe we could add specific APIs like:
* get_stdlib_path('nt')
These API are basically a refactoring of what already exist in
distutils/command/install.py
== Configuration variables ==
distutils.sysconfig currently provides some APIs to read values from
files like Makefile and pyconfig.h.
These API have been placed in the global sysconfig module:
* get_config_vars(): return a dictionary of all configuration
variables relevant for the current platform.
* get_config_var(name): Return the value of a single variable
* get_platform(): Return a string that identifies the current
platform. (this one is used by site.py for example)
* get_python_version() : return the short python version
(sys.version[:3]) -- this one could probably go away but is useful
because that's the marker used by Python in some paths.
== code, status, next steps ==
The code of the module can be viewed here, it's a revamp of distutils.sysconfig:
http://svn.python.org/view/*checkout*/python/branches/tarek_sysconfig/Lib/s…
I've refactored distutils/ and site.py so they work with this new
module, and added deprecation warnings in distutils.sysconfig.
All tests pass in the branch, but note that the code is still using
the .h and Makefile files. This will probably be removed later in
favor of a static _sysconfig.py file generated when Python is built,
containing the variables sysconfig reads. I'll do this second step
after I get some feedback on the proposal.
Regards
Tarek
--
Tarek Ziadé | http://ziade.org
15
36