[issue3535] zipfile has problem reading zip files over 2GB

2008-08-13 Thread alonwas
alonwas [EMAIL PROTECTED] added the comment: Hi Antoine, The problem happens for files between 2GB and 4GB. I can't really send you a link to such a big file. To reproduce the problem, you can generate one. I created (and attach) a tiny C program that helps generate one. If you want to, you can

[issue3545] Python turning off assertions (Windows)

2008-08-13 Thread Anders Bensryd
Anders Bensryd [EMAIL PROTECTED] added the comment: Yes, we could do that. However, my concerns are: 1) We cannot be the only Python user that experience this issue? I would prefer one of these solutions (in this order): a) A parameter to Py_Initialize (structure) that controls its

[issue3492] Zlib compress/decompress functions returning bytearray

2008-08-13 Thread Anand B Pillai
Anand B Pillai [EMAIL PROTECTED] added the comment: Thanks. Will this make into beta3 ? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3492 ___ ___

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-08-13 Thread cfr
cfr [EMAIL PROTECTED] added the comment: It returns 27. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3362 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1099] Mac compile fails with pydebug and framework enabled

2008-08-13 Thread cfr
cfr [EMAIL PROTECTED] added the comment: Still fails for me on OS X 10.4.11 with latest available xcode (2.5). This is on PPC with the current stable release of python (2.5.2). ---configure script--- ../configure \ --enable-framework \ LDFLAGS=-L/usr/local/lib \

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-08-13 Thread cfr
cfr [EMAIL PROTECTED] added the comment: I noticed there is an issue (http://bugs.python.org/issue1276) with Japanese Python users on Macs because the relevant codec is removed in Tools/unicode/Makefile. That file also removes a number of other codecs, including Mac Celtic. I just wondered if

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: I have no strong opinion on the very remaining points you listed, except that IMHO encode_rfc2231 with charset=None should not try to use UTF8 by default. But someone with more mail protocol skills should comment :) OK I've come to the

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg [EMAIL PROTECTED]: -- nosy: -lemburg ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3300 ___ ___ Python-bugs-list mailing

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: On Wed, Aug 13, 2008 at 7:25 AM, Matt Giuca [EMAIL PROTECTED] wrote: I have no strong opinion on the very remaining points you listed, except that IMHO encode_rfc2231 with charset=None should not try to use UTF8 by default. But someone

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Matt Giuca
Matt Giuca [EMAIL PROTECTED] added the comment: I'm OK with replace for unquote() ... For quote() I think strict is better There's just an odd inconsistency there, but it's only a tiny gotcha; and I agree with all your other arguments. I'll change unquote back to errors='replace'. This

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Selon Matt Giuca [EMAIL PROTECTED]: Now that you've spent so much time with this patch, can't you think of a faster way of doing this? Well firstly, you could replace Quoter (the class) with a quoter function, which is nested inside

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Selon Antoine Pitrou [EMAIL PROTECTED]: As for the defaultdict, here is how it can look like (this is on 2.5): (there should be a line here saying class D(defaultdict) :-)) ... def __missing__(self, key): ... print __missing__, key

[issue3383] ctypes.util fails to find libc in some environments

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well, I have no idea what the standard setup on posix boxes is - should objdump and ldconfig be on $PATH or not? I think it should try first in $PATH and, if not found, try in /usr/sbin afterwards. /usr/sbin isn't always in $PATH when in

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Now that you've spent so much time with this patch, can't you think of a faster way of doing this? Well firstly, you could replace Quoter (the class) with a quoter function, which is nested inside quote. Would calling a nested function

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: Feel free to take the function implementation from my patch, if it speeds things up (and it should). Bill On Wed, Aug 13, 2008 at 9:41 AM, Guido van Rossum [EMAIL PROTECTED]wrote: Guido van Rossum [EMAIL PROTECTED] added the comment: Now

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: Erik van der Poel at Google has now chimed in with stats on current URL usage: ``...the bottom line is that escaped non-utf-8 is still quite prevalent, enough (in my opinion) to require an implementation in Python, possibly even allowing for

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Bill Janssen [EMAIL PROTECTED] added the comment: Erik van der Poel at Google has now chimed in with stats on current URL usage: ``...the bottom line is that escaped non-utf-8 is still quite prevalent, enough (in my opinion) to require

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le mercredi 13 août 2008 à 17:05 +, Bill Janssen a écrit : I think it's worth remembering that a very large proportion of the use of Python's urllib.unquote() is in implementations of Web server frameworks of one sort or another. We

[issue3139] bytearrays are not thread safe

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le mardi 12 août 2008 à 16:15 +, Martin v. Löwis a écrit : I also started working on porting it to 3.0, but couldn't complete that port yet - the memoryview object doesn't play nicely. I've seen your recent merge and I don't know if you

[issue3473] In function call, keyword arguments could follow *args

2008-08-13 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: Another use case: upon reading A.Baxter's Porting to 3 talk, I realized, slightly generalizing from his example, that print(s.join(map(str,it))) == print(*it,sep=s) -- or would, except that it currently has to be written non-intuitively as

[issue2548] Undetected error in exception handling

2008-08-13 Thread Daniel Diniz
Daniel Diniz [EMAIL PROTECTED] added the comment: FWIW, rev58032 introduced this: tstate = PyThreadState_GET(); if (++tstate-recursion_depth Py_GetRecursionLimit()) { --tstate-recursion_depth; PyErr_SetObject(PyExc_RuntimeError, PyExc_RecursionErrorInst); return;

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: On Wed, Aug 13, 2008 at 10:51 AM, Antoine Pitrou [EMAIL PROTECTED]wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Le mercredi 13 août 2008 à 17:05 +, Bill Janssen a écrit : I think it's worth remembering that a very large

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Changes by Guido van Rossum [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11107/unnamed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3300 ___

[issue3300] urllib.quote and unquote - Unicode issues

2008-08-13 Thread Guido van Rossum
Changes by Guido van Rossum [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11106/unnamed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3300 ___

[issue3545] Python turning off assertions (Windows)

2008-08-13 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: 2) We have to remember to do this change every time we upgrade to a newer version of Python. Every new MSVC release brings new problems, as far back as I remember. Did you actually try to turn it off? Did it work? What if you do

[issue3139] bytearrays are not thread safe

2008-08-13 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I've seen your recent merge and I don't know if you have finished with it. Indeed, I'm done, r65654. Unless there are actual bugs in these patches (in the sense that they don't fix the reported problem, or introduce new bugs), I'd like to

[issue3139] bytearrays are not thread safe

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: In any case, the corresponding DECREF *does* exist: in memory_dealloc, PyBuffer_Release is invoked, which releases the reference. I'm a bit confused. In the PyBuffer_Release implementation you committed, there is no DECREF at all. By the

[issue3549] Missing IDLE Preferences on Mac

2008-08-13 Thread Paul Chew
New submission from Paul Chew [EMAIL PROTECTED]: When the latest Mac installer (Python 2.5.2 for Macintosh OS X) is used on a new Mac (10.5.4) the resulting IDLE does not have a Preferences... entry in its File menu. The only fix that I've found is to use the previous Mac installer

[issue3535] zipfile has problem reading zip files over 2GB

2008-08-13 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: The problem happens for files between 2GB and 4GB. I can't really send you a link to such a big file. To reproduce the problem, you can generate one. The problem is that the zip command fails to create a zip file larger than 2GB (I get zip

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-08-13 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Ok, now that we have established that the user's encoding is supposed to be mac-celtic, I think I understand the problem: there simply isn't any IANA charset name for the mac-celtic encoding, so CFStringConvertEncodingToIANACharSetName doesn't

[issue2065] trunk version does not compile with vs8 and vc6

2008-08-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I have committed remaining VC6 patch. (I postponed _multiprocessing module support addition because I sometimes experiences nasty error message pipe was closed or resource is not enough in test_multiprocessing. I cannot reproduce it by

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-08-13 Thread cfr
cfr [EMAIL PROTECTED] added the comment: Do you happen to know why it is returning 27? Is that correct or should it be returning something else (e.g. 39)? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3362

[issue3550] Socket Python 3k Documentation failure OR Unicode string is not supported with socket.send

2008-08-13 Thread Andrew R.
New submission from Andrew R. [EMAIL PROTECTED]: I am confused by the socket docs for Python 3000. It says to pass a string through socket.send or socket.sendall, however, it does not seem to account for the ASCII to Unicode transition. Trying to send an ordinary Python 3k string through

[issue3550] Socket Python 3k Documentation mistake OR Unicode string is not supported with socket.send

2008-08-13 Thread Andrew R.
Andrew R. [EMAIL PROTECTED] added the comment: http://docs.python.org/dev/3.0/library/socket.html The examples at the bottom also add to the confusion. Also, changed title to be friendlier (failure? Mistake, more likely) and changed type to no selection. -- title: Socket Python 3k

[issue2548] Undetected error in exception handling

2008-08-13 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Wed, Aug 13, 2008 at 12:49 PM, Daniel Diniz [EMAIL PROTECTED] wrote: Daniel Diniz [EMAIL PROTECTED] added the comment: FWIW, rev58032 introduced this: tstate = PyThreadState_GET(); if (++tstate-recursion_depth

[issue2394] [Py3k] Finish the memoryview object implementation

2008-08-13 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2394 ___ ___ Python-bugs-list

[issue3488] Provide compress/uncompress functions on the gzip module

2008-08-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- nosy: +jcea ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3488 ___ ___ Python-bugs-list mailing list

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-08-13 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: 0x27==39. It's all fine. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3362 ___ ___ Python-bugs-list