[issue1176504] locale._build_localename treatment for utf8

2009-03-05 Thread Gustavo De Nardin (spuk)
Gustavo De Nardin (spuk) gustav...@gmail.com added the comment: We hit this problem with system-config-printer in Mandriva Linux (https://qa.mandriva.com/show_bug.cgi?id=48158). Fixed it with this patch

[issue4263] BufferedWriter non-blocking overage

2009-03-05 Thread Sever Băneșiu
Sever Băneșiu banesiu.se...@gmail.com added the comment: Looks like the test covering the pre-flush condition is missing. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4263 ___

[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-03-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Only with security fixes IIRC. Letting Martin decide. -- assignee: pitrou - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5389

[issue5421] Irritating error message by socket's sendto method

2009-03-05 Thread Manuel Hermann
New submission from Manuel Hermann manuel-herm...@gmx.net: When sending unexpected data via a socket's sentdo method, a TypeError is raised with the fallowing message: sendto() takes exactly 3 arguments (2 given). But two arguments are sufficient. Examples for Python 2.x: import socket

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-05 Thread Retro
Retro vinet...@gmail.com added the comment: I figured out why the installer didn't create an icon for the Python interpreters in the Add/Remove Programs list. If I deselect the option 'Register Extensions' at installation time, I don't get an icon in the Add/Remove Programs list. But if I leave

[issue1580] Use shorter float repr when possible

2009-03-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Would it be acceptable to use shorter float repr only on big-endian and little-endian IEEE 754 platforms, and use the full 17-digit repr on other platforms? This would greatly simplify the adaptation and testing of Gay's code. Notable

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread 徐洲
New submission from 徐洲 x...@163.com: py3k 3.01 static int update_compiled_module(PyCodeObject *co, char *pathname) { PyObject *oldname, *newname; if (!PyUnicode_CompareWithASCIIString(co-co_filename, pathname)) return 0; /* string pathname related with FILE

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread 徐洲
徐洲 x...@163.com added the comment: if directory have chinese word under windows system load .py is passed load .pyc get the utf-8 codec error... i modified this code wish this is helpful... ___ Python tracker rep...@bugs.python.org

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I believe this issue is duplicate of issue5273, and fixed yesterday. Can you try latest svn checkout? -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org

[issue5423] Exception raised when attempting to call set_charset on an email.mime.multipart once sub-parts have been attached

2009-03-05 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: Hi All, I'm splitting this out from [Issue1823] as it's a separate issue. Here's a minimal case to reproduce: from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText msg = MIMEMultipart()

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2009-03-05 Thread Chris Withers
Chris Withers ch...@simplistix.co.uk added the comment: Okay, splitting this out a little. I've moved the exception when setting character set after adding parts out to [Issue5423]. Here's a simpler example of the problem with setting character sets on multiparts: from email.MIMEMultipart

[issue5424] Packed IPaddr conversion tests should be extended

2009-03-05 Thread Philipp Hagemeister
New submission from Philipp Hagemeister phi...@phihag.de: Currently, the testStringToIPv6 and testIPv6ToStrings tests in Lib/test/test_socket.py only check for variants 1 and 2 (but not 3) from RFC 4291 2.2. Furthermore, there are no assertions that check wrong inputs are appropriately refused

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread 徐洲
徐洲 x...@163.com added the comment: Oh... yes this is fixed thx a lot for u check out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5422 ___ ___

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: +3.0.1 crashes in unicode path resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5422

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: -3.0.1 crashes in unicode path superseder: - 3.0.1 crashes in unicode path ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5422

[issue5385] mmap can crash after resize failure (windows)

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Fixed in r70189. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5385 ___

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Hagen Fürstenau
New submission from Hagen Fürstenau hfuerste...@gmx.net: In Python 2.6 we have types.StringTypes (type 'str', type 'unicode') but 2to3 translates types.StringTypes into str, which is obviously wrong. The attached patch changes it into (str, bytes). -- components: 2to3 (2.x to 3.0

[issue1580] Use shorter float repr when possible

2009-03-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Sounds good to me. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1580 ___ ___ Python-bugs-list mailing

[issue1580] Use shorter float repr when possible

2009-03-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 on the fallback strategy for platforms we don't know how to handle. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1580 ___

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: More two cents which I noticed. (After the patch was applied) 1. On windows, resize for anonymous map can clear its contents. import mmap m = mmap.mmap(-1, 10) m[:] = 0123456789 m[:] '0123456789' m.resize(20) m[:]

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: - Sorry for having clear solution for this. + Sorry for having no clear solution for this. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2733

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: Line 136 of the 3.0 README and line 179 of the 3.1 README state that the executable on OSX is called python.exe. It's not. -- assignee: georg.brandl components: Documentation messages: 83203 nosy: MLModel, georg.brandl severity: normal

[issue5426] README slight error re OSX

2009-03-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: So it is just called python? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5426 ___ ___ Python-bugs-list

[issue5426] README slight error re OSX

2009-03-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: What makes you think it is not called python.exe? Maybe you're confused by the Finder's auto-hiding of externsions? -- nosy: +gvanrossum resolution: - invalid status: open - closed ___ Python

[issue5198] Strange DeprecationWarning behaviour in module struct

2009-03-05 Thread Ilya Sandler
Ilya Sandler isand...@users.sourceforge.net added the comment: It appears that the different behavior results from trying to preserve backward compatibility with earlier version of Python see: http://bugs.python.org/issue1229380 ___ Python tracker

[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-03-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Well, this one is technically a security fix, though I have no idea how it could be exploited unless you offer your users a facility to execute arbitrary Python code. ___ Python tracker

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: Nothing on OSX is ever named .exe. On OSX building and installing Python with configure --enable-framework installs an executable just called 'python' in /Library/Frameworks/Python.framework/Versions/3.1/bin (using 3.1 as an example). It also

[issue5426] README slight error re OSX

2009-03-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: That sentence however does not refer to the name of the installed Python binary, but the binary as it is built in the source tree (or a build directory). And there we chose to call it python.exe because we couldn't call it python because

[issue3320] various doc typos

2009-03-05 Thread DSM
DSM dsm...@users.sourceforge.net added the comment: Commenting only to draw attention to the trivial typo in mp_distributing.py, because jnoller's post on the mailing list reminded me about it. ___ Python tracker rep...@bugs.python.org

[issue5427] OSX framework make error: ld: duplicate symbol _PyExc_BlockingIOError in libpython3.1.a(_iobase.o) and libpython3.1.a(io.o)

2009-03-05 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: Trying to build 3.1 in recent 'svn update's on OSX 10.5 after make clean configure --enable-framework I get the following error near the end of the build: ld: duplicate symbol _PyExc_BlockingIOError in libpython3.1.a(_iobase.o) and

[issue3320] various doc typos

2009-03-05 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Totally missed this issue, thanks for commenting. Will get on this soonish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3320 ___

[issue3320] various doc typos

2009-03-05 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Assigning to me to resolve final issue -- assignee: georg.brandl - jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3320 ___

[issue1113328] OSATerminology still semi-broken

2009-03-05 Thread hhas
hhas h...@users.sourceforge.net added the comment: No idea, be honest. The original patch was created for 2.3, and I've no free time to look into it myself now. BTW, note that nobody uses this module any more; it's deprecated in 2.6, absent in 3.0, and OSAGetAppTerminology() is deprecated in

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It's hard to guess the intention of types.StringTypes since it may mean text strings or text and byte strings. I'm tempted to just remove the transformation at all and issue a warning. -- nosy: +benjamin.peterson

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: Whoops! It didn't say the executable that gets built is called python.exe, but it is in the build section, so taking things literally, yes, the executable is called python.exe and I maybe should have taken it at its word. There's a subtle

[issue1717] Get rid of more references to __cmp__

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1717 ___ ___

[issue4331] Can't use _functools.partial() created function as method

2009-03-05 Thread Christophe Simonis
Changes by Christophe Simonis simonis.christo...@gmail.com: -- nosy: +Christophe Simonis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4331 ___

[issue4192] Subprocess error with I/O redirection to Pipes

2009-03-05 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Thansk a lot for reviewing the problem Indeed, p.wait() seems to do the trick in this case. Is there any global way to avoid such pipe problems ? I mean, in any case, one end of each pipe has to be closed before the other end, so such

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Patch looks good. Please apply. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5334 ___

[issue5421] Irritating error message by socket's sendto method

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5421 ___

[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-03-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree it is technically a security fix, so somebody please feel free to commit it. I will make another 2.5 release when enough of these have accumulated, or something urgent happens, or somebody wants to see a release really badly :-)

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-05 Thread Martin v. Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: works for me - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5390 ___

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I give this low priority, i.e. might not work on it for several months (or ever). Contributions are welcome. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5390

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree with Benjamin. Translation into (str, bytes) is incorrect. I don't agree that it is obvious that the translation into str is incorrect. Recommend closing as reject. -- nosy: +loewis ___

[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-03-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: OK, submitted. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5389 ___

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5425 ___

[issue5428] Pyshell history management error

2009-03-05 Thread Michel Weinachter
New submission from Michel Weinachter mic...@weinachter.com: I have created a variable named liste_de_courses when I use Alt-P to gather a previous command and modify it I have the following error: liste_de_courses.append(’b') SyntaxError: invalid

[issue4263] BufferedWriter non-blocking overage

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/3/5 Sever Băneșiu rep...@bugs.python.org: Sever Băneșiu banesiu.se...@gmail.com added the comment: Looks like the test covering the pre-flush condition is missing. That test is no longer applicable because max_buffer_size is

[issue5428] Pyshell history management error

2009-03-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The code you pasted contains a non-ASCII quote (’). -- nosy: +georg.brandl resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5428

[issue5427] OSX framework make error: ld: duplicate symbol _PyExc_BlockingIOError in libpython3.1.a(_iobase.o) and libpython3.1.a(io.o)

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This should be fixed as of r70198. Make sure to run make clean. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5429] Core dumps on the Solaris buildbot

2009-03-05 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: It has been happening for a few days now... may be related to the IO-C merge. http://www.python.org/dev/buildbot/3.x.stable/ -- components: Tests messages: 83227 nosy: benjamin.peterson, pitrou priority: high severity: normal status:

[issue5421] Irritating error message by socket's sendto method

2009-03-05 Thread Luk Knapen
Luk Knapen luk.kna...@telenet.be added the comment: File $python/lib/python3.0/logging/handlers.py Line 782 : a bytes object is required instead of a string. As a consequence, encoding shall be specified : but which one ? Is : self.socket.sendto(msg, self.address) Should look like :

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Patch covering all files in a single patch. * Updated warning message * Updated multiprocessing tests to avoid calls to empty and full * Placed deprecation warning in multiprocessing methods * Update wsgui to avoid

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Hi JP, I experimented with stacklevel but to be honest nothing I saw appeared greatly more useful than the default for the tests in question. What form would the unit tests take? Trying to assert that empty() and full() raised a

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: rhettinger - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5420 ___

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Changes by Tennessee Leeuwenburg tleeuwenb...@gmail.com: Removed file: http://bugs.python.org/file13252/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5420 ___

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5420 ___ ___ Python-bugs-list mailing

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Quote: Issues: * Noticed no warnings raised as a result of changes to multiprocessing: ergo multiprocessing.queue empty() and full() methods are not currently getting test coverage ? I need to check this.

[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering

2009-03-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I have now had time to test this. My use case (reading text from a pipe and wanting the most recent complete line returned immediatly as it is avaialable) is satisified by both the io.py code and the io c code from the py3k branch. I

[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5323 ___

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You should test that the warnings are given by the deprecated methods. Look at test_py3kwarn for an example of how to do that. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5420

[issue814253] Grouprefs in lookbehind assertions

2009-03-05 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: As part of issue #2636 group references now work in lookbehinds. However, your example: (?=(...)\1)abc will fail but: (?=\1(...))abc will succeed. Why? Well, in lookbehinds it searches backwards. In the first regex it

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Committed in r70203(py3k) -- priority: release blocker - resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5334

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Now, with unit tests... :) Added file: http://bugs.python.org/file13253/queue_patch3.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5420

[issue400608] just testing

2009-03-05 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Reviewers: , Message: While this is a test issue, the attached diff is a crude first draft of a patched upload.py that makes linking to the Python Tracker a bit easier. Here's the command line and output: $ python static/upload.py -R 400608 -F

[issue2771] test issue

2009-03-05 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Reviewers: , Description: This is a very long line. I am wondering how it will be wrapped. What will happen to this exceedingly long line? Will it be wrapped? Will it? Really? What will happen? Here's an example: def fact(n): if n 1:

[issue400608] just testing

2009-03-05 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: This is specific to the Python tracker, which Rietveld tries to avoid. You could maintain this as a locally modified version, but a better approach would be to make just enough changes to upload.py itself so that you can write the rest of this

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: Why I considered the existing translation incorrect was because it translates something which was a tuple of types in Python 2.x into a type of Python 3.x. I fail to see how this can be useful. (A check like x in types.StringTypes gets

[issue5430] Must not replace LF or CR by CRLF in literals

2009-03-05 Thread Memeplex
New submission from Memeplex carlosjosep...@gmail.com: For example, after that normalization, quoted printable encoded headers (as described at rfc 2047) longer than 76 characters are splitted in two different ill-formed headers because the soft LF line break becomes a hard CRLF one. This is

[issue5430] imaplib: must not replace LF or CR by CRLF in literals

2009-03-05 Thread Memeplex
Changes by Memeplex carlosjosep...@gmail.com: -- title: Must not replace LF or CR by CRLF in literals - imaplib: must not replace LF or CR by CRLF in literals ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5430