[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Rather than introduce "fixes" that break code and hurt performance, I think it would be better to deprecate PyMapping_Check() and wait for a fast, clean C version of the ABCs (that is supposed to be our one obvious way to do it). FWIW, the spreadsheet exam

[issue10824] urandom should not block

2011-01-06 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Martin v. Löwis added the comment: > >> "It's a bug in random.c that doesn' t check for signal pending inside the >> read(2) code, so you have no chance to kill the process via signals until >> the read(2) syscall is finished, and it could take a lot

[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Rather than introduce "fixes" that break code and hurt performance, I > think it would be better to deprecate PyMapping_Check() and wait for a > fast, clean C version of the ABCs (that is supposed to be our one > obvious way to do it). Do you also advocate de

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: I can read and understand C well enough, having coded in it for about 40 years now... but I left C for Perl and Perl for Python, I try not to code in C when I don't have to, these days, as the P languages are more productive, overall. But there has to be spe

[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Do you also advocate deprecating PySequence_Check()? Perhaps just document PyMapping_Check() as being less informative than before (now it has false positives for sequences). > As for the "clean C version of the ABCs", > I'm afraid we could wait quite

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > But there has to be special handling somewhere for opening std*, > because they are already open, unlike other files. That is no doubt > where the bug is. Can you point me at that code? See initstdio() in Python/pythonrun.c --

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

2011-01-06 Thread Etienne Robillard
Etienne Robillard added the comment: On 05/01/11 09:12 PM, Glenn Linderman wrote: > Glenn Linderman added the comment: > > Pierre said: > In all cases the interpreter must be launched with the -u option. As stated > in the documentation, the effect of this option is to "force the binary layer

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: I suppose the FileIO in _io is next to look at, wherever it can be found. -- ___ Python tracker ___ __

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I suppose the FileIO in _io is next to look at, wherever it can be found. I don't get what you're looking for. FileIO is involved in both the buffered and unbuffered cases, so it shouldn't make a difference. In any case, please look into Modules/_io

[issue410547] os.statvfs support for Windows

2011-01-06 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: "Is there a portable way to get the available disk space by now?" No, but http://tahoe-lafs.org/trac/tahoe-lafs/browser/src/allmydata/util/fileutil.py?rev=4894#L308 might be helpful (uses pywin32). -- nosy: +davidsarah _

[issue1677694] test_timeout refactoring

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I adapted the patch for current py3k and committed it in r87786. Thank you for your patience. -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracke

[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > As for the "clean C version of the ABCs", > > I'm afraid we could wait quite a bit > > That may be true. I hope not. The ABCs were meant to solve exactly > this problem. At this point, I would rather ignore the problem for > 3.2 than to implement a less

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: Found it. The file browser doesn't tell what line number it is, but in _io/Fileio.c function fileio_init, there is code like #ifdef O_BINARY flags |= O_BINARY; #endif #ifdef O_APPEND if (append) flags |= O_APPEND; #endif if (fd >= 0) {

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

2011-01-06 Thread Mark Dickinson
Mark Dickinson added the comment: [Nick] > For point 2, it must be the same pointer. When the PEP says "the same", > I > agree it could be taken as ambiguous, but the later reference to the > exporter managing a linked-list of exported views makes it clear that > identity is what matters. Ok

[issue10842] Update third-party libraries for OS X installer builds

2011-01-06 Thread Ned Deily
New submission from Ned Deily : The third-party libraries used by the 32-bit OS X installer are in need of updating. (Patch follows.) -- assignee: ronaldoussoren components: Build, Macintosh messages: 125532 nosy: georg.brandl, ned.deily, ronaldoussoren priority: normal severity: norma

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

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: Etienne, I'm not sure what you are _really_ referring to by HTTP_TRANSFER_ENCODING. There is a TRANSFER_ENCODING defined by HTTP but it is completely orthogonal to character encoding issues. There is a CONTENT_ENCODING defined which is a character encoding

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, actually it boils down to the following code in Modules/main.c: if (Py_UnbufferedStdioFlag) { #if defined(MS_WINDOWS) || defined(__CYGWIN__) _setmode(fileno(stdin), O_BINARY); _setmode(fileno(stdout), O_BINARY); #endif ... which explain

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2011-01-06 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: Ok I will redo a patch in the next few days with possibly type sqlite3_int64, and include tests. Thank you for the review. -- ___ Python tracker ___

[issue10842] Update third-party libraries for OS X installer builds

2011-01-06 Thread Ned Deily
Ned Deily added the comment: 1. bzip2 1.0.5 -> 1.0.6 (fixes CVE-2010-0405) 2. GNU Readline 5.1.4 -> 6.1.2 3. SQLite 3.6.11 -> 3.7.4 (also enable FTS3/FTS4 and RTREE extensions) 4. ncurses 5.5 -> ncursesw 5.5 (enable wide-character support) 5. do not build Sleepycat DB (4.7.25) for Python 3 build

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: Don't find "initstdio" "stdio" in pythonrun.c. Has it moved? There are precious few references to stdin, stdout, stderr in that module, mostly for attaching the default encoding. -- ___ Python tracker

[issue10842] Update third-party libraries for OS X installer builds

2011-01-06 Thread Georg Brandl
Georg Brandl added the comment: Making this a blocker for now; I'd rather not update this during RC phase. -- nosy: +benjamin.peterson priority: high -> release blocker ___ Python tracker _

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: stderr is notable by its absence in the list of O_BINARY adjustments. So -u does do 2/3 of what my windows_binary() does :) Should I switch my test case to use stderr to demonstrate that it doesn't help with that? I vaguely remember that early versions of

[issue10843] OS X installer: install the Tools source directory

2011-01-06 Thread Ned Deily
New submission from Ned Deily : As suggested in Issue10502 and now that the former Demos directory has been pruned and moved under the Tools directory, the OS X installer should install the Tools source directory in the /Applications/Python 3.x/Extras directory where Demos was formerly install

[issue10843] OS X installer: install the Tools source directory

2011-01-06 Thread Ned Deily
Ned Deily added the comment: Patch for py3k. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file20287/issue10843-py3k.patch ___ Python tracker __

[issue10844] OS X installer: update copyright dates in app bundles

2011-01-06 Thread Ned Deily
New submission from Ned Deily : The copyright dates in the plists for the various app bundles installed by the OS X installer need updating. They are visible with the Finder's Get Info command. (patch for py3k follows, backport for 2.7 and 3.1 needed) -- assignee: ronaldoussoren comp

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

2011-01-06 Thread Etienne Robillard
Etienne Robillard added the comment: yes, lets not complexify anymore please... > Because the HTTP protocol is binary, only selected data, either explicitly or > implicitly (by standard definition) should be decoded, using the appropriate > encoding. FieldStorage should be able to (1) read a

[issue10844] OS X installer: update copyright dates in app bundles

2011-01-06 Thread Ned Deily
Ned Deily added the comment: Patch for py3k. (Patches needed for 31 and 27.) -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file20289/issue10844-py3k.patch ___ Python tracker __

[issue10844] OS X installer: update copyright dates in app bundles

2011-01-06 Thread Georg Brandl
Georg Brandl added the comment: This looks safe enough for me to apply. Fixed in r87791. -- resolution: -> fixed stage: patch review -> status: open -> closed ___ Python tracker _

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

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: Etienne said: yes, lets not complexify anymore please... Albert Einstein said: Things should be as simple as possible, but no simpler. I say: My "learning" of HTTP predates "chunked". I've mostly heard of it being used in downloads rather than uploads, but

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is under a Windows 7 VM. I don't understand what the assertion means: Z:\>__svn__\PCbuild\amd64\python_d.exe -m test -v test_multiprocessing == CPython 3.2b2+ (py3k, Jan 6 2011, 10:56:48) [MSC v.1500 64 bit (AMD64)] == Windows-7-6.1.7600 little-endian

[issue10845] test_multiprocessing failure under Windows

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

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it only happens if I use "-m test". If I use "-m test.regrtest" or "Lib/test/regrtest.py" instead, it works fine. -- nosy: +michael.foord, ncoghlan ___ Python tracker _

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: (I guess this means that multiprocessing under Windows is not compatible with execution of a package through a __main__.py file...) -- ___ Python tracker

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So -u does do 2/3 of what my windows_binary() does :) Should I switch > my test case to use stderr to demonstrate that it doesn't help with > that? Well, judging by the history of this code, selectively putting -u in binary mode may be justified by the fact

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-01-06 Thread Ned Deily
Ned Deily added the comment: Ping - Garrett, any progress on updating the tests? With dispatch, this could still make it into 3.2. -- ___ Python tracker ___ ___

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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.o

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman added the comment: Makes sense to me. Still should document the open file parameter when passed an fd, and either tell the user that it should be O_BINARY, or that it will be O_BINARYd for them, whichever technique is chosen. But having two newline techniques is bad, and if

[issue10835] sys.executable default and altinstall

2011-01-06 Thread Stéphane Gaudreault
Changes by Stéphane Gaudreault : -- nosy: +stephane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10785] parser: store the filename as an unicode object

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

[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

[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

[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

[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

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

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

[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

[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://

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

[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

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

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

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

[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

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

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

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

[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

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

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

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

[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

[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

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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

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

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

[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

[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

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

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

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

[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

[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 Peter Kleiweg
Changes by Peter Kleiweg : -- nosy: -pebbe ___ 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: 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

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

[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

[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

  1   2   >