[issue8759] 2.7: wrong user site directory on Linux

2010-05-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Thanks. there is an install scheme in distutils that describes the exact layout I figured that this is now exposed via the `sysconfig` module. There is also an old install scheme in `distutils.command.install`, but it seems to be

[issue4753] Faster opcode dispatch on gcc

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4753 ___ ___ Python-bugs-list

[issue1777412] Python's strftime dislikes years before 1900

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1777412 ___ ___ Python-bugs-list

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1544339 ___ ___ Python-bugs-list

[issue1659] Tests needing network flag?

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1659 ___ ___ Python-bugs-list

[issue8406] Make some setup.py paths exclude-able

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8406 ___ ___ Python-bugs-list

[issue2054] add ftp-tls support to ftplib - RFC 4217

2010-05-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list

[issue4111] Add Systemtap/DTrace probes

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- assignee: skip.montanaro - nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___

[issue5671] Speed up pickling of lists in cPickle

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5671 ___ ___ Python-bugs-list

[issue1083] Confusing error message when dividing timedelta using /

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1083 ___ ___ Python-bugs-list

[issue4194] default subprocess.Popen buffer size

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4194 ___ ___ Python-bugs-list

[issue1818] Add named tuple reader to CSV module

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1818 ___ ___ Python-bugs-list

[issue4835] SIZEOF_SOCKET_T not defined

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4835 ___ ___ Python-bugs-list

[issue1644818] Allow built-in packages and submodules as well as top-level modules

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1644818 ___ ___ Python-bugs-list

[issue504152] rfc822 long header continuation broken

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue504152 ___ ___ Python-bugs-list

[issue1759169] clean up Solaris port and allow C99 extension modules

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1759169 ___ ___ Python-bugs-list

[issue8392] unit tests rather light on testing __import__(..., level)

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8392 ___ ___ Python-bugs-list

[issue2736] datetime needs an epoch method

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2736 ___ ___ Python-bugs-list

[issue6715] xz compressor support

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4007 ___ ___ Python-bugs-list

[issue1289118] timedelta multiply and divide by floating point

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1289118 ___ ___ Python-bugs-list

[issue1374063] Broader iterable support for xmlrpclib

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- assignee: skip.montanaro - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1374063 ___ ___

[issue2623] Patch: xmlrpclib client ignores datetime tzinfo when creating iso8601 dates

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- assignee: skip.montanaro - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2623 ___ ___

[issue1659] Tests needing network flag?

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- assignee: skip.montanaro - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1659 ___ ___

[issue3132] implement PEP 3118 struct changes

2010-05-20 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: One more reference: http://msdn.microsoft.com/en-us/library/9dbwhz68(v=VS.80).aspx gives essentially the same rules for MSVC. The alignment of the beginning of a structure or a union is the maximum alignment of any individual member. Each

[issue967934] csv module cannot handle embedded \r

2010-05-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: At some point I added test_roundtrip_quoteed_newlines to the csv unit tests, and it passes both on trunk and py3k. I believe if there was a bug here it has been fixed. I just backported the test to 2.6 in r81382, and it passes there

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2010-05-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fix commited to py3k (r81364). Ok, buildbots are happy: backported as r81383 in 3.1 -- status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue8745] zipimport is a bit slow

2010-05-20 Thread Goplat
Goplat mrnobo1...@yahoo.com added the comment: Zipping up the Lib directory from the python source (1735 files) as a test, it took on average 0.10 sec to read the zip before, 0.04 sec after. (To test the time taken by zipimport isolated from other startup costs, instead of actually getting

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: no, the input is not the same, there is ImportError: No module named site. I have tree more questions: - Do you have a file named: /sw_install/python-2.6.5/Lib/site.py - what it the output when you type import sys; print sys.path - is

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2010-05-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, buildbots are happy: backported as r81383 in 3.1 My test doesn't work on Windows. We cannot delete a directory if it's the current working directory: let's try r81384. py3k commit is simpler because it uses support.test_cwd()

[issue8778] typo in docs for symtable.SymbolTable.has_import_star

2010-05-20 Thread Terrence Cole
New submission from Terrence Cole terre...@zettabytestorage.com: The documentation for symtable.SymbolTable [http://docs.python.org/py3k/library/symtable.html] lists the function has_import_start. This should be has_import_star, as listed in help(symtable.SymbolTable). I've attached a

[issue8779] utf8 codec fails to parse a character

2010-05-20 Thread Roman Gershman
New submission from Roman Gershman roma...@gmail.com: The following code fails to parse the attached file: #!/usr/bin/python3.1 if __name__ == '__main__': f = open(c:\\1.txt, mode ='r', encoding='utf-8') for line in f: print (line) -- components: Unicode files: 1.txt messages:

[issue8779] utf8 codec fails to parse a character

2010-05-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: $ hexdump -C 1.txt ec 0d 0a |...| 0003 This file is *not* encoded to utf8. -- nosy: +haypo ___ Python tracker

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-05-20 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I like the approach of providing this feature as a single attribute instead of two separate methods (set/get_options()). For what it's worth, I took a look at the patch without actually trying it, and it looks good overall, both tests and

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-20 Thread Orlando Irrazabal
Orlando Irrazabal oirr...@mendoza.gov.ar added the comment: I answer your questions - yes, i have a file named /sw_install/python-2.6.5/Lib/site.py - the output for the commands import sys; print sys.path is: ['', '/sw_install/python-2.6.5/lib/python26.zip',

[issue7384] curses crash on FreeBSD

2010-05-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I tested issue7384-5-py3k.patch on FreeBSD 8.0: it fixes the crash. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384

[issue8760] Python 2.6.5 fails to build on AIX 5.3

2010-05-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8760 ___ ___ Python-bugs-list mailing list

[issue8778] typo in docs for symtable.SymbolTable.has_import_star

2010-05-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks. Fixed in r81385. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8778

[issue1436346] yday in datetime module

2010-05-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky, mark.dickinson versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1436346 ___

[issue8774] tabnanny improperly handles non-ascii source files

2010-05-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The correct fix is to use tokenize.detect_encoding, if anyone wants to provide a patch. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8774

[issue8774] tabnanny improperly handles non-ascii source files

2010-05-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The correct fix is to use tokenize.detect_encoding, if anyone wants to provide a patch. done :-) Attached patch opens the file in binary mode to call tokenize.detect_encoding() and then use the encoding to open the file a second

[issue8774] tabnanny improperly handles non-ascii source files

2010-05-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You should handle the case of encoding being None. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8774 ___

[issue1436346] yday in datetime module

2010-05-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1436346 ___

[issue8779] utf8 codec fails to parse a character

2010-05-20 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8779 ___

[issue8774] tabnanny improperly handles non-ascii source files

2010-05-20 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You should handle the case of encoding being None. detect_encoding() never returns None for the encoding. If there is no cookie, utf8 is returned by default. -- ___ Python tracker

[issue8774] tabnanny improperly handles non-ascii source files

2010-05-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/5/20 STINNER Victor rep...@bugs.python.org: STINNER Victor victor.stin...@haypocalc.com added the comment: You should handle the case of encoding being None. detect_encoding() never returns None for the encoding. If there is no

[issue1436346] yday in datetime module

2010-05-20 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I think this should be rejected. The OP's premise was that t.timetuple()[7] was unreadable, but in the modern python, the same can be written as t.timetuple().tm_yday. The later is only slightly less readable than the

[issue1436346] yday in datetime module

2010-05-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think this should be rejected. The OP's premise was that t.timetuple()[7] was unreadable, but in the modern python, the same can be written as t.timetuple().tm_yday. Could I suggest such example be added to the documentation, though? The

[issue4111] Add Systemtap/DTrace probes

2010-05-20 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Ping... We already missed the 2.7 boat. Any hope for 3.2? -- assignee: - prescod keywords: +needs review -patch nosy: +prescod, skip.montanaro -Garen priority: normal - versions: +Python 3.2 -Python 2.7, Python 3.1

[issue8720] undo findsource regression/change

2010-05-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Holger, what do you think of this alternate patch that instead makes getsourcefile smarter? It's a simpler patch and doesn't change the API, and your tests (suitably modified) pass. -- stage: - patch review Added file:

[issue1072404] Bugs in _csv module - lineterminator

2010-05-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The doc has been fixed; using lineterminator in reader has not been and is not likely to be implemented (unless someone wants to come forward with a patch). Processing files that use \r line endings does work; as indicated you use

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: No problem! I have attached the updated patch. I am starting on the 2.7 patch now. -- Added file: http://bugs.python.org/file17424/issue-8748.2.patch ___ Python tracker rep...@bugs.python.org

[issue5332] csv sniffer

2010-05-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is in fact a doc bug. The correct way to read a csv file in python3 is to open it in text mode with newline=''. The docs have been updated to reflect this. -- nosy: +r.david.murray resolution: - out of date stage: needs

[issue2090] __import__ with fromlist=

2010-05-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file16936/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2090 ___

[issue8759] 2.7: wrong user site directory on Linux

2010-05-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8759 ___

[issue4111] Add Systemtap/DTrace probes

2010-05-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: prescod - keywords: +patch nosy: +Garen -prescod, skip.montanaro priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111

[issue8748] integer-to-complex comparisons give incorrect results

2010-05-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: 2.7 patch attached. The implementation is mostly the same as the 3.2 one, but there is one quirk. Namely, 2.7 (and other 2.x's) has the following odd behavior: 1j None False 1j 1 Traceback (most recent call last): File

<    1   2