[issue10849] Backport test/__main__

2011-01-06 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mail

[issue10835] sys.executable default and altinstall

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I agree that not guessing would be better. Well, on Linux, readlink("/proc/self/exe") would be better than guessing. -- ___ Python tracker

[issue10813] Suppress adding decimal point for places=0 in moneyfmt()

2011-01-06 Thread Carsten Grohmann
Carsten Grohmann added the comment: Setting dp to an empty string is only a workaround from my perspective. I get the value of the places parameter from a configuration instance and have to implement an additional check "places == 0" every time I call the original moneyfmt(). To reduce this e

[issue10849] Backport test/__main__

2011-01-06 Thread Éric Araujo
Éric Araujo added the comment: FWIW, I’ve already been caught by “./python -m test” not working with 3.1 and 2.7 when doing backports and using my shell history functionality. I share Alexander’s viewpoint that adding test.__main__ is a core dev-specific convenience that should not count as

[issue10848] Move test.regrtest from getopt to argparse

2011-01-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2011-01-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: > IMO, if we give the illusion that the interpreter was actually killed, > we should equate KeyboardInterrupt with SIGINT; any uncaught > KeyboardInterrupt should consequently always lead to raising SIGINT. Agreed. Plus that is easier to implement and what I

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-06 Thread Daniel Black
Daniel Black added the comment: dup #10853 -- nosy: -pitrou resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue10853] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-06 Thread Daniel Black
New submission from Daniel Black : Like r85793, sni is enabled by default for url and https classes. This continues the consistency throughout the python libraries by adding it to other places where wrap_socket is used to instigate a SSL/TLS connection. -- components: Library (Lib) fil

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-06 Thread Daniel Black
New submission from Daniel Black : Like r85793, sni is enabled by default for url and https classes. This continues the consistency throughout the python libraries by adding it to other places where wrap_socket is used to instigate a SSL/TLS connection. -- components: Library (Lib) fil

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Nick Coghlan
Nick Coghlan added the comment: I'm curious as to the results you get running "python -m test.__main__" and "python Lib/test/__main__.py" as well. I suspect both will fail. Looking at the forking.py code, I think multiprocessing makes some assumptions that are flat out invalid in the presence

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I agree with you that according to RFC1428, use of unknown-8bit is implicitly recommended. However, note that the RFC itself is not standards-track. I agree with your interpretation that in this context the email module should be considered a gateway.

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-06 Thread Nick Coghlan
Nick Coghlan added the comment: @Antoine: I actually had a closer look at the way dup_buffer is used, and I think it is currently legitimate (including for the anonymous memory case). It just isn't documented very well. For the "FromBuffer" case, it assumes the calling code already invoked Ge

[issue3132] implement PEP 3118 struct changes

2011-01-06 Thread Meador Inge
Meador Inge added the comment: Attached is the latest version of the struct string patch. I tested on OS X 10.6.5 (64-bit) and Ubuntu 10.04 (32-bit). I also scanned for memory problems with Valgrind. There is one test failing on 32-bit systems ('test_crasher'). This is due to the fact tha

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread R. David Murray
R. David Murray added the comment: I have a little bit of concern whether or not 'unknown-8bit' is the correct charset to use. It seems to be the one in the RFCs, but I have a feeling it may not be what is used "in the wild" in headers, so I am looking for opinions. -- nosy: +sjt __

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Here is a patch. Three of the tests currently fail due to what appears to be a bug in the Header formatting routines. I'll have to look in to that before finishing this issue. Note that doing str on a message with binary headers can produce overlong lines

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-06 Thread Nadeem Vawda
Nadeem Vawda added the comment: Looking at the warnings from test_urllib2net, it seems that they all originate in the FTP tests: * OtherNetworkTests.test_ftp() * TimeoutTest.test_ftp_basic() * TimeoutTest.test_ftp_default_timeout() Most of these leaks seem to stem from the fact that socket.Soc

[issue8109] Support for TLS Server Name Indication extension

2011-01-06 Thread Daniel Black
Daniel Black added the comment: issue #5639 only has functionality for client side SNI. Server side SNI is still missing. For server side SNI to be supported a server program should be able to retrieve the server name provided by the client call and alter the server certificate/key before th

[issue10851] further extend ssl SNI and ciphers API

2011-01-06 Thread Daniel Black
New submission from Daniel Black : as a further extension to issue #5639 (sni) and issue #8322 this patch provides the ability to set ciphers in the SSLContext.wrap_socket and server_hostname in ssl.wrap_socket. This just makes all the ssl apis look the same. Restructured the documentation as

[issue10835] sys.executable default and altinstall

2011-01-06 Thread R. David Murray
R. David Murray added the comment: I agree that not guessing would be better. But as long as we *are* guessing, it seems to me that /usr/bin/python2.7 would be less wrong than /usr/bin/python, for almost all modern unix systems. -- ___ Python trac

[issue10827] Functions in time module should support year < 1900 when accept2dyear = 0

2011-01-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file20295/issue10827c.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue10848] Move test.regrtest from getopt to argparse

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Note that based on my experience with the conversion of compileall to argparse,it is important to have good tests. Of course, regrtest itself has no tests... -- nosy: +r.david.murray ___ Python tracker

[issue10827] Functions in time module should support year < 1900 when accept2dyear = 0

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch, issue10827c.diff, implements the following logic in gettmarg: /* If year is specified with less that 4 digits, its interpretation

[issue5171] itertools.product docstring missing 'repeat' argument

2011-01-06 Thread mrjbq7
mrjbq7 added the comment: I noticed a Reddit post[1] today that makes the comment that the docstring should read: product(*iterables[, repeat]) --> product object instead of: product(*iterables) --> product object --- [1] http://www.reddit.com/r/Python/comments/ex68j/omission_

[issue10849] Backport test/__main__

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > -0 we don't backport new features New tests are routinely backported when they accompany bug fixes, so new features under Lib/test are probably a fair game. Given that this feature is implemented entirely in a file that is not used for any other purp

[issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server

2011-01-06 Thread chrysn
New submission from chrysn : The multiprocessing.manager.BaseManager class has a class property called _Server, defaulting to multiprocessing.manager.Server, that is used in the ._run_server method (typically invoked via .run()) to determine the class of the server that is to be created. On t

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: I wonder whether there is a precedent of some system mapping SIGINT to an exception. We could probably learn something from them. > - should KeyboardInterrupt always exit with SIGINT, or only if it was > actually raised by a signal handler? IMO, if we give th

[issue10812] Add some posix functions

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: Patch looks mostly good. Some comments: - sethostname supports names with embedded null bytes, so wrapper should not use strlen - it's a bit asymmetric that gethostname is in the socket module and supports Windows, and sethostname is in the POSIX module.

[issue2973] _ssl compiler warnings

2011-01-06 Thread Daniel Black
Daniel Black added the comment: out of date? still occurs on: AMD64 Leopard 2.7: http://www.python.org/dev/buildbot/all/builders/AMD64 Leopard 2.7/builds/308/steps/compile/logs/warnings (57) PPC Leopard 2.7: http://www.python.org/dev/buildbot/all/builders/PPC Leopard 2.7/builds/532/steps/comp

[issue10849] Backport test/__main__

2011-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 we don't backport new features -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-li

[issue10849] Backport test/__main__

2011-01-06 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10849] Backport test/__main__

2011-01-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10824] urandom should not block

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: > You'll see that read returns less that 100M bytes when interrupted. I see. > while len(data) < expected: > read(expected - len(data)) > > So we're sure it won't break under some systems/conditions. I think this is not quite the idiom we should use if

[issue10849] Backport test/__main__

2011-01-06 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : It is much easier to remember and to type -m test instead of -m test.regrtest, but the usefulness of this feature is limited by the fact that it only works with the latest version. Since this does not require any user-visible changes, I think it shoul

[issue10848] Move test.regrtest from getopt to argparse

2011-01-06 Thread Sandro Tosi
Sandro Tosi added the comment: I had that in mind since quite some time, so I'm taking ownership of this issue. -- assignee: -> sandro.tosi nosy: +sandro.tosi versions: +Python 3.3 ___ Python tracker

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10835] sys.executable default and altinstall

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: I fail to see the bug. Garbage in, garbage out. AFAIU, returning /usr/bin/python2.7 still might be the wrong answer. -- nosy: +loewis ___ Python tracker

[issue10848] Move test.regrtest from getopt to argparse

2011-01-06 Thread Brett Cannon
New submission from Brett Cannon : r87812 shows that using getopt is not a good thing; having the short and long versions of an argument separated from each other can lead to bugs. It would be good to move test.regrtest over to argparse to help prevent that from happening again. -- co

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: - should KeyboardInterrupt always exit with SIGINT, or only if it was actually raised by a signal handler? - if _Py_UnhandledKeyboardInterrupt is defined in Modules/main.c but used in Python/pythonrun.c, can't it cause linker errors when embedding Python? - pl

[issue10841] binary stdio

2011-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: On Thu, Jan 6, 2011 at 1:20 PM, STINNER Victor wrote: > I don't know the effect of _setmode(stderr, O_BINARY) on calls to > fputs(stderr, ...) in Py_FatalError(). On Windows it will write lines ending in LF only instead of CRLF. Most tools to read text file

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-01-06 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue5673] Add timeout option to subprocess.Popen

2011-01-06 Thread Reid Kleckner
Reid Kleckner added the comment: Pablo, so if I understand the issue you've run into correctly, you are using shell redirection to redirect stdout to a file, and then attempting to read from it using stdout=subprocess.PIPE. It seems to me like this behavior is expected, because the shell will

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2011-01-06 Thread Reid Kleckner
Reid Kleckner added the comment: Looks good to me. Do you need the TODO(gps)'s in there after implementing the behavior described? -- ___ Python tracker ___

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 6, 2011 at 3:49 PM, STINNER Victor wrote: .. > eric> I always thought that one of the reasons for specifying the length > eric> was in case a pointer pointed to garbage: at least you'd be limiting > eric> how much trash was printed. > > No, it

[issue10841] binary stdio

2011-01-06 Thread Peter Kleiweg
Changes by Peter Kleiweg : -- nosy: -pebbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10847] Distutils drops -fno-strict-aliasing when CFLAGS are set

2011-01-06 Thread Stefan Krah
New submission from Stefan Krah : When CFLAGS are set, distutils drops -fno-strict-aliasing (among other flags): $ python2.7 setup.py build ... gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/usr/local/include -I/usr/local/include/py

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: New patch setting O_BINARY mode using _setmode() (on Windows) to stdin, stdout, stderr, but also to all FileIO() objects. The patch on Py_Main() is still needed because Python may use sys.stderr when it is still a stdprinter object, before the final TextIOWra

[issue3173] external strftime for Python?

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: Is nl_langinfo() function reliable? On any OS? Can we use it to get day name, abbreviated day name, month name and abbreviated month name? We should maybe start with an implementation in Python? It's easier to write code in Python than in C, and because it ca

[issue3173] external strftime for Python?

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: The Qt library has its own strftime() implementation. The QLocale object has methods providing localized day and month names. For example, day names are implemented using a big ushort array (~20.000 bytes) which contains something like 'Sun;Mon;Tue;Wed;Thu;F

[issue3173] external strftime for Python?

2011-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: On Thu, Jan 6, 2011 at 11:56 AM, Eric Smith wrote: > If we're going to take this on (re-writing strftime), I think the way to do > it is to have it take the locale info as a parameter, and if that parameter > is NULL then look up the info in the current loc

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: eric> I always thought that one of the reasons for specifying the length eric> was in case a pointer pointed to garbage: at least you'd be limiting eric> how much trash was printed. No, it's because of the old (removed) 500 bytes limit. There are different ty

[issue3173] external strftime for Python?

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 6, 2011 at 2:56 PM, Eric Smith wrote: .. > If we're going to take this on (re-writing strftime), I think the way to do > it is to have it take the locale info as a > parameter, and if that parameter is NULL then look up the info in the curren

[issue7858] os.utime(file, (0, 0, )) fails on on vfat, but doesn't fail immediately

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue3173] external strftime for Python?

2011-01-06 Thread Eric Smith
Eric Smith added the comment: I think we're stuck with strftime for quite a while, no matter how ugly it is. datetime.__format__ uses it, for example. Although maybe it's possible to write an strftime-format to new-format translator. If we're going to take this on (re-writing strftime), I thi

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: We have several, myself included, that can't use CGI under 3.x because it doesn't take a binary stream. I believe there are several alternatives: 1) Document that CGI needs a binary stream, and expect the user to provide it, either an explicit handle, or by

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: Removal of the buffer interface from the ABI has been committed as r87805, r87806, r87805, r87808, and r87809. -- ___ Python tracker ___

[issue10846] typo in threading doc's: "size of the resource size"

2011-01-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87807. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10846] typo in threading doc's: "size of the resource size"

2011-01-06 Thread Vladimir Rutsky
New submission from Vladimir Rutsky : I think there is a typo in threading documentation: > In any situation where the size of the resource size is fixed, > you should use a bounded semaphore. - "size of the resource size", see attached patch for proposed fix. (Based on official http://svn.pyt

[issue3173] external strftime for Python?

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Maybe rather than spending the effort maintaining a legacy API such as strftime, someone could look into implementing localized date formatting as defined by recent Unicode standards: http://unicode.org/reports/tr35/#Date_Format_Patterns Apparently the

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: Victor, Thanks for your interest and patches. msg125530 points out the location of the code where _all_ fds could be O_BINARYed, when passed in to open. I think this would make all fds open in binary mode, per Guido's comment... he made exactly the comment

[issue7858] os.utime(file, (0, 0, )) fails on on vfat, but doesn't fail immediately

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r87802 (3.2), r87803 (3.1) and r87804 (2.7). Will watch the buildbots. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending versions: -Python 2.6 ___ Python tracker

[issue4346] PyObject_CallMethod changes the exception message already set by PyObject_GetAttr

2011-01-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: We should probably just kill the LBYL. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10841] binary stdio

2011-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Not sure why I've been added, but I agree that all fds should always be in binary mode in Python 3. -- ___ Python tracker ___ __

[issue3173] external strftime for Python?

2011-01-06 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > /* Caller is responsible for limiting the format */ Note that it is a good idea to avoid memory allocation during exception processing. Think of out of memory errors: how would you report those if you need more memory to format the error message than

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I agree with Eric. Limiting field width when formatting error messages is a good safety measure. It is not only the amount of garbage that can be spitted in error logs, if garbage is not null-terminated, you may get a SEGV instead of a somewhat meanin

[issue9373] pulldom has low code coverage

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue4346] PyObject_CallMethod changes the exception message already set by PyObject_GetAttr

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10655] Wrong powerpc define in Python/ceval.c

2011-01-06 Thread Dave Malcolm
Dave Malcolm added the comment: Merged back to 3.1 as r87800 and to 2.7-maint as r87801 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue8731] BeOS for 2.7 - add to unsupported

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: We should do a bit sweep over unsupported platforms in 3.3. -- nosy: +pitrou resolution: -> out of date status: open -> closed ___ Python tracker _

[issue6064] Add "daemon" argument to threading.Thread constructor

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: jnoller -> stage: -> patch review type: behavior -> feature request versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: About the backward compatibility: does anyone use CGI with Python3? It looks like the module is broken (at least to upload files). If not, it's maybe better to fix it today than having to maintain a "broken" API. Python 3.2 has many incompatibles changes with

[issue1615158] POSIX capabilities support

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou, rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue3839] wsgi.simple_server resets 'Content-Length' header on empty content even if app defined it.

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed with tests in r87797 (3.2), r87798 (3.1) and r87799 (2.7). Thank you! -- nosy: +pitrou -BreamoreBoy resolution: -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue9909] request for calendar.dayofyear() function

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is yet another request for functionality that can be implemented as a simple expression using datetime arithmetics. Also, issue #9864 is not a compelling use case because "the parsedate() function now returns a datetime object." See msg117496.

[issue8927] Handle version conflicts in dependencies

2011-01-06 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: +techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10655] Wrong powerpc define in Python/ceval.c

2011-01-06 Thread Dave Malcolm
Dave Malcolm added the comment: Adrian verified in the downstream bug tracker that this fixed the build for him (and the logs show it successfully ran the test suite), so I committed my patch to py3k as r87796. -- ___ Python tracker

[issue1697943] msgfmt cannot cope with BOM

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: unit test needed -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___

[issue6284] C/API PyErr_AsUnicode()

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: -> patch review type: -> feature request versions: +Python 3.3 -Python 3.1 ___ Python tracker ___

[issue3466] urllib2 should support HTTPS connections with client keys

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: In 3.2, you can instantiate a HTTPSHandler with a custom SSLContext, on which you can load your client cert: http://docs.python.org/dev/library/urllib.request.html#urllib.request.HTTPSHandler http://docs.python.org/dev/library/ssl.html#ssl.SSLContext.load_cert_

[issue1521196] smtplib login fails with aol smtp server

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10655] Wrong powerpc define in Python/ceval.c

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Issue5369 is a duplicate with the same patch. Dave, can you apply? -- assignee: -> dmalcolm ___ Python tracker ___ ___

[issue5369] __ppc__ macro checking is incorrect

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> duplicate status: open -> closed superseder: -> Wrong powerpc define in Python/ceval.c ___ Python tracker ___ _

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python-

[issue9909] request for calendar.dayofyear() function

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6269] threading documentation makes no mention of the GIL

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, done in r87792, r87793 and r87794, thank you. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Ah, you are right. That makes the backward compatibility issue a lot worse :( -- ___ Python tracker ___ __

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: The initial problem (":" in the LANGUAGE variable) was fixed in an independent (?) issue (#1166938) by r39572. If I understood correctly, locale.getdefaultlocale() is supposed to give the locale settings that we will be active after the first call to locale.

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: > Using my patch, the interpreter fails with a SyntaxError on \r: > attached patch translates newlines to avoid this problem. See also issue #4628. -- ___ Python tracker

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue3163] module struct support for ssize_t and size_t

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue968063] Add fileinput.islastline()

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Anyone wants to produce an up-to-date patch for py3k? -- keywords: +easy -patch nosy: +pitrou stage: -> needs patch type: -> feature request versions: +Python 3.3 -Python 2.6 ___ Python tracker

[issue2973] _ssl compiler warnings

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't get any warnings with gcc -Wall and OpenSSL 1.0.x. -- nosy: +pitrou resolution: -> out of date status: open -> closed ___ Python tracker __

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Haypo: I believe that the consensus we've come to is that you > shouldn't have to. FieldStorage should take a binary stream. So > should cgi.parse. If defaulting to sys.stdin, then if stdin is text, > they should turn it in to a binary stream right at the s

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread R. David Murray
R. David Murray added the comment: Haypo: I believe that the consensus we've come to is that you shouldn't have to. FieldStorage should take a binary stream. So should cgi.parse. If defaulting to sys.stdin, then if stdin is text, they should turn it in to a binary stream right at the start

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: I tried full_source_and_error.zip on Windows and it failed. With stdio_binary.patch (attached to #10841), it works but I get an unicode file instead of a binary file. With stdio_binary.patch+cgi_plus_tests.diff it works as expected: I get a binary file (bytes

[issue10812] Add some posix functions

2011-01-06 Thread Ross Lagerwall
Ross Lagerwall added the comment: This new patch reuses iov allocation code between readv & writev. It reuses code between exec, execve & fexecve. It reuses code for parsing off_t types. I've tried where possible to reuse code but I think though that the code seems pretty standard for the posi

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: Using my patch, the interpreter fails with a SyntaxError on \r: attached patch translates newlines to avoid this problem. -- Added file: http://bugs.python.org/file20291/parser_translate_newline.patch ___ Python tra

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: Attached stdio_binary.patch always set stdin, stdout and stderr in binary mode on Windows (and not only with -u command line flag). I added the following comment, is it correct? /* don't translate newlines */ -- keywords: +patch nosy: +haypo Adde

  1   2   >