[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue10824] urandom should not block

2011-01-06 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Martin v. Löwis mar...@v.loewis.de 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

[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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.

[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 e...@gthcfoundation.org added the comment: On 05/01/11 09:12 PM, Glenn Linderman wrote: Glenn Linderman v+pyt...@g.nevcal.com 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

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: I suppose the FileIO in _io is next to look at, wherever it can be found. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue410547] os.statvfs support for Windows

2011-01-06 Thread David-Sarah Hopwood
David-Sarah Hopwood david-sa...@jacaranda.org 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 pit...@free.fr 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 ___

[issue5945] PyMapping_Check returns 1 for lists

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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;

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

2011-01-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2011-01-06 Thread Ned Deily
New submission from Ned Deily n...@acm.org: 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

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

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-01-06 Thread Philippe Devalkeneer
Philippe Devalkeneer phil.le.bienheur...@gmail.com 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 rep...@bugs.python.org

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

2011-01-06 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

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

2011-01-06 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

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

2011-01-06 Thread Ned Deily
New submission from Ned Deily n...@acm.org: 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

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

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

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

2011-01-06 Thread Ned Deily
New submission from Ned Deily n...@acm.org: 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:

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

2011-01-06 Thread Etienne Robillard
Etienne Robillard e...@gthcfoundation.org 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

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

2011-01-06 Thread Ned Deily
Ned Deily n...@acm.org 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 rep...@bugs.python.org

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

2011-01-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This looks safe enough for me to apply. Fixed in r87791. -- resolution: - fixed stage: patch review - status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10844

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

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___ ___ Python-bugs-list

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue10841] binary stdio

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-01-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Ping - Garrett, any progress on updating the tests? With dispatch, this could still make it into 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8746

[issue10845] test_multiprocessing failure under Windows

2011-01-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10845 ___ ___

[issue10841] binary stdio

2011-01-06 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

[issue10835] sys.executable default and altinstall

2011-01-06 Thread Stéphane Gaudreault
Changes by Stéphane Gaudreault steph...@archlinux.org: -- nosy: +stephane ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10835 ___ ___

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

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10785 ___ ___ Python-bugs-list

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 */ --

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10812] Add some posix functions

2011-01-06 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com 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

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

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-01-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue2973] _ssl compiler warnings

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue2973

[issue968063] Add fileinput.islastline()

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list

[issue3163] module struct support for ssize_t and size_t

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163 ___ ___

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158490 ___

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 victor.stin...@haypocalc.com 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

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

2011-01-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, you are right. That makes the backward compatibility issue a lot worse :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953

[issue6269] threading documentation makes no mention of the GIL

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

[issue9909] request for calendar.dayofyear() function

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9909 ___ ___ Python-bugs-list mailing

[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 pit...@free.fr: -- stage: - patch review versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4681 ___

[issue5369] __ppc__ macro checking is incorrect

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - Wrong powerpc define in Python/ceval.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5369

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

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Issue5369 is a duplicate with the same patch. Dave, can you apply? -- assignee: - dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10655

[issue1521196] smtplib login fails with aol smtp server

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521196 ___ ___ Python-bugs-list

[issue3466] urllib2 should support HTTPS connections with client keys

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue6284] C/API PyErr_AsUnicode()

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: - patch review type: - feature request versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6284

[issue1697943] msgfmt cannot cope with BOM

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: unit test needed - needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1697943

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

2011-01-06 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com 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

[issue8927] Handle version conflicts in dependencies

2011-01-06 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8927 ___ ___ Python-bugs-list

[issue9909] request for calendar.dayofyear() function

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 ___

[issue1615158] POSIX capabilities support

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou, rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1615158 ___ ___

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

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue6064] Add daemon argument to threading.Thread constructor

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: jnoller - stage: - patch review type: behavior - feature request versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6064

[issue8731] BeOS for 2.7 - add to unsupported

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue8731

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

2011-01-06 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com 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 rep...@bugs.python.org

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

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4346 ___ ___

[issue9373] pulldom has low code coverage

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +flox, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9373 ___ ___ Python-bugs-list

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

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue3173] external strftime for Python?

2011-01-06 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3173 ___ ___ Python-bugs-list mailing

[issue10841] binary stdio

2011-01-06 Thread Guido van Rossum
Guido van Rossum gu...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue10841

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

2011-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 ___

[issue10841] binary stdio

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

[issue3173] external strftime for Python?

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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:

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

2011-01-06 Thread Vladimir Rutsky
New submission from Vladimir Rutsky altsy...@gmail.com: 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

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

2011-01-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r87807. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10846 ___

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

2011-01-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Removal of the buffer interface from the ABI has been committed as r87805, r87806, r87805, r87808, and r87809. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181

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

2011-01-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com 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

[issue3173] external strftime for Python?

2011-01-06 Thread Eric Smith
Eric Smith e...@trueblade.com 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

[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 pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7858 ___ ___ Python-bugs-list

[issue3173] external strftime for Python?

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Jan 6, 2011 at 2:56 PM, Eric Smith rep...@bugs.python.org 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

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

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue3173] external strftime for Python?

2011-01-06 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Thu, Jan 6, 2011 at 11:56 AM, Eric Smith rep...@bugs.python.org 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

[issue3173] external strftime for Python?

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue3173] external strftime for Python?

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue10841] binary stdio

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-01-06 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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

[issue10841] binary stdio

2011-01-06 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: -pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing

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

2011-01-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Jan 6, 2011 at 3:49 PM, STINNER Victor rep...@bugs.python.org 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

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

2011-01-06 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: Looks good to me. Do you need the TODO(gps)'s in there after implementing the behavior described? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1054041

[issue5673] Add timeout option to subprocess.Popen

2011-01-06 Thread Reid Kleckner
Reid Kleckner r...@mit.edu 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

[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 nadeem.va...@gmail.com: -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4681 ___ ___ Python-bugs-list

[issue10841] binary stdio

2011-01-06 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Thu, Jan 6, 2011 at 1:20 PM, STINNER Victor rep...@bugs.python.org 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

  1   2   >