[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14548/testcase2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti : For some yet unknown reason, test_codecs fails when it is run after test_zipimport and subsequently test_mailbox: ./python Lib/test/regrtest.py -w test_zipimport test_mailbox test_codecs [SNIP] ===

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14547/testcase1.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14550/testcase4.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

2009-07-22 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file14549/testcase3.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6552] Build Applet.app

2009-07-22 Thread Martien Friedeman
New submission from Martien Friedeman : Hi Python maintainer! I did not see a "Build Applet.app" in http://www.python.org/ftp/python/3.1/python-3.1.dmg. Could you add one please? They're great to start programs with. Cheers Martien Friedeman -- assignee: ronaldoussoren components: Ma

[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2009-07-22 Thread Peter Bray
Peter Bray added the comment: Sorry for the internet lifetime I've been away. I have tested the patch provided against the released 3.1 distribution and all tests pass without coredumping or failing on Solaris 10 Update 6 with gcc 4.1.2. The 3.1 distribution with the patch was built and tested

[issue6548] cmath documentation misleading: suggests existence of real() and imag() functions

2009-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6525] Problem with string.lowercase in Windows XP

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: I did some test as well and here is what I got: Python2.4 WinXP: >>> import locale >>> import string >>> locale.setlocale(locale.LC_ALL, '') 'Italian_Italy.1252' >>> string.lowercase 'abcdefghijklmnopqrstuvwxyz\x83\x9a\x9c\x9e\xaa\xb5\xba\xdf\xe0\xe1\xe2\xe3\xe4\x

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to remove the first two prints (I reverted the file and the only difference with the original was the print after evt.set() (that here didn't print anything)) and I got something better: $ ./python Lib/test/regrtest.py -v test_docxmlrpc test_docxmlrpc tes

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: I tried that too, with no results. However using advanced debugging techniques I found something new. I added 3 prints in the finally, one before serv.server_close(), one after, and the last at the end, after evt.set(). The first two works, the third one sometime

[issue6541] SpooledTemporaryFile breakages

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews : -- title: SpooledTemporaryFile cleanups -> SpooledTemporaryFile breakages ___ Python tracker ___ ___ Python-

[issue6541] SpooledTemporaryFile cleanups

2009-07-22 Thread Leon Matthews
Leon Matthews added the comment: Some properties seem to be broken no matter if the underlying storage system is file or StringIO. Properties: encoding, newlines, and softspace And the method: xreadlines() I'm not sure what the correct behaviour should be (although I'm pretty sure xreadlines(

[issue6541] SpooledTemporaryFile cleanups

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews : -- title: SpooledTemporaryFile Cleanups -> SpooledTemporaryFile cleanups ___ Python tracker ___ ___ Python-b

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2009-07-22 Thread Craig Holmquist
Changes by Craig Holmquist : Removed file: http://bugs.python.org/file14541/xmlgen.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2009-07-22 Thread Craig Holmquist
Craig Holmquist added the comment: Patch for documentation. -- Added file: http://bugs.python.org/file14545/xmlgen-doc.patch ___ Python tracker ___ __

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2009-07-22 Thread Craig Holmquist
Craig Holmquist added the comment: This new patch removes the "default to stdout" behavior. -- Added file: http://bugs.python.org/file14544/xmlgen2.patch ___ Python tracker ___ _

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-22 Thread Nir Soffer
New submission from Nir Soffer : When using asynchat.async_chat channel, and connection is refused, asyncore fail incorrectly. First, instead of ECONNREFUSED, you get EPIPE, second, you also get a EBADF exception, and finally, the channel handle_close is called twice. The problem is the way

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2009-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: -Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available ___ Python tracker ___

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2009-07-22 Thread Craig Holmquist
Craig Holmquist added the comment: Actually, that patch may not work so well either... out defaults to sys.stdout, but that can't accept bytes. -- ___ Python tracker ___

[issue6541] SpooledTemporaryFile Cleanups

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews : -- title: SpooledTemporaryFile operates differently to TemporaryFile -> SpooledTemporaryFile Cleanups ___ Python tracker ___ __

[issue6541] SpooledTemporaryFile operates differently to TemporaryFile

2009-07-22 Thread Leon Matthews
Leon Matthews added the comment: I've attached a patch to SpooledTemporaryFile (and its test class) to remove the suprising exceptions. SpooledTemporaryFile uses a io.StringIO for storage (in self._file) until it reaches a certain size (or rollover() is called), at which point it switches to a

[issue6549] ttk.Style not translating some Tcl options

2009-07-22 Thread Mark Roseman
New submission from Mark Roseman : Just a couple of minor things which this terminal session points out s = ttk.Style() s.element_options('Button.label') ('-compound', '-space', '-text', '-font', '-foreground', '-underline', '-width', '-anchor', '-justify', '-wraplength', '-embossed', '-image',

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2009-07-22 Thread Craig Holmquist
Craig Holmquist added the comment: Patch attached. This patch doesn't actually restrict the output object to RawIOBase (that wouldn't work well, since files opened as binary are actually derived from BufferedIOBase). Instead, it just assumes the output object has a 'write' method that accepts

[issue6548] cmath documentation misleading: suggests existence of real() and imag() functions

2009-07-22 Thread Mark Dickinson
Mark Dickinson added the comment: (Thanks Andrew Spott for pointing this out on #python IRC.) -- ___ Python tracker ___ ___ Python-bug

[issue6548] cmath documentation misleading: suggests existence of real() and imag() functions

2009-07-22 Thread Mark Dickinson
New submission from Mark Dickinson : The wording of the first section of the cmath module documentation is confusing: the displayed blocks seem to suggest that there are real() and imag() functions. This first section really needs a serious rewrite. While we're at it, it might also be nice

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2009-07-22 Thread Craig Holmquist
Craig Holmquist added the comment: To clarify the specific problem: - If the file object passed to XMLGenerator is opened in binary mode, XMLGenerator raises TypeError as soon as it tries to write to it - If the passed file object is opened in text mode, XMLGenerator writes the prescribed encod

[issue6423] The cgi docs should advertize using "in" instead of "has_key"

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r74179 (trunk) and r74180 (py3k). Thanks! -- keywords: -needs review resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue6547] shutil.copytree fails on dangling symlinks

2009-07-22 Thread Timothee Besset
New submission from Timothee Besset : shutil.copytree fails if there is a dangling symlink and symlink is set to False (which is the default). It will raise an exception when trying to get to the content of the symlink. Tested on Debian Etch amd64, python 2.5.2 File "/usr/lib/python2.5/shutil

[issue5210] zlib does not indicate end of compressed stream properly

2009-07-22 Thread Ezio Melotti
Ezio Melotti added the comment: Yes, I think that the right place where to add the tests is Lib/test/test_zlib.py -- ___ Python tracker ___ __

[issue3871] cross and native build of python for mingw32 with distutils

2009-07-22 Thread Roumen Petrov
Roumen Petrov added the comment: The last patch is updated to support build with GNU C Compiler v 4.4.0 for windows. -- ___ Python tracker ___ ___

[issue3871] cross and native build of python for mingw32 with distutils

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file14279/python-trunk-20090612-MINGW.patch ___ Python tracker ___ ___ Python-b

[issue3871] cross and native build of python for mingw32 with distutils

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file13694/python-trunk-20090416-MINGW.patch ___ Python tracker ___ ___ Python-b

[issue3871] cross and native build of python for mingw32 with distutils

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file13089/python-trunk-20090214-MINGW.patch ___ Python tracker ___ ___ Python-b

[issue3871] cross and native build of python for mingw32 with distutils

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file14540/python-trunk-20090722-MINGW.patch ___ Python tracker <http://bugs.python.org/issue3871> ___ ___

[issue3754] minimal cross-compilation support for configure

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : -- components: +Build type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue3754] minimal cross-compilation support for configure

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file14277/python-trunk-20090612-CROSS.patch ___ Python tracker ___ ___ Python-b

[issue3754] minimal cross-compilation support for configure

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file13692/python-trunk-20090415-CROSS.patch ___ Python tracker ___ ___ Python-b

[issue3754] minimal cross-compilation support for configure

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file12677/python-trunk.patch-CROSS-20090110 ___ Python tracker ___ ___ Python-b

[issue3754] minimal cross-compilation support for configure

2009-07-22 Thread Roumen Petrov
Changes by Roumen Petrov : Added file: http://bugs.python.org/file14539/python-trunk-20090722-CROSS.patch ___ Python tracker <http://bugs.python.org/issue3754> ___ ___

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-22 Thread R. David Murray
R. David Murray added the comment: Backported to trunk in r74175, and 2.6 in r74176. -- status: open -> closed ___ Python tracker ___

[issue5210] zlib does not indicate end of compressed stream properly

2009-07-22 Thread Travis H.
Travis H. added the comment: What kind of tests did you have in mind? Unit tests in python, or something else? -- nosy: +solinym ___ Python tracker ___ _

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-22 Thread R. David Murray
R. David Murray added the comment: Applied in r74171 to py3k and r74172 to 3.1. It occurs to me that I should backport this to trunk, so I'm leaving the issue open until I do that. -- resolution: -> fixed stage: patch review -> committed/rejected versions: +Python 2.6, Python 2.7 ___

[issue6543] traceback presented in wrong encoding

2009-07-22 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6543] traceback presented in wrong encoding

2009-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This also happens on a Western Windows (cp437, mbcs==cp1252) with a filename like "café.py". The attached patch corrects three problems: - in compile.c, the c_filename member has utf8 encoding, and must not be decoded with PyUnicode_DecodeFSDefault. This

[issue6546] [Distutils][PATCH] Add bdist_rpm option to select the name of the resulting package

2009-07-22 Thread OG7
New submission from OG7 : This simple Distutils patch allows choosing the name of the rpm built by bdist_rpm. It leaves the name of the source tarball alone, and changes the name of the resulting spec file and rpm. It was tested with distutils nightlies, and applies to at least python 2.5 throug

[issue6501] Fatal LookupError: unknown encoding: cp0 on Windows embedded startup.

2009-07-22 Thread Graham Dumpleton
Graham Dumpleton added the comment: The workaround of using: #if defined(WIN32) && PY_MAJOR_VERSION >= 3 _wputenv(L"PYTHONIOENCODING=cp1252:backslashreplace"); #endif Py_Initialize(); gets around the crash on startup. I haven't done sufficient testing to know if this may intr

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-07-22 Thread Eric Devolder
Eric Devolder added the comment: Same problem under WinXP, using mingw compiler. Works for my package under Python 3.0, ceases functioning under 3.1, with same error message. -- ___ Python tracker _

[issue6525] Problem with string.lowercase in Windows XP

2009-07-22 Thread Peter Landgren
Peter Landgren added the comment: OK, Agreed for 2.6. But for 2.5 many of the characters returned by string.lowercase: âܣ׬Á║▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷°¨·¹³²■ are not lowercase letters at all, but that is history now, as 2.5 is history. We solved it by using ascii_lowercase. Thanks, Peter Landg

[issue6540] bytearray.translate(): error in error handling

2009-07-22 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74167. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue6525] Problem with string.lowercase in Windows XP

2009-07-22 Thread Georg Brandl
Georg Brandl added the comment: This behavior is not a bug - when setting the locale, string.lowercase and friends are augmented by whatever the locale considers uppercase and lowercase letters, as byte strings. This will lead to decoding errors when these strings are combined with Unicode stri

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-07-22 Thread Eric Devolder
Changes by Eric Devolder : -- nosy: +keldonin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I can't reproduce this, no. I only have access to a windows machine and you appear to have a custom build (no zlib). I need your help to get the error message, so you need to try harder. (there are probably at least two problems, one causing an exe

[issue6545] test fails in distutils.tests.test_extensions if -O is used

2009-07-22 Thread Tarek Ziadé
Tarek Ziadé added the comment: Fixed in r74163, r74164, r74165. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue6545] test fails in distutils.tests.test_extensions if -O is used

2009-07-22 Thread Tarek Ziadé
New submission from Tarek Ziadé : That's because the Extension class has some assert statement, I'll remove them. -- assignee: tarek components: Distutils messages: 90806 nosy: tarek severity: normal status: open title: test fails in distutils.tests.test_extensions if -O is used versions

[issue6423] The cgi docs should advertize using "in" instead of "has_key"

2009-07-22 Thread Georg Brandl
Georg Brandl added the comment: Metoo :) Go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6544] Fix refleak in kqueue implementation

2009-07-22 Thread Georg Brandl
New submission from Georg Brandl : This patch should fix leaking "it" in some error conditions. Christian, can you please review? -- assignee: christian.heimes components: Extension Modules files: select-refleak.diff keywords: patch messages: 90804 nosy: christian.heimes, georg.brandl s

[issue6543] traceback presented in wrong encoding

2009-07-22 Thread Fan Decheng
New submission from Fan Decheng : traceback information is wrongly encoded. Steps to reproduce: 1. Use a version of Windows that supports CP936 (Simplified Chinese) as the default encoding. 2. Create a directory containing Chinese characters. Such as C:\测试 3. In the directory create a python fil