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

2009-03-05 Thread Memeplex
Changes by Memeplex : -- title: Must not replace LF or CR by CRLF in literals -> imaplib: must not replace LF or CR by CRLF in literals ___ Python tracker ___ ___

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

2009-03-05 Thread Memeplex
New submission from Memeplex : 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 clearly wrong. rfc 2060

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Hagen Fürstenau
Hagen Fürstenau 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 translated into "x in s

[issue400608] just testing

2009-03-05 Thread Guido van Rossum
Guido van Rossum 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 script as a *wra

[issue2771] test issue

2009-03-05 Thread Daniel Diniz
Daniel Diniz 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: return n

[issue400608] just testing

2009-03-05 Thread Daniel Diniz
Daniel Diniz 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 msg32813 Upload se

[issue5420] Queue deprecation warning patch

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

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

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Committed in r70203(py3k) -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue814253] Grouprefs in lookbehind assertions

2009-03-05 Thread Matthew Barnett
Matthew Barnett 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 sees the group reference be

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson 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 ___

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

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2009-03-05 Thread R. David Murray
R. David Murray 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 haven't been able to figu

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Jesse Noller
Jesse Noller 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. ___ Python tracker

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Jesse Noller
Changes by Jesse Noller : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Changes by Tennessee Leeuwenburg : Removed file: http://bugs.python.org/file13252/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg 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 deprecation warning? I'm

[issue5420] Queue deprecation warning patch

2009-03-05 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg 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 deprecated calls Issues: * No

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

2009-03-05 Thread Luk Knapen
Luk Knapen 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 : self.socket.sendto(bytes(m

[issue5429] Core dumps on the Solaris buildbot

2009-03-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: open title: Core

[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 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 ___

[issue5428] Pyshell history management error

2009-03-05 Thread Georg Brandl
Georg Brandl added the comment: The code you pasted contains a non-ASCII quote (’). -- nosy: +georg.brandl resolution: -> invalid status: open -> pending ___ Python tracker ___

[issue4263] BufferedWriter non-blocking overage

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/3/5 Sever Băneșiu : > > Sever Băneșiu 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 deprecated and unused. ___ P

[issue5428] Pyshell history management error

2009-03-05 Thread Michel Weinachter
New submission from Michel Weinachter : 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 character in identifier

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2009-03-05 Thread Guido van Rossum
Guido van Rossum added the comment: OK, submitted. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-b

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Martin v. Löwis
Martin v. Löwis 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 ___ Python tracker

[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 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 ___

[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 : -- resolution: works for me -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-03-05 Thread Martin v. Löwis
Martin v. Löwis 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 :-) -- assignee: lo

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

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Patch looks good. Please apply. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bug

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

2009-03-05 Thread Pascal Chambon
Pascal Chambon 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 errors might occur with

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

2009-03-05 Thread Christophe Simonis
Changes by Christophe Simonis : -- nosy: +Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1717] Get rid of more references to __cmp__

2009-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
Mitchell Model 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 problem in the wo

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Benjamin Peterson
Benjamin Peterson 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

[issue1113328] OSATerminology still semi-broken

2009-03-05 Thread hhas
hhas 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 OS X 10.5 as well. I've al

[issue3320] various doc typos

2009-03-05 Thread Jesse Noller
Jesse Noller added the comment: Assigning to me to resolve final issue -- assignee: georg.brandl -> jnoller ___ Python tracker ___ ___

[issue3320] various doc typos

2009-03-05 Thread Jesse Noller
Jesse Noller added the comment: Totally missed this issue, thanks for commenting. Will get on this soonish ___ Python tracker ___ ___ Python-bu

[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 : 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 libpython3.1.a(

[issue3320] various doc typos

2009-03-05 Thread DSM
DSM 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 ___

[issue5426] README slight error re OSX

2009-03-05 Thread Guido van Rossum
Guido van Rossum 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 there is already

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
Mitchell Model 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 creates doubl

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

2009-03-05 Thread Guido van Rossum
Guido van Rossum 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 _

[issue5198] Strange DeprecationWarning behaviour in module struct

2009-03-05 Thread Ilya Sandler
Ilya Sandler 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 _

[issue5426] README slight error re OSX

2009-03-05 Thread Guido van Rossum
Guido van Rossum 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 tracker

[issue5426] README slight error re OSX

2009-03-05 Thread Georg Brandl
Georg Brandl added the comment: So it is just called "python"? ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
New submission from Mitchell Model : 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 status: open t

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

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: - Sorry for having clear solution for this. + Sorry for having no clear solution for this. ___ Python tracker ___

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

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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[:] '\x00\x00\x00\x00

[issue1580] Use shorter float repr when possible

2009-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 on the fallback strategy for platforms we don't know how to handle. ___ Python tracker ___ ___ Python-b

[issue1580] Use shorter float repr when possible

2009-03-05 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds good to me. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5425] 2to3 wrong for types.StringTypes

2009-03-05 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : In Python 2.6 we have >>> types.StringTypes (, ) 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 conversion tool) files: 2to3_StringTyp

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

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fixed in r70189. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

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

2009-03-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: -3.0.1 crashes in unicode path superseder: -> 3.0.1 crashes in unicode path ___ Python tracker ___ __

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

2009-03-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: +3.0.1 crashes in unicode path resolution: -> duplicate status: open -> closed ___ Python tracker ___

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

2009-03-05 Thread 徐洲
徐洲 added the comment: Oh... yes this is fixed thx a lot for u check out ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5424] Packed IPaddr conversion tests should be extended

2009-03-05 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : 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 in any of the pac

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

2009-03-05 Thread Chris Withers
Chris Withers 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 import MIMEMultipart

[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 : 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() >>> msg.attach(MIMEText('foo','p

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

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 ___

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

2009-03-05 Thread 徐洲
徐洲 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 __

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

2009-03-05 Thread 徐洲
New submission from 徐洲 : 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 SYSTEM !!! *

[issue1580] Use shorter float repr when possible

2009-03-05 Thread Mark Dickinson
Mark Dickinson 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 platforms that would s

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

2009-03-05 Thread Retro
Retro 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 the option 'Registe

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

2009-03-05 Thread Manuel Hermann
New submission from Manuel Hermann : 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 my_socket = socket.socket(soc

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

2009-03-05 Thread Georg Brandl
Georg Brandl added the comment: Only with security fixes IIRC. Letting Martin decide. -- assignee: pitrou -> loewis nosy: +loewis ___ Python tracker ___ _

[issue4263] BufferedWriter non-blocking overage

2009-03-05 Thread Sever Băneșiu
Sever Băneșiu added the comment: Looks like the test covering the pre-flush condition is missing. ___ Python tracker ___ ___ Python-bugs-list m

[issue1176504] locale._build_localename treatment for utf8

2009-03-05 Thread Gustavo De Nardin (spuk)
Gustavo De Nardin (spuk) added the comment: We hit this problem with system-config-printer in Mandriva Linux (). Fixed it with this patch http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python/current/SOURCES/python-2.5.2-fix_UTF-8_name.p