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

2011-01-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Extension Modules -Library (Lib) stage: needs patch - unit test needed versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8033

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
New submission from Peter Heiberg pe...@sveumsondre.no: I recently installed Win7 on my laptop, and installed the x86 Python 2.7 package. IDLE fails to even start, and shows nothing but a process in task manager. I've tried compatibility modes both to Vista and XPSP2, with no luck. I ran

[issue10130] Create epub format docs and offer them on the download page

2011-01-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, I've committed this as r87760 and r87761. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10130

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: karl: I'm not clear precisely what it is that you want to draw our attention to. Note this bug is about parsing of Cookie headers by servers, not production of Set-Cookie headers by servers. --

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

2011-01-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Added Travis to nosy list - even if he doesn't have time to finish this off himself, hopefully he can point us in the right direction. -- nosy: +teoliphant ___ Python tracker rep...@bugs.python.org

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

2011-01-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yeah, the documentation for the email stuff is in the dev docs. There's a short summary in the changes section of the email intro with links to the classes and methods that are affected. But basically you call BinaryFeedParser and

[issue10835] sys.executable default and altinstall

2011-01-05 Thread Allan McRae
New submission from Allan McRae al...@archlinux.org: when sys.executable is run with a modified argv[0] such as: sh -c exec -a '' /usr/bin/python2.7 -c 'import sys; print(sys.executable)' it returns some a hardcoded value. In this case, it returns /usr/bin/python. This value is likely

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

2011-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: - unit tests are needed. - Py_LONG_LONG should be used instead of long long, and the cast removed. - The patch assumes that longlong == int64, but is it true on all platforms? -- nosy: +amaury.forgeotdarc

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

2011-01-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I always thought that one of the reasons for specifying the length was in case a pointer pointed to garbage: at least you'd be limiting how much trash was printed. But maybe that's just my imagination and there is no such reason. --

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread karl
karl karl+pythonb...@la-grange.net added the comment: John: Ah sorry, if I misunderstood. The bug seems to say that it is about the Cookie Name and legal chars for this cookie name. What I was trying to say is that the processing of the Cookie Name is different depending if you are a client

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

2011-01-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Nick, it sounds as though you have an idea of how you think things should be working here---perhaps you can help me out. I'd really like to understand what the implementation should look like from the POV of a 3rd party module that defines

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Here is a draft patch. It uses the *at functions and fdlistdir consequently it only makes it safe if those functions are available. It works using a recursive implementation and an open file descriptor pointing to a directory, instead

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

2011-01-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I believe you are right that the io module does not support intermixing calls to the main object and its buffer attribute I’ve learned in a recent discussion on web-sig that you can mix them, provided that you call stream.flush() before using

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Again, I don't think this is relevant, because the bug is about servers parsing Cookie: headers. Note that that string (the value of the Cookie: header) may be generated by a different server than the server that parses it (see the

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

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I believe you are right that the io module does not support intermixing calls to the main object and its buffer attribute; that's why detach was introduced, I believe. Writing is ok as long as you call flush() on the text layer when

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the patch. There seems to be a race remaining here: +try: +if os.path.islink(path): +# symlinks to directories are forbidden, see bug #1669 +raise OSError(Cannot call rmtree on a

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Ralf Schmitt
Changes by Ralf Schmitt sch...@gmail.com: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list mailing

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Can you start IDLE from the command line and see if there is any output? c:\python27\python.exe -m idlelib.idle -- components: +Windows -None nosy: +brian.curtin type: crash - behavior ___ Python

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

2011-01-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: PEP 3118 makes it clear that the underlying object should see *two* pairs of calls to the buffer methods: http://www.python.org/dev/peps/pep-3118/#the-py-buffer-struct Even if we ignore the undocumented obj field, the target object needs to

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

2011-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch, issue10827b.diff, fixes the accept2dyear = True issue and removes unnecessary struct_time to tuple conversion, but otherwise does not change the Y2K behavior. The code handling accept2dyear is refactored

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

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: However, I believe the current memoryview implementation does the wrong thing and only calls them once, and then duplicates the Py_buffer structures without ever going back to the original objects (that opinion was based on a quick scan of the

[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2011-01-05 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Ok, I've changed the version field and refreshed the patch against py3k. -- versions: +Python 3.3 -Python 2.7 Added file: http://bugs.python.org/file20276/issue5485-py3k.patch ___ Python tracker

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Updated patch removes the race condition. Since an open follows symlinks, you can't just fstat the fd to see if it is a link. I followed the following to overcome this:

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mercredi 05 janvier 2011 à 16:58 +, Ross Lagerwall a écrit : Ross Lagerwall rosslagerw...@gmail.com added the comment: Updated patch removes the race condition. Since an open follows symlinks, you can't just fstat the fd to see if it

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, here is a patch which prefers the default timeout (if set) over fixing of inherited flags. Tested under Linux, Windows, OpenSolaris. -- Added file: http://bugs.python.org/file20278/nonblock3.patch

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread karl
karl karl+pythonb...@la-grange.net added the comment: agreed. :) Then my question about parsing rules for libraries. Is interoperability a plus here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2193

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Yes, interoperability is good. Do you have a specific concern about the change that I proposed? If not, and you're instead just trying to ensure conformance, by all means read the draft specification that you pointed out and look for

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Yes, interoperability is good. Do you have a specific concern about the change that I proposed? If not, and you're instead just trying to ensure conformance, by all means read the draft specification that you pointed out and look for

[issue8499] Set a timeout in test_urllibnet

2011-01-05 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: This was already fixed (in an unrelated commit) with r85630 and prevoious, so I'm marking this issue as closed. -- nosy: +sandro.tosi resolution: - fixed status: open - closed ___ Python tracker

[issue6532] thread.get_ident() should return unsigned value

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, the issue is that signedness differs depending on the platform. Under Windows, thread ids are signed (DWORD). Satisfying all cases would complicate things quite a bit. -- nosy: +gregory.p.smith, pitrou, rnk

[issue6532] thread.get_ident() should return unsigned value

2011-01-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: no, DWORD is a 32-bit unsigned integer http://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue10835] sys.executable default and altinstall

2011-01-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Another alternative might be to return None (refuse the temptation to guess). But, given the long standing nature of the current guessing, having it return the specific version string may indeed make sense. -- keywords: +easy

[issue6532] thread.get_ident() should return unsigned value

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: no, DWORD is a 32-bit unsigned integer http://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx Oops, my bad. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6532

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I think I misread the original implementation. Here is an updated version with that code just taken out. -- Added file: http://bugs.python.org/file20279/i4489_v3.patch ___ Python tracker

[issue10835] sys.executable default and altinstall

2011-01-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10835 ___ ___ Python-bugs-list

[issue5424] Packed IPaddr conversion tests should be extended

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure what the point of this patch is, since it's basically testing operating system behaviour, rather than Python behaviour. I think that we could have a single additional test case for bad inputs and leave it at that. But in any case,

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: The command line opens, but displays nothing but the white flashing underscore.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10834

[issue10836] TypeError during exception handling in urllib.request.urlretrieve

2011-01-05 Thread Alexandru Moșoi
New submission from Alexandru Moșoi alexan...@mosoi.ro: If I try to download a inexistent file I get a TypeError which is thrown during exception handling. import urllib.request urllib.request.urlretrieve('missing') Traceback (most recent call last): File

[issue10836] TypeError during exception handling in urllib.request.urlretrieve

2011-01-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - orsenthil nosy: +orsenthil stage: - needs patch versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10836 ___

[issue10835] sys.executable default and altinstall

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

[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Doc patch committed in r87762. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5485 ___

[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I've changed assertEquals to assertEqual and committed the tests in r87765. Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.2 -Python 3.3

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-01-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: +Add posix.fdlistdir, create Python wrappers for openat() and others ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2011-01-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ok, here is a patch which prefers the default timeout (if set) over fixing of inherited flags. Tested under Linux, Windows, OpenSolaris. This patch looks fine to me. Please also update the accept documentation to explain the situation

[issue10812] Add some posix functions

2011-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The patch contains a lot of repeated boilerplate code. I wonder if some of it can be factored out and reused. For example iov buffer allocation code appears to be identical in writev and readv. -- nosy:

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

2011-01-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Alternatively, val_int should have type sqlite3_int64, which is the return type of sqlite3_value_int64. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8033

[issue10350] errno is read too late

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch seems a bit confused at times. For example, you need to restore errno before calling PyErr_SetFromErrno(). Here is a new patch for py3k. -- nosy: +pitrou Added file: http://bugs.python.org/file20281/late_errno.patch

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Have you confirmed that the IDLE window isn't just opened behind another window or possibly minimized? I don't know the cause of this, but a coworker has seen a few times where IDLE will open but it isn't the main focused window (hiding behind a

[issue10350] errno is read too late

2011-01-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10350 ___ ___

[issue10835] sys.executable default and altinstall

2011-01-05 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: For Python 3.2, I think adding the version number alone makes sense. Can you think of any situations where the trailing digits could break something? For Python 3.2 I'd suggest also adding the build flags to sys.executable. If you want

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: The IDLE window doesn't open, the taskbar shows no icons and IDLE does not show up under Task Manager's Application tab.. Also, whenever I open an instance of IDLE, two instances of the .exe shows up under the Processes tab: one instance

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Weird. I'm not sure what could be happening here, and I'm not an IDLE user so I don't really have anything else to try out here. I noticed your email address is for what I think is a Norwegian domain. Is your Windows install set to be a language

[issue9419] RUNSHARED needs LDFLAGS

2011-01-05 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Peter, please explain exactly how you built Python to trigger this bug. I.e. include the exact commands and directories you used. I cannot reproduce this yet. -- ___ Python tracker

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

2011-01-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin, we would like to exclude Py_buffer from the stable ABI for Python 3.2, until we have a chance to thrash out the missing pieces of the documentation for 3.3. I *think* it is a documentation problem, but until we're certain, it

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-01-05 Thread Josh Hanson
New submission from Josh Hanson surely.you.j...@gmail.com: Example code: try: sys.stdin.read() except KeyboardInterrupt: print Interrupted! except: print Some other exception? finally: print cleaning up... print done. Test: run the code

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: I am running the EN-US version of Win7, with Norwegian regional and keyboard settings. Tried changing everything to EN-US, with no change in results. Also tried deactivating visual themes and desktop composition for the .exe. What text

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: Hey, progress! I ran python.exe, typed import idlelib.idle, pressed enter - same blinking underscore as before. Then i pressed Ctrl+C, and WHOA, python.exe prints 25 lines of something, and the Python Shell (pythonw.exe) pops up! There

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Ah! You might want to take a look at #6941. Your firewall might be blocking IDLE's communications. In Windows 7, if you go to Control Panel and search for firewall in the top right search box, it'll show an option to make an exception for a

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: My Windows Firewall have been turned off from the day I installed Win7, so that couldn't cause it.. I also tried deactivating UAC, with no luck. Running with administrative privileges, without any results. --

[issue10838] subprocess __all__ is incomplete

2011-01-05 Thread Toshio Kuratomi
New submission from Toshio Kuratomi a.bad...@gmail.com: I have a compatibility module for subprocess in python-2.7 for people who are stuck on python-2.4 (without check_call) and they got a traceback from trying to use compat.subprocess.list2cmdline(). In order to use the stdlib's subprocess

[issue10835] sys.executable default and altinstall

2011-01-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, the digits are there if they are there in the name when that's actually what is in argv[0], so as long as that's the name the binary is actually installed under I don't think it will break anything. I presume the same applies to

[issue10838] subprocess __all__ is incomplete

2011-01-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: IMO none of these three are meant to be public, and neither are they documented. (Although the docs make a reference to the list2cmdline *method*, which should probably just be removed.) I remember a thread on python-dev about public-API-ness.

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I committed the patch in r87768 and overhauled the timeout docs in r87769. I'm not sure this should be backported (because of the very slight behaviour change), so I'm closing. -- keywords: -needs review resolution: - fixed stage:

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-05 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Fix attached for test_imaplib. Most of the warnings were simply due to reap_server() not closing the server object correctly. The remaining warning was due a genuine leak in imaplib.IMAP4.__init__() - if an exception is raised after the

[issue10839] email module should not allow some header field repetitions

2011-01-05 Thread Adrien Saladin
New submission from Adrien Saladin adrien.sala...@gmail.com: Hi, The following script shows two problems with email.mime.text.MIMEText: - first the use of msg['To'] seems confusing because its dictionnary-like syntax made me think it acts as a set or replace, but in fact is working as a

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

2011-01-05 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: I agree that the only consistent solution is to impose that the attribute self.fp must read bytes in all cases, all required conversions should occur inside FieldStorage, using some encoding (not sure how to define it...) If no

[issue10835] sys.executable default and altinstall

2011-01-05 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I rather doubt that there will be any problem with Python invoked through a wrapper. Gentoo's python-wrapper isn't used when target executable (e.g. /usr/bin/python3.1) is directly called. A side effect of

[issue10839] email module should not allow some header field repetitions

2011-01-05 Thread Adrien Saladin
Changes by Adrien Saladin adrien.sala...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10839 ___ ___

[issue10839] email module should not allow some header field repetitions

2011-01-05 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10839 ___

[issue10838] subprocess __all__ is incomplete

2011-01-05 Thread Toshio Kuratomi
Toshio Kuratomi a.bad...@gmail.com added the comment: IIRC, it was more along the lines of: all private names should be underscored. The difference being that we get to choose whether currently non-underscored names should get underscored, should be deprecated and then underscored, or should

[issue10839] email module should not allow some header field repetitions

2011-01-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The behaviour you observe is by design, and documented. The email package needs to be able to handle RFC-invalid input, which includes messages with multiple instances of fields that are supposed to be singletons. It also needs to

[issue1777412] Python's strftime dislikes years before 1900

2011-01-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I would like to push this for 3.2. Recent discussions at issue10827 and on python-dev seem to favor removal of arbitrary limits on year range. -- nosy: +georg.brandl ___

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- title: Python's strftime dislikes years before 1900 - datetime.strftime dislikes years before 1900 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1777412

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

2011-01-05 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: FWIW, I just added this patch downstream to Fedora's python 3 builds: http://pkgs.fedoraproject.org/gitweb/?p=python3.git;a=blob_plain;f=python-3.2b2-fix-ppc-debug-build.patch;hb=5659c63442be2e91eb42e60284d7a9a9ab0b80dd --

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

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: FWIW, I just added this patch downstream to Fedora's python 3 builds: http://pkgs.fedoraproject.org/gitweb/?p=python3.git;a=blob_plain;f=python-3.2b2-fix-ppc-debug-build.patch;hb=5659c63442be2e91eb42e60284d7a9a9ab0b80dd Any reason not to commit

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

2011-01-05 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: R. David said: (I believe http uses latin-1 when no charset is specified, but I need to double check that) See http://bugs.python.org/issue4953#msg121864 ASCII and UTF-8 are what HTTP defines. Some implementations may, in fact, use

[issue10838] subprocess __all__ is incomplete

2011-01-05 Thread Toshio Kuratomi
Toshio Kuratomi a.bad...@gmail.com added the comment: For other's reference, there were three threads in November2010 that touch on this: :About removing argparse.__all__ or adding more methods to it: http://mail.python.org/pipermail/python-dev/2010-November/105147.html :Removing tk

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

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine said: (this is all funny in the light of the web-sig discussion where people explain that CGI is such a natural model) Thanks for clarifying the stdin buffering vs. binary issue... it is as I suspected. Maybe you can also explain

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fix attached for test_imaplib Oh thanks! Commited as r8 and r87778. I just changed the name of the subfunction. -- ___ Python tracker rep...@bugs.python.org

[issue10838] subprocess __all__ is incomplete

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, MAXFD, list2cmdline, and mswindows seem to be left out. IMO they should all be prefixed with an underscore. Greg? -- nosy: +gregory.p.smith, pitrou ___ Python tracker rep...@bugs.python.org

[issue10838] subprocess __all__ is incomplete

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

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2011-01-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm closing it in the hope that it's fixed. If it reappears, we'll have to reopen. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10492] test_doctest fails with iso-8859-15 locale

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: set the trace function later. Eg. replace exec(cmd, ...) by code=compile(cmd, ...) + exec(code) and set the trace function after the call to compile. Implemented in the attached patch, bdb.patch: trace the execution of the code,

[issue10840] pyarg_parsetuple docs and py_buffer

2011-01-05 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The docs for s* and friends should mention that contiguity of the buffer is automatically enforced. -- assignee: d...@python components: Documentation messages: 125488 nosy: d...@python, exarkun, mark.dickinson, pitrou priority: normal

[issue10840] pyarg_parsetuple docs and py_buffer

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

[issue10840] pyarg_parsetuple docs and py_buffer

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8991. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10840 ___ ___

[issue10840] pyarg_parsetuple docs and py_buffer

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8215. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10840 ___ ___

[issue10840] pyarg_parsetuple docs and py_buffer

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ah ok, now I remember the story. I cleaned up getargs.c recently. r83197 (#8991) removes the support of discontinious buffers. I guess that most developers don't know what a discontinious buffer is and so they don't support this

[issue10492] test_doctest fails with iso-8859-15 locale

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: bdb.patch doesn't work if cmd is not a string (if cmd is a code object). r87780 fixes this issue: bdb.Bdb.run() only traces the execution of the code, not the compilation (if the input is a string). With this fix, the whole test

[issue10492] test_doctest fails with iso-8859-15 locale

2011-01-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10492 ___

[issue10720] test_threadsignals hang on FreeBSD 6.4

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_threadsignals hang on x86 FreeBSD 3.x buildbot since at least the 17th december (build 1030, r87341). What is FreeBSD 6.4? Another buildbot? -- nosy: +haypo ___ Python tracker

[issue10720] test_threadsignals hang on FreeBSD 6.4

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_threadsignals hang also on x86 gentoo 3.x since at least the 17th december (build 3681, r87348). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10720

[issue10720] test_threadsignals hang on FreeBSD 6.4

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: x86 gentoo 3.x is an old Linux setup, see #4970: glibc 2.3.4, linuxthreads-0.10 and Linux kernel 2.6.9-gentoo-r1. linuxthreads is the old implementation of threads on Linux. It was replaced by NPTL with Linux kernel 2.6 and the

[issue10492] test_doctest fails with iso-8859-15 locale

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: x86 debian parallel 3.x buildbot is green again! :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10492 ___

[issue10720] test_threadsignals hang on FreeBSD 6.4

2011-01-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I am unable to reproduce test_threadsignals hang with my FreeBSD 8.0 VM. A bug was maybe fixed between FreeBSD 7.2 and FreeBSD 8.0? -- ___ Python tracker rep...@bugs.python.org

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-05 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Awesome. That just leaves test_urllibnet, test_urllib2net, and test_cgi. I'm hoping to post patches for the first two tomorrow. About test_cgi, I've fiddled around with it a bit more. The leak manifests itself with any set of tests

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

2011-01-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It's OK if the Py_buffer is on the stack - it's just a unique identifier for the exporter to use as a key, not something the exporter controls the lifecycle of (the latter is true only for the pointers *inside* the struct, such as buf, shape,

[issue10841] binary stdio

2011-01-05 Thread Glenn Linderman
New submission from Glenn Linderman v+pyt...@g.nevcal.com: Per Antoine's request, I wrote this test code, it isn't elegant, I whipped it together quickly; but it shows the issue. The issue may be one of my ignorance, but it does show the behavior I described in issue 4953. Here's the output

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

2011-01-05 Thread Glenn Linderman
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 this option is to force the binary layer of the stdin, stdout and stderr streams (which is available as their

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

2011-01-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Martin's patch for the PEP 384 adjustments looks good to me. A note in the PEP that we've deliberately excluded this on a temporary basis due to the implementation/documentation mismatch and expect to have it back in for 3.3 might be helpful,

  1   2   >