[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The script works fine for me (OSX 10.6.3, /usr/bin/python2.5, /usr/bin/python2.6, a recent build of 2.6.x, a recent build of 3.2 and the trunk) The breakit example in msg93828 works in 64-bit binaries, and fails on 32-bit ones. This

[issue8629] Fix test_ssl failures under 2.6/3.1 with OpenSSL 1.0.0

2010-05-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree that these tests are more integration tests than unit tests; however, they are useful in exercising the code and options we provide (otherwise we wouldn't know whether e.g. PROTOCOL_TLSv1 really does what it claims to do). I

[issue8629] Fix test_ssl failures under 2.6/3.1 with OpenSSL 1.0.0

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think the test actually achieves that, as we are testing against our own implementation (IIUC). To be sure that this really triggers the right bytes on the wire, we would have to test against an independent TLS implementation. Yes,

[issue8626] TypeError: rsplit() takes no keyword arguments

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is more of a documentation issue than anything else. The fact that the argument is named maxsplit and accepts a default value doesn't mean it's usable as a keyword argument. It would be difficult to document a parameter without giving it a

[issue8390] tarfile: use surrogates for undecode fields

2010-05-05 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I think it is a good suggestion to use surrogateescape as the default, because (I hope) it produces the fewest errors and is the best choice if tarfile is used in connection with Python's filesystem calls. - When reading tar headers,

[issue7900] posix.getgroups() failure on Mac OS X

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Ronald, Did you forget to attach your patch? I don't see v3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Reopen: r80703 (and r80711) introduces a new bug: on Windows, there is an empty string between each line. It looks like a newline error. replace_stdout() should set the newline argument to open(). But how can I get the newline

[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2010-05-05 Thread Alex Quinn
New submission from Alex Quinn aq2...@alexquinn.org: After using subprocess.Popen(...).communicate(), the session hangs. c:\python31 Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. from

[issue4265] shutil.copyfile() leaks file descriptors when disk fills

2010-05-05 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com added the comment: This patch adds tests for the four edge cases (opening source fails, opening dest fails, closing dest fails, closing source fails). -- Added file: http://bugs.python.org/file17229/issue4265-test_copyfile_exceptions.patch

[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Alex Quinn
New submission from Alex Quinn aq2...@alexquinn.org: The documentation says subprocess replaces os.system(). However, subprocess does not handle built-in Windows shell commands as os.system() does. Works: - os.system(dir /w) - subprocess.Popen(cmd /c dir /w,

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2010-05-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I haven't looked at this in a while, but I do remember it was hard to get working at all without a ridiculous number of false alarms - type initialisation isn't the most straightforward thing in the world. Agreed the warning for __cmp__

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2010-05-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: (Not sure how relevant my second last paragraph is - I meant to take that out after noticing the MRO details). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8627

[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-05 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: tarfile is unable to open a TAR archive in PAX format embedding invalid filenames (filename not encoded in utf8, an undecodable filename). Attached file is an example (contain the file b'z/\xff', not decodable from utf8). PAX

[issue8404] Set operations don't work for dictionary views

2010-05-05 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: (commenting on a closed bug, because I'm not sure it should be re-opened) While coming up with examples, I found a weird inconsistency. Was it intentional for viewkeys() and viewitems() to support set operations, but not viewvalues()? d1 =

[issue8390] tarfile: use surrogates for undecode fields

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Thank you for your review. I commited the patch as r80824 (I fixed the documentation, :versionadded = :versionchanged), blocked as r80825 (3.2). -- Unfortunately, POSIX says nothing about how to store bad filenames in a pax

[issue8404] Set operations don't work for dictionary views

2010-05-05 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: The fix is easy, I think; just add Py_TPFLAGS_CHECKTYPES to the PyDictValues_Type's definition. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8404

[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: shell commands don't work because you're not specifying the shell=True argument to Popen. This is covered in the subprocess Replacing os.system documentation -- nosy: +pjenvey resolution: - invalid status: open - closed

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: pthread_sigmask should be used instead. I could either expose both of these and let the caller choose, or I could make signal.sigprocmask use pthread_sigmask if it's available, and fall back to sigprocmask. Or perhaps you could disable

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-05 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com added the comment: Trying pthread_sigmask first, and falling back, seems like the right strategy to me. -- nosy: +tseaver ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8407

[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Alex Quinn
Alex Quinn aq2...@alexquinn.org added the comment: Sorry. My mistake. Thanks for clarifying. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8632 ___

[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think you are misinterpreting the spec. A PAX file MUST encode its file names in UTF-8. The invalid flag only applies when these invalid names cannot map to file names - either because they are not supported in the locale, or because

[issue8625] --with-pydebug builds now include -O2 by default

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied in r80832 (trunk), r80834 (py3k). Thanks, all. -- assignee: - mark.dickinson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I didn't read the whole spec, only read quickly the invalid option. The idead behind this issue is to be able to read a file generated by GNU tar which keeps the filename unchanged if it's not encodable to utf8. (z-pax.tar

[issue4265] shutil.copyfile() leaks file descriptors when disk fills

2010-05-05 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: committed in r80830, r80831, r80833 and r80835 Thanks all ! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8404] Set operations don't work for dictionary views

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Why do you expect dict_values to support set operations? Dict values unlike keys are not sets, they are more like lists. Set operations of dict_values are not supported in 3.x either. -- nosy: +belopolsky

[issue1533] Bug in range() function for large values

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Perfect! Committed in r80836 (py3k); fixed that one test and comment in r80842 in trunk. Alexander, do you want to tackle the 2.6 backport? BTW, I think in most cases it's unnecessary to add Python 3.3 to the Versions field above, since

[issue1533] Bug in range() function for large values

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Bah. That's r80841, not r80842. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533 ___

[issue1533] Bug in range() function for large values

2010-05-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533 ___ ___ Python-bugs-list mailing list

[issue1533] Bug in range() function for large values

2010-05-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: That should have been r80839, not r80842. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533 ___

[issue1533] Bug in range() function for large values

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Alexander, do you want to tackle the 2.6 backport? I've never done a maintenance branch backport, but here is my attempt: 1. Checkout release26-maint 2. Apply 80757:80758 diff, fix rejected NEWS patch 3. Ignore

[issue1533] Bug in range() function for large values

2010-05-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- keywords: +26backport versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533

[issue2831] Adding start to enumerate()

2010-05-05 Thread George Sakkis
George Sakkis george.sak...@gmail.com added the comment: Just discovered this by chance; I would probably have noticed it earlier if the docstring had been updated. Let me know if it needs a new documentation bug ticket and I'll create one. Pretty handy feature by the way, thanks for adding

[issue8404] Set operations don't work for dictionary views

2010-05-05 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Ah, of course! It didn't occur to me that .values() isn't necessarily a set. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8404 ___

[issue4265] shutil.copyfile() leaks file descriptors when disk fills

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Wow, nice trick (shutil.open = func) :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4265 ___

[issue8625] --with-pydebug builds now include -O2 by default

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8625 ___ ___

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There is a couple of white-space only changes in the patch; it would be good if you could reduce them. When two paths open to you, you should always choose the most difficult (in french: Quand deux chemins s'ouvrent à nous, il

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I notice an incompatible change: posix.environ has now a different element type. This is probably fine. I don't understand, what is an element type? -- ___ Python tracker

[issue7583] Improve explanation of tab expansion in doctests

2010-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I tried your suggestion, but it seemed to me that it made the first paragraph of that section be all about tabs, and get even farther away from its original focus, which was introducing the example. I've attached a patch that instead

[issue7594] shlex refactoring

2010-05-05 Thread Mark Hammond
Mark Hammond mhamm...@users.sourceforge.net added the comment: I tried to use this in place of shlex for parsing IMAP responses for the 'imapclient' package. A couple of things struck me. * The class no longer has a next() method but probably should be added for b/w compat. * The class no

[issue3646] MacOS X framework install to non-standard directory fails

2010-05-05 Thread Amos Anderson
Amos Anderson nitroa...@gmail.com added the comment: I believe I applied the patch correctly to my Python-2.6.5.tar.bz2, on my OSX 10.6.3 machine, configured with: ./configure --enable-framework=/Users/amos/triad/trunk/src/python but make install now fails with this error at the end: ln:

[issue1754] WindowsError messages are not properly encoded

2010-05-05 Thread Romulo A. Ceccon
Romulo A. Ceccon romulocec...@gmail.com added the comment: I think WindowsError's message should be English like other errors. FormatMessageW() function can take dwLanguageId parameter. So I think Python should pass `MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US)` to the parameter. On a

[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.

2010-05-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It turns out that email5 (py3k), because it is using unicode for the payload, doesn't do the encoding to the output character set until later in the process. Specifically, charset.body_encode no longer does the input-to-output charset

[issue7863] platform module doesn't detect Windows 7

2010-05-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Now that I have access to a Server 2008 R2 machine, I've verified that this fix works there. Committed in r80857 through r80860. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.1,

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: I think this is ready for a first review. See http://codereview.appspot.com/1132041. If everyone agrees this is inappropriate for 2.7, then I'll port the changes to 3.x. I don't expect there to be much difference in the 3.x

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I notice an incompatible change: posix.environ has now a different element type. This is probably fine. I don't understand, what is an element type? In a container, the contents is sometimes called elements; their type is the element

[issue7900] posix.getgroups() failure on Mac OS X

2010-05-05 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: Added file: http://bugs.python.org/file17234/os-getgroups-v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___

[issue3646] MacOS X framework install to non-standard directory fails

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Installing a framework anywhere but a reasonably standard location doesn't work. You should try to build with --enable-framework=$SOMEPREFIX/Library/Frameworks. Applications then get installed in $SOMEPREFIX/Applications and

<    1   2   3