[issue2504] Add gettext.pgettext() and variants support

2010-05-05 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2504] Add gettext.pgettext() and variants support

2010-05-05 Thread Olivier Berten
Olivier Berten added the comment: Pleeese ;-) -- nosy: +olivier-berten ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren 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 command-line tools in "$SOME

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

2010-05-05 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file17234/os-getgroups-v3.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-05-05 Thread Martin v . Löwis
Martin v. Löwis 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 type. Curre

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

2010-05-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I think this is ready for a first review. See . 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 version. -- keyw

[issue7863] platform module doesn't detect Windows 7

2010-05-05 Thread Brian Curtin
Brian Curtin 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, Python 3.2

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

2010-05-05 Thread R. David Murray
R. David Murray 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 conversion. The if te

[issue1754] WindowsError messages are not properly encoded

2010-05-05 Thread Romulo A. Ceccon
Romulo A. Ceccon 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 non-english system Form

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

2010-05-05 Thread Amos Anderson
Amos Anderson 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: /usr/local/bin/python2

[issue7594] shlex refactoring

2010-05-05 Thread Mark Hammond
Mark Hammond 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 longer has a 'token' attribute,

[issue7583] Improve explanation of tab expansion in doctests

2010-05-05 Thread R. David Murray
R. David Murray 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 moves the entire discuss

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

2010-05-05 Thread STINNER Victor
STINNER Victor 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 __

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

2010-05-05 Thread STINNER Victor
STINNER Victor 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 faut toujours choisir le

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

2010-05-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-05-05 Thread STINNER Victor
STINNER Victor added the comment: Wow, nice trick (shutil.open = func) :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-05-05 Thread A.M. Kuchling
A.M. Kuchling added the comment: Ah, of course! It didn't occur to me that .values() isn't necessarily a set. -- ___ Python tracker ___ _

[issue2831] Adding start to enumerate()

2010-05-05 Thread George Sakkis
George Sakkis 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 it! -- nosy: +gs

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

2010-05-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +26backport versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ __

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

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky 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 80838:80839 diff - small floats are accep

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

2010-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: That should have been r80839, not r80842. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2010-05-05 Thread Mark Dickinson
Changes by Mark Dickinson : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

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

2010-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Bah. That's r80841, not r80842. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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 there's no correspo

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

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky 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 -Alexander.Belopolsky ___

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

2010-05-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: committed in r80830, r80831, r80833 and r80835 Thanks all ! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

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

2010-05-05 Thread STINNER Victor
STINNER Victor 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 attachment was generated by GNU tar)

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

2010-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Applied in r80832 (trunk), r80834 (py3k). Thanks, all. -- assignee: -> mark.dickinson resolution: -> fixed status: open -> closed ___ Python tracker

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

2010-05-05 Thread Martin v . Löwis
Martin v. Löwis 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 they are not support

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

2010-05-05 Thread Alex Quinn
Alex Quinn added the comment: Sorry. My mistake. Thanks for clarifying. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-05-05 Thread Tres Seaver
Tres Seaver added the comment: Trying pthread_sigmask first, and falling back, seems like the right strategy to me. -- nosy: +tseaver ___ Python tracker ___

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

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou 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 the feature

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

2010-05-05 Thread Philip Jenvey
Philip Jenvey 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 ___

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

2010-05-05 Thread A.M. Kuchling
A.M. Kuchling added the comment: The fix is easy, I think; just add Py_TPFLAGS_CHECKTYPES to the PyDictValues_Type's definition. -- ___ Python tracker ___ __

[issue8390] tarfile: use surrogates for undecode fields

2010-05-05 Thread STINNER Victor
STINNER Victor 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 archive. tarfile raises an err

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

2010-05-05 Thread A.M. Kuchling
A.M. Kuchling 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 = dict((i*10, c

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

2010-05-05 Thread STINNER Victor
New submission from STINNER Victor : 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 specification has a "invalid" o

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

2010-05-05 Thread Nick Coghlan
Nick Coghlan 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 ___

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

2010-05-05 Thread Nick Coghlan
Nick Coghlan 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__ should just go away - I

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

2010-05-05 Thread Alex Quinn
New submission from Alex Quinn : 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", stdout=subprocess.PIPE).communicate()[0] Does NOT

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

2010-05-05 Thread Tres Seaver
Tres Seaver 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

[issue8628] Incorrect numbers.Complex.imag documentation

2010-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! Fixed in r80826 through r80829. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2010-05-05 Thread Alex Quinn
New submission from Alex Quinn : 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 subprocess impo

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-05-05 Thread STINNER Victor
STINNER Victor 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 attribute from sys.stdout? sys.s

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

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Ronald, Did you forget to attach your patch? I don't see v3. -- ___ Python tracker ___ ___ Py

[issue8390] tarfile: use surrogates for undecode fields

2010-05-05 Thread Lars Gustäbel
Lars Gustäbel 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, undecodable chars in fil

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

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou 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 name anyway.

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

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou 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, it's a best e

[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 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 don't think the tes

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

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren 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 is almost certainly a st

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

2010-05-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: > @loewis: So do you agree to add os.environb and os.getenvb()? I agree with the patch (-2) in principle. I think the error handling needs to improve: py> os.getenvb('PATH') Traceback (most recent call last): File "", line 1, in File "/home/martin/work/3

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2010-05-05 Thread Éric Araujo
Changes by Éric Araujo : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bu

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

2010-05-05 Thread Ammon Riley
Ammon Riley added the comment: You can replace the built-in open(), with one of your own devising: >>> import shutil >>> def open(*a, **k): ... raise IOError("faked error.") ... >>> __builtins__.open = open >>> shutil.copyfile("snake", "egg") Traceback (most recent

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-05-05 Thread Éric Araujo
Éric Araujo added the comment: I remember seeing a discussion on python-dev archives about that months or years ago. Someone pointed to Guido that the new RFC removed the need for uses_netloc thanks to the generic syntax. Isn’t there already a bug about that? -- nosy: +merwok ___

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

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Notice that we should *not* test OpenSSL - hopefully, they have their > own test suites. Instead, we should only test the Python integration of > OpenSSL. Therefore, we should only write test cases that work > independent of the OpenSSL version (except when so

[issue7908] remove leftover macos9 support code

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: Removed traces of MacOS9 support in r80804 (trunk) and r80805 (3.2) -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue8605] test_gdb can fail with compiler opts

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch which skips test_gdb when Python was built with something else than -O0. -- keywords: +patch title: gdb API issues -> test_gdb can fail with compiler opts Added file: http://bugs.python.org/file17226/gdbopts.patch _

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

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: The PyMalloc error was a lame bug. I've also fixed another issue (missing parenthesis in an error return). os-getgroups-v3.patch also adds unittests: * issue7900-tests.diff, but with all tests disabled on darwin (due to the broken implementation of getgroup

[issue8556] Confusing string formatting examples

2010-05-05 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[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 added the comment: > OpenSSL 1.0.0 disables SSLv2 by default, which means the protocol > combination tests give different results (for example, an SSLv23 client > will refuse talking to an SSLv2 server, because the client will attempt > an SSLv3 hello). I see. I think we should

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

2010-05-05 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +easy stage: -> unit test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2010-05-05 Thread Brett Cannon
Brett Cannon added the comment: I just came across the warning myself (after ignoring all the PyType_INIT() warnings; what to do about those?) and came to the same conclusion: it's a pain to fix. One option is to do a PyErr_Occurred() check at inherit_slots() call sites. Would that mitigate

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

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think we should use the openssl binary for anything. It may > belong to a different version, and it may not be available (in > particular on Windows). Agreed. > I don't understand the problem you are trying to solve. What exactly > is it that will st

[issue8605] gdb API issues

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: My intuition about an API problem seems to be mistaken. If I compile Python in debug mode without any optimizations ("CFLAGS='' ./configure --with-pydebug"), all tests pass. The default builds of Python use -O2 nowadays, even in debug mode (issue8625), which

[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 added the comment: I don't think we should use the openssl binary for anything. It may belong to a different version, and it may not be available (in particular on Windows). I don't understand the problem you are trying to solve. What exactly is it that will stop working on Op

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

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Ronald> How did you detect that the modern getgroups implementation Ronald> doesn't query the kernel? That would be very odd. I have just found the source code for getgroups: http://www.opensource.apple.com/source/Libc/Libc-594.1.4/sys/getgroups.c As I

[issue8600] test_gdb failures

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch in r80802 (trunk) and r80803 (py3k). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

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

2010-05-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The latest patch, os-getgroups-v2.patch, seems to have the same bug as I reported in msg99926: """ The crash that I see is apparently due to underallocated memory: alt_grouplist = PyMem_Malloc(n); should be alt_grouplist = PyMem_Malloc(n * sizeof(g

[issue8630] Keepends param in codec readline(s)

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Mainly I'm saying that I don't think a public API should have a name starting with an '_'. Sets a bad precedent :) Looking at the functionality more closely, though, it does make me nervous that we are recommending changing the global state of the module.

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

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Committed to trunk in r80800. However, when I ported it to py3k, it turns out the test fails there, but passes if the original fix from this issue has been applied. More investigation is needed, but clearly something changed in the payload encoding logic (

[issue8564] Update documentation on doctest/unittest2 integration

2010-05-05 Thread Éric Araujo
Éric Araujo added the comment: I can’t tell if the code is correct (we can trust Michael about that), but the wording and the content are ok for me. -- nosy: +merwok ___ Python tracker

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods added the comment: I'll add unit tests later if no one else gets to it first; and they have the same functionality, but I could change the default back to None and use is None if that would be clearer (it would). -- ___ Python tracker

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Given what we've learned, I think that Walter's first patch is the best fix. No one should be relying on the current actual behavior of the default argument, and the fix makes it work as documented. As for backporting to 2.7, I don't think so. 2.7 is in fe

[issue8573] Buggy _strerror in asyncore

2010-05-05 Thread Éric Araujo
Éric Araujo added the comment: Don’t want to bikeshed here, but why didn’t you keep the newer “{}” string formatting? Module consistency? -- nosy: +merwok ___ Python tracker ___

[issue8628] Incorrect numbers.Complex.imag documentation

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8550] Expose SSL contexts

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch after reindent of _ssl.c -- Added file: http://bugs.python.org/file17225/sslcontext3.patch ___ Python tracker ___

[issue7583] Improve explanation of tab expansion in doctests

2010-05-05 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel added the comment: I've just been bitten by this, and I agree the language in the docs is very inappropriate (made me angry for a minute :)). One suggestion: "While not everyone might believe tabs should mean that, doctests are primarily aimed at documentation, and,

[issue8630] Keepends param in codec readline(s)

2010-05-05 Thread André M . C . Campos
New submission from André M. C. Campos : Some methods in StreamReaderWriter class (codecs library) has different signatures from StreamReader methods. More precisely it's missing the keepends parameter in readline and readlines methods. So, we cannot code: fp = codecs.open(fileName, "r", "utf-

[issue740495] API enhancement: poplib.MailReader()

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3244] multipart/form-data encoding

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-l

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

2010-05-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2010-05-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : OpenSSL 1.0.0 needs to change the cipher list for some test_ssl tests to succeed, but the cipher list can't be changed in 2.6/3.1 (maintenance branches). The solution is to skip these tests with the newer OpenSSLs. This patch uses the "openssl" executable t

[issue7755] copyright clarification for audiotest.au

2010-05-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: trunk: r80793 py3k: 80795 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-05-05 Thread Tres Seaver
Tres Seaver added the comment: I would be glad to write those tests, if you could explain the strategy you have in mind more fully: since 'shutil.copyfile' performs the 'open' itself, I couldn't figure out how to stub in such a mocked up file. Does 'open' provide a hook for testing purposes

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods added the comment: And if you really think that the unfortunate behavior of >>> getheader('a', ['a', 'b']) 'a, b' Is desired, issue8572-unfortunate.diff retains that behavior. I think that is counter-intuitive though, and it is doubtful that many would be relying on this

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: There are way more interesting regressions in OSX, issue8621 is one example: basicly getgroups(2) does not reflect the results of setgroups(2) with the compiler settings we use. Committed in r80784 (trunk), r80785 (2.6), r80786 (3.2) and r80788 (3.1) --

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods added the comment: Relevant part from trunk/Lib/rfc822.py illustrating that returning default unchanged is the legacy/defined behavior: return self.dict.get(name.lower(), default) See attached patch for py3k. This preserves backwards compatibility (aside from the comma-

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

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> It would be nice to restore the original behaviour, if possible, since >> the optimization causes difficulties when debugging. One solution >> would be to add '-O0' to OPT for debug builds

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

2010-05-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8628] Incorrect numbers.Complex.imag documentation

2010-05-05 Thread Daniel Urban
New submission from Daniel Urban : The current documentation of the imag abstract property of numbers.Complex is this: "Abstract. Retrieves the Real component of this number." Of course the imag attribute is the imaginary component, not the real. -- assignee: d...@python components: Doc

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods added the comment: Senthil, you are correct, I gave a bad example. However, try list()ing an integer :) -- ___ Python tracker ___ _

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Walter, just to address one of your point: +if failobj and not isinstance(failobj, list): +if isinstance(failobj, str): +failobj = [failobj] +else: +failobj = list(failobj)

[issue8622] Add PYTHONFSENCODING environment variable

2010-05-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1525919] email package quoted printable behaviour changed

2010-05-05 Thread Thomas Arendsen Hein
Thomas Arendsen Hein added the comment: Roger Demetrescu, I filed the issue with "Python 2.4", because the behavior changed somewhere between 2.4.2 and 2.4.3 The updated link to the MoinMoin bug entry is: http://moinmo.in/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded The workaround I use t

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods added the comment: Sorry I'm just getting back to this . . . Senthil, doesn't list(None) throw an exception? That was the whole problem with list()ing the default argument. And I don't think the problem should be fixed in email.message.Message.get_all() . . . that function works

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

2010-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Fixing this isn't easy: a simple 'if (inherit_slots(...) < 0) goto error;' produces a huge reference leak in PyType_Ready. -- ___ Python tracker ___

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

2010-05-05 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file17221/os-getgroups-v2.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with Michael that something should be done. I propose to add commit os-getgroups-v2.patch, which is the almost same as os-getgroups.patch that I posted earlier, but adds a check for large values of NGROUPS_MAX (see msg99913 for the rationale) This e

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

  1   2   >