[issue4279] Module 'parser' fails to build

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I have now committed 2.6.1-parsermodule.patch as r68523, r68524, r68525, and r68526. Thanks for the patch. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4288] parsermodule and grammar variable

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is now fixed with the resolution to issue 4279. -- resolution: - fixed status: open - closed superseder: - Module 'parser' fails to build ___ Python tracker rep...@bugs.python.org

[issue4895] Missing strdup() under MS Windows CE

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Committed as r68527, r68528. -- nosy: +loewis resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4895

[issue4893] Use separate thread support code under MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Okay, the changes necessary to the NT thread code are rather minimal, see attached patch. The file thread_wince.c could then be removed, too. I also removed a comment which was left over from the version before but doesn't apply any

[issue2504] Add gettext.pgettext() and variants support

2009-01-11 Thread Dwayne Bailey
Changes by Dwayne Bailey dwayne+pythonb...@translate.org.za: -- nosy: +dwayne ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___ ___

[issue4753] Faster opcode dispatch on gcc

2009-01-11 Thread Andrew Bennetts
Changes by Andrew Bennetts s...@users.sourceforge.net: -- nosy: +spiv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4753 ___ ___ Python-bugs-list

[issue4220] Builtins treated as free variables?

2009-01-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: There is no way for the interpreter to distinguish between builtins and other types of free variables. If you need unqualified exec to work in an innner function, use function parameters with defaults, like this: def a(): def b(long=long):

[issue1293741] doctest runner cannot handle non-ascii characters

2009-01-11 Thread Luciano Ramalho
Luciano Ramalho luci...@ramalho.org added the comment: I have confirmed everything that akaihola reports in Python 2.4, 2.5 and 2.6, but the problem is not limited to non-matching test output. It also happens with doctests with zero failures when the module is run with the -v command-line

[issue4896] Faster why variable manipulation in ceval.c

2009-01-11 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Pystone results: apply why patch py3k% rm $TMPDIR/*.[coi] ; make python.exe rm -f /tmp/trash ; ./python.exe Lib/test/pystone.py rm: /tmp/*.[coi]: No such file or directory make: `python.exe' is up to date. Pystone(1.1) time for 5 passes =

[issue4896] Faster why variable manipulation in ceval.c

2009-01-11 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: pybench comparison... % ./python.exe Tools/pybench/pybench.py -s stock.out -c why.out - -- PYBENCH 2.0

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt eckha...@satorlaser.com: The attached patch is for sysmodule.c, it contains two changes: 1. The check whether stdin is a directory is rewritten without using fstat(), which doesn't exist under CE. 2. Replacing sys.argv[0] with the full path is skipped, CE

[issue4879] Allow buffering for HTTPResponse

2009-01-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Yes, if you think so. But my intention was to indicate that the nobuffering is a special feature the user can turn off to resort to what could be considered normal, buffered, behaviour. But either way is fine, and I'll be happy

[issue4879] Allow buffering for HTTPResponse

2009-01-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Checked in as revision: 68532 -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4879

[issue4893] Use separate thread support code under MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Okay, hopefully this patch is final. The last one was using 'errno' in debug mode, but under CE using CreateThread() it should use GetLastError(). I also took the liberty of saving that error information for both variants directly after

[issue2320] Race condition in subprocess using stdin

2009-01-11 Thread Martina Oefelein
Changes by Martina Oefelein mart...@oefelein.de: -- nosy: +oefe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2320 ___ ___ Python-bugs-list

[issue1731717] race condition in subprocess module

2009-01-11 Thread Martina Oefelein
Changes by Martina Oefelein mart...@oefelein.de: -- nosy: +oefe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717 ___ ___ Python-bugs-list

[issue4907] ast.literal_eval does not properly handled complex numbers

2009-01-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm not sure that this is desirable behaviour. There's no such thing as a complex literal---only imaginary literals. Why allow evaluation of 2+1j but not of 2 + 1, or 2*1j. In any case, I'm not sure that the patch behaves as intended. For

[issue4753] Faster opcode dispatch on gcc

2009-01-11 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Here's a port of threadedceval5.patch to trunk. It passes the tests. I haven't benchmarked this exact patch, but on one Intel Core2, a similar patch got an 11%-14% speedup (on 2to3 and pybench). I've also cleaned up Jakob Sievers' vmgen

[issue4903] binascii.crc32() - document signed vs unsigned results

2009-01-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: binascii and zlib documentation updated in trunk r68535. I'll close the issue after I've merged it into release26-maint, release30-maint and py3k. Any objections to the wording?

[issue4893] Use separate thread support code under MS Windows CE

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The introduction of int e is redundant now, right? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4893 ___

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The S_ISDIR test is to prevent the case python /etc Is it really possible to invoke Python in such a way on CE? If not, it would be better if the entire test wasn't performed on CE. If it does get performed, I think it would be better if

[issue2504] Add gettext.pgettext() and variants support

2009-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't see any change in Modules/_localemodule.c: you reimplemented pgettext() in pure Python. Why no reusing existing pgettext() function (at least when it's present)? -- nosy: +haypo

[issue2504] Add gettext.pgettext() and variants support

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The gettext module is intentionally written in pure Python; it should stay that way. Whether or not the _locale module should also grow support for pgettext is a different issue. ___ Python tracker

[issue4911] Windows installer Quad processor issues

2009-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Could it be related to http://support.microsoft.com/kb/839547? -- nosy: +haypo title: Quad processor issues - Windows installer Quad processor issues ___ Python tracker

[issue4908] adding a get_metadata in distutils

2009-01-11 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: It looks like the best way to do this is to: - make distutils.dist.DistributionMetadata also read existing egg-info files - add get_metadata in pkgutil instead of distutils, and make it use distutils.dist.DistributionMetadata

[issue4911] Windows installer Quad processor issues

2009-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of the issue #4735. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4911

[issue4735] An error occurred during the installation of assembly

2009-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue 4911 is a duplicate of this issue. Could the issue be related to http://support.microsoft.com/kb/839547? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue4735] An error occurred during the installation of assembly

2009-01-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=121817 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4735

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Wave_read.initfp also needs fixing on counting the frame number, correct me if its wrong. Patch added. -- keywords: +patch nosy: +gpolo Added file: http://bugs.python.org/file12688/issue_4913.diff

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Oops, _framesize already takes sampwidth into account. So there is a problem somewhere else, since reading the wave file is returning the number of frames multiplied by the sampwidth. ___ Python tracker

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: Removed file: http://bugs.python.org/file12688/issue_4913.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4913 ___

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Given the name of the function related to the problem: writeframesraw, it seems to be more correct to remove the sampwidth multiplication from the other case (not add it in the other one), since you must already pass the data multiplied by it.

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Ah, yes :) But in the other case (the one where it is currently multiplied) the multiplication happens because data is formatted to either bytes, shorts or longs, so without the multiplication data length would end up being divided by 1, 2 or 4.

[issue4893] Use separate thread support code under MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Actually, I made the distinction between the 'int e' and the 'unsigned e' consciously. When using 'errno', using an 'int' is correct. When using GetLastError(), I would have used a win32 DWORD if there was a format sequence that

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: I don't really know what happens when you try to read()/fread() from stdin that is a directory, but I guess it will fail quickly even without an explicit check by Python. A directory can be opened under win32 just like a file, so I

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Changed patch with curly brackets outside the conditional code. Added file: http://bugs.python.org/file12689/python-2.7-wince-sysmodule.1.patch ___ Python tracker rep...@bugs.python.org

[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think Amaury's patch (mp_array_2.patch) is correct. If there is no objection to its acceptance within the next two days, I think it should be applied. -- resolution: - accepted ___ Python

[issue4893] Use separate thread support code under MS Windows CE

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Actually, I made the distinction between the 'int e' and the 'unsigned e' consciously. When using 'errno', using an 'int' is correct. When using GetLastError(), I would have used a win32 DWORD if there was a format sequence that

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't really know what happens when you try to read()/fread() from stdin that is a directory, but I guess it will fail quickly even without an explicit check by Python. Without the explicit check, the interpreter crashed; this was the

[issue4893] Use separate thread support code under MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: That's all fine, but why do you need a variable named e in the first place? Can't you leave the code as it was before? There is an intermediate call to a function that retrieves the thread's ID. That function may or may not change

[issue4753] Faster opcode dispatch on gcc

2009-01-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Benchmarking pitrou_dispatch_2.7.patch applied to trunk r68522 on a 32- bit Efficeon (x86) using gcc 4.2.4-1ubuntu3 yields a 10% pybench speedup. ___ Python tracker rep...@bugs.python.org

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: The CE documentation mentions directories, too, but is silent on the FILE_FLAG_BACKUP_SEMANTICS use for them. Also, even using that flag, I can't open a directory under CE. It seems that this check is superfluous there. I can also

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Do you want to remove the whole check for MS Windows then? Yes, please. A comment that you can't really redirect from a dir on Win32 might be useful. Are you otherwise comfortable with the second part of the patch, the one about

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: == FAIL: testEncodedWrites (test.test_io.TextIOWrapperTest) -- Traceback (most recent call last):

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4916 ___ ___

[issue4915] Port sysmodule.c to MS Windows CE

2009-01-11 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Next attempt, exclude all win variants from check. Added file: http://bugs.python.org/file12690/python-2.7-wince-sysmodule.2.patch ___ Python tracker rep...@bugs.python.org

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ouch. What platform is this on? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4916 ___

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: MacOS 10.4 PPC ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4916 ___ ___ Python-bugs-list mailing

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is because of the new utf16 decoding code. I'll post a patch soon. -- assignee: - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4916

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you try with this one? PS: do we have a buildbot with such a configuration? -- keywords: +patch Added file: http://bugs.python.org/file12691/issue4916.patch ___ Python tracker

[issue4908] adding a get_metadata in distutils

2009-01-11 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: heres a first simple draft, that works on .egg-info files, (the Description extractor needs to rework, but this patch is enough to discuss the feature) -- keywords: +patch Added file:

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Benjamin confirmed to me that the patch is ok, committing. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4916] test_io is broken on UCS4

2009-01-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: In r68537. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4916 ___ ___ Python-bugs-list mailing

[issue4917] PyBytes_Format documented but doesn't exist in C/API

2009-01-11 Thread O. Morvant
New submission from O. Morvant olivier.morv...@neuf.fr: The C/API function PyBytes_Format(PyObject*, PyObject*) is documentated in python 3.0 API (http://docs.python.org/3.0/c-api/bytes.html) at the end of the Bytes Object description page. Examining the Python 3.0 source code, it can't be

[issue4917] PyBytes_Format documented but doesn't exist in C/API

2009-01-11 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: theller - components: +Interpreter Core -ctypes nosy: -theller type: resource usage - feature request versions: +Python 3.1 -Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue4917] PyBytes_Format documented but doesn't exist in C/API

2009-01-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: PyBytes_Format is not supported, so I removed the documentation in r68538. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4508] distutils compiler not handling spaces in path to output/src files

2009-01-11 Thread Brian Thorne
Brian Thorne hardb...@gmail.com added the comment: Ok - this bug has nothing to do with weave itself. I think any extension written in C or C++ that has a space in the filename will raise the error in both windows and gnu/linux. Here is a simple c extension with and without spaces. The one with

[issue4881] Python's timezon handling: daylight saving option

2009-01-11 Thread Pablo Castagnino
Pablo Castagnino pablo.castagn...@gmail.com added the comment: the last post on that link is the point - python supports daylight savings, but if your city recently started using daylight savings, and didn't before, then either python or linux needs to be updated to know that. I'm using Ubuntu

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Alex Robinson
Alex Robinson alex_python_...@tranzoa.com added the comment: Oh golly. I was confused. For some reason I was thinking writesamples() when using writeframes(). So the current code reads ok. Which makes this bug a request for writesamples() and readsamples() to be added to wave.py. They would

[issue4913] wave.py writes 16 bit sample files of half the correct duration

2009-01-11 Thread Alex Robinson
Alex Robinson alex_python_...@tranzoa.com added the comment: Oh gob. I left a debug artifact in that code. wavs= [ wavs, wv ] needs to be without the 'wv'. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4913

[issue3826] Problem with SocketIO for closing the socket

2009-01-11 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Committed all of our tests and the actual code to fix the problem from socket_real_close-5.patch in py3k r68539. This still needs back porting to release30-maint assuming no other issues are found with it. -- keywords: -needs

[issue4881] Python's timezon handling: daylight saving option

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For Ubuntu Intrepid, you need the package tzdata 2008h-2ubuntu1 installed; it contains a correction for the Argentinian DST definition. Intrepid itself only shipped with 2008h-2. Closing this as third-party. -- resolution: - works

[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2009-01-11 Thread Juha Rantanen
New submission from Juha Rantanen juha.ranta...@iki.fi: 1. Create Windows installer with Python 2.5 from attached project. 2. Install it with Python 2.6.1. 3. The post-installer will fail with error message: *** run_installscript: internal error 0x *** The code causing this is: import

[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2009-01-11 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Was the 2.6 installation for all users, or just for me? What Windows version are you using? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4918

[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2009-01-11 Thread Juha Rantanen
Juha Rantanen juha.ranta...@iki.fi added the comment: Python 2.6.1 was installed with option all users. I have admin rights and the Windows version is: XP Professional Version 2002 Service Pack 3 ___ Python tracker rep...@bugs.python.org