[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: Just two things: - running under valgrind with the suppression file would help pinpoint this - usually, stack/heap overflows or invalid pointer dereference affect a contiguous chunk of memory: here, there's a *single bit* flipped, not even a byte 0xfb

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2013-08-29 Thread Westley Martínez
Westley Martínez added the comment: On Thu, Oct 11, 2012 at 3:06 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > This patch (I suspect it is this one) disabled the use of '/' in filenames on > windows when using filename completion. > > 'c:\in 3.2.3 and 3.3.0> > (If ther

[issue13951] Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2013-08-29 Thread Westley Martínez
Westley Martínez added the comment: Can we have this committed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2013-08-29 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18828] urljoin behaves differently with custom and standard schemas

2013-08-29 Thread Martin Panter
Martin Panter added the comment: Similarly, I expected this to return "rtmp://host/app?auth=token": urljoin("rtmp://host/app", "?auth=token") I'm not sure adding everybody's custom scheme to a hard-coded whitelist is the best way to do solve this. Below I have identified some other schemes no

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Tim Peters
Tim Peters added the comment: Martin, can you please supply exact commands Stephen can use to try to reproduce the problem you saw running `emerge`? And try them yourself first, to make sure you can reproduce the problem too. Any detail may be important. For example, it's possible this is du

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Tim Peters
Tim Peters added the comment: Thanks for chiming in, Stephen! I can't answer your questions, but agree the original poster needs to tell you exactly what he did -- else we'd just be thrashing at random. There's been enough of that already ;-) -- _

[issue18828] urljoin behaves differently with custom and standard schemas

2013-08-29 Thread Madison May
Changes by Madison May : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-29 Thread Stefan Behnel
Stefan Behnel added the comment: > As an advice I hope you do not take as insult, saying > "in section {section} the spec says {argument}" > is much more constructive than > "read the spec on that", "{extremely_obvious_link}", > at least to people not familiar with the spec and asking for the s

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I have a gentoo host, but I'd like to know how did the OP get a debug Python in the first place? The ebuild for python 2.7.5-r1 doesn't say anything about debug options. "How" would preferably include information about the C compiler used, etc. If ther

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-08-29 Thread Madison May
Madison May added the comment: The attached patch? :) -- nosy: +madison.may ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-08-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread Meador Inge
Meador Inge added the comment: 'tempfile.NamedTemporaryFile' returns an instance of '_TemporaryFileWrapper' that wraps the created file object. The wrapper object implements '__getattr__' and we end up with a situation like the following simplified example where the wrapper gets destroyed bef

[issue18489] IDLE Unit test for SearchEngine.py

2013-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Adding engine.patvar.set(None) Equal(search(text), None) to test_search completed the coverage. -- ___ Python tracker ___ _

[issue18489] IDLE Unit test for SearchEngine.py

2013-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The attached patch works on 3.3 and just need a small addition for 100$ coverage. After that, I intend to commit after porting to 2.7 (only two lines to change, I think) and testing it there. I split the search test case into three, one for each method. The te

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue16296] Patch to fix building on Win32/64 under VS 2010

2013-08-29 Thread Trent Nelson
Changes by Trent Nelson : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16296] Patch to fix building on Win32/64 under VS 2010

2013-08-29 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread Meador Inge
Meador Inge added the comment: Confirmed in trunk: >>> tempfile.NamedTemporaryFile(dir=".",delete=False).write(b"hello") Traceback (most recent call last): File "", line 1, in ValueError: write to closed file -- nosy: +meador.inge ___ Python track

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Tim Peters
Tim Peters added the comment: I sent a msg to Python-Dev, asking for a Gentoo user to try to reproduce this. Thanks! -- ___ Python tracker ___ _

[issue18881] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread Tim Peters
Changes by Tim Peters : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue18881] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread Tim Peters
Changes by Tim Peters : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18881] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread Tim Peters
Changes by Tim Peters : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue18881] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread Tim Peters
New submission from Tim Peters: In http://bugs.python.org/issue18843 a user reported a debug PyMalloc "bad leading pad byte" memory corruption death while running their code. After some thrashing, they decided to rebuild Python, and got the same kind of error while rebuilding Python. See

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread Nick Coghlan
Nick Coghlan added the comment: The method call should keep the file object alive until it completes (due to the self reference). What behaviour prompted the conclusion that it is being closed early? If the symptom is that the data isn't being written to disk, we may have a missing flush() ca

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Martin Mokrejs
Martin Mokrejs added the comment: http://www.gentoo.org/proj/en/portage/index.xml http://dev.gentoo.org/~zmedico/portage/archives -- ___ Python tracker ___ __

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Martin Mokrejs
Martin Mokrejs added the comment: That is why I asked if other process can interfere. So, they are isolated on Linux, good. ;-) The crash in #msg196481 is just the emerge written in python, at the start it is resolving some graph of package dependencies ... once it resolves order of packages a

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Tim Peters
Tim Peters added the comment: It would be a severely lame OS that allowed a process to overwrite another process's memory ;-) "Bad C or C++ code", in the process you're running, is still the best guess. A memory module that sometimes dropped the last bit _could_ be at fault, but I doubt it (

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Martin Mokrejs
Martin Mokrejs added the comment: Thanks, will recompile without pymalloc. I don't understand why always is only 1 bit different. Could that be overwritten by another use process or do you believe it must be the python or some of the modules imported into it on runtime? -- __

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread jort bloem
jort bloem added the comment: Sorry, my python-foo is not quite up to providing a solution. A partial solution would be for the file not to be closed at NamedTemporaryFile destruction, if delete==False. If delete==True, then there is no point writing to a file (though it shouldn't raise an exc

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread Erik Bray
Erik Bray added the comment: Here's an initial stab at a simple patch that just addresses the issue of 'append' not being in the mode string. Amazingly this did not break a single existing test, though I added a new one to test how FileIO objects display their mode string after being initiali

[issue18880] ssl.SSLSocket shutdown doesn't behave like socket.shutdown

2013-08-29 Thread Michał Zieliński
New submission from Michał Zieliński: SSLSocket documentation mentions shutdown as analogue to socket.shutdown. However, instead of forbidding communication, it removes SSL wrapper from socket. For example, the following script doesn't work and returns garbage: import socket import ssl

[issue18870] eval() uses latin-1 to decode str

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue15809. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Tim Peters
Tim Peters added the comment: Yet Another Tool ;-) Python's "small object" allocator grabs memory in chunks of 256KB from the system, and carves up the space itself. Other memory tools (like Valgrind ...) only see that Python has grabbed 256KB chunks, so can't detect anything wrong _within_

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +IO, Library (Lib) nosy: +georg.brandl, ncoghlan, serhiy.storchaka versions: +Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker _

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Martin Mokrejs
Martin Mokrejs added the comment: Sorry, I should explain a bit more. Gentoo Linux uses a tool named emerge to handle packages. It is written in python. So, by that command I initiated re-compilation of python itself but it crashed quickly. At that moment emerge called the python available on

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread Erik Bray
Erik Bray added the comment: >> Whereas the behavior of O_APPEND causes an automatic seek to the end >> before any write(). > True, but IIRC some systems seek on open() and some systems seek just before > write(). I figured that workaround that seeks to the end on open was an attempt to norma

[issue15507] test_subprocess assumes SIGINT is not being ignored.

2013-08-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___

[issue15507] test_subprocess assumes SIGINT is not being ignored.

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9810844126e1 by Gregory P. Smith in branch '3.3': Fixes issue #15507: test_subprocess's test_send_signal could fail if the test http://hg.python.org/cpython/rev/9810844126e1 New changeset 6aa7ca40b100 by Gregory P. Smith in branch 'default': Fixes I

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-29 Thread Michele Orrù
Michele Orrù added the comment: > Is that you actual use case? That you *want* to store binary data in XML, > instead of getting it properly rejected as non well-formed content? No, Stefan. What I was saying in my last message was just "you're right, the user shall always use repr() when prin

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Tim Peters
Tim Peters added the comment: Hmm. I don't quite know what you're doing: you said you're getting away from --with-pydebug, but these "bad leading pad byte" messages can't be generated unless Python is compiled with (at least) PYMALLOC_DEBUG defined. That said, my advice remains the same: wh

[issue18870] eval() uses latin-1 to decode str

2013-08-29 Thread Merlijn van Deen
Merlijn van Deen added the comment: On the lowest level, this affects exec, eval(), compile() and input() (!). On a higher level, more modules are affected: modules ast, codeop, compiler, cProfile, dis, distutils (not sure), doctest, idlelib, ihooks, pdb, pkgutil, plat-mac, py_compile, rexec,

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-08-29 Thread jort bloem
New submission from jort bloem: Issue occurs in the following code: tempfile.NamedTemporaryFile(dir=".",delete=False).write("hello") The NamedTemporaryFile is deleted before the write is complete; deleting the object closes the file, so the write fails. -- messages: 196485 nosy: jort.

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Pytho

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-08-29 Thread STINNER Victor
STINNER Victor added the comment: > Is it really impossible to use a standard Python dict instead of cfuhash? I don't know if it is possible or not, I didn't try. Using PyDict has many requirements: * the GIL must be held: I plan to hook also PyMem_Raw (which is called without the GIL being h

[issue18878] Add support of the 'with' statement to sunau.open.

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file31512/sunau_context_manager.patch ___ Python tracker ___

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Martin Mokrejs
Martin Mokrejs added the comment: One more note. At that time I had running my application which at that time was parsing an XML file using xml.parsers.expat! That is being run in my pipeline before I render figures (the initially reported crash case). So, matplotlib/numpy is ruled out. -

[issue18878] Add support of the 'with' statement to sunau.open.

2013-08-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch adds support of the 'with' statement to sunau.open (as it already was added for aifc.open and wave.open). It based on patches from issue17616. -- components: Library (Lib) messages: 196482 nosy: r.david.murray, serhiy.storchaka p

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-08-29 Thread Martin Mokrejs
Martin Mokrejs added the comment: I wanted to move away from the --with-pydebug to a normal python and I failed with: # emerge dev-lang/python:2.7 * IMPORTANT: 11 news items need reading for repository 'gentoo'. * Use eselect news to read news items. Calculating dependencies... done! Debug

[issue17201] Use allowZip64=True by default

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. If anyone has objections, say them now. -- assignee: -> serhiy.storchaka ___ Python tracker ___ _

[issue18877] tkinter askopenfilenames does not work in Windows library folder

2013-08-29 Thread tegavu
New submission from tegavu: Using Python 3.3 on W7x64 I wanted to create a file dialog that allows me to select multiple files. The code below is an example of how to re-create the bug. # -*- coding: iso-8859-15 -*- # Python 3 import tkinter import tkinter.filedialog def callback(): na

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: > On which systems is O_APPEND not supported? It's part of the POSIX standard, > and even Windows seems to have it. That would be surprising. An easy way to find this out would be to remove the ifdef: 352 #ifdef O_APPEND 353 if (append) 354 flags |= O_

[issue17003] Unification of read() and readline() argument names

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any objections to the patch? -- assignee: docs@python -> serhiy.storchaka versions: +Python 3.4 ___ Python tracker ___ _

[issue1617161] Instance methods compare equal when their self's are equal

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please update the patch for tip? I looks too desynchronized. -- stage: patch review -> needs patch ___ Python tracker ___

[issue18643] implement socketpair() on Windows

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: Alright, I chose a 16MB size for SOCK_MAX_SIZE because nowadays, one can encounter large buffers for Gigabit/10Gb Ethernet. Regarding the original issue: is it OK to add it as socket.socketpair(), or should it only be added to test.support? Since I don'

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-08-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it really impossible to use a standard Python dict instead of cfuhash? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-08-29 Thread Brett Cannon
Brett Cannon added the comment: I also just tried using os.listdir() for a package before searching for __init__ and it didn't speed anything up either (actually timeit suggests that os.listdir() is worse than an isdir + 3 * isfile checks). Nor did caching directory stuff at the class level so

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, wrong patch. Uploading again. -- Added file: http://bugs.python.org/file31509/subprocess_issue18851_3.patch ___ Python tracker ___ __

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file31508/subprocess_issue18851_3.patch ___ Python tracker ___ ___ Python-bug

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ha, sorry. Here is a non-git patch. -- Added file: http://bugs.python.org/file31508/subprocess_issue18851_3.patch ___ Python tracker ___ ___

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-29 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I've seen test_multiprocessing_forkserver giving warnings too, while > running the whole test suite, but can't reproduce them while running it > alone. The warnings seems quite similar though, so a single fix might > resolve the problem with all the tests.

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: On which systems is O_APPEND not supported? It's part of the POSIX standard, and even Windows seems to have it. > Whereas the behavior of O_APPEND causes an automatic seek to the end > before any write(). True, but IIRC some systems seek on open() and some sys

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread Erik Bray
Erik Bray added the comment: Ah right, sorry about that. I just came over from the Trac site for one of my projects where the version field is used for affected versions :) -- ___ Python tracker __

[issue18643] implement socketpair() on Windows

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2de7fc69d2d4 by Charles-François Natali in branch '2.7': Issue #18643: Fix some test_socket failures due to large default socket buffer http://hg.python.org/cpython/rev/2de7fc69d2d4 New changeset 498957c97c2b by Charles-François Natali in branch '3.

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread R. David Murray
R. David Murray added the comment: Hi, Erik. I changed the versions because we use versions in this tracker to indicate which versions we intend to *fix* the problem in. I left 2.7 and 3.3 marked for the moment, but I have a feeling that this will need to be a feature-release-only change. N

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-lis

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-29 Thread Michele Orrù
Michele Orrù added the comment: Cool, thanks for pointing the correct library function. Tested on my machine - Debian 3.9 x86_64 GNU/Linux. -- ___ Python tracker ___ __

[issue18876] Problems with files opened in append mode with io module

2013-08-29 Thread Erik Bray
New submission from Erik Bray: I've come across a few difficulties of late with the io module's handling of files opened in append mode (any variation on 'a', 'ab', 'a+', 'ab+', etc. The biggest problem is that the io module does not in any way keep track of whether a file was opened in append

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: Rietveld's choking on git diffs. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-29 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file31506/parse_inet.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: > For Windows >= Vista, inet_pton() is available. > I'm not sure whether XP has one of them: if not, then we might keep > the hand-parsing as a fallback. Apparently, XP doesn't have inet_aton()... So I changed the code to use inet_pton() if available,

[issue14597] Cannot unload dll in ctypes until script exits

2013-08-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Did you consider creating a copy with a random suffix? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch using inet_pton() if available, otherwise inet_aton() if available, otherwise fallback to getaddrinfo(). This should work on every platform, but if a platform has neither inet_pton() nor inet_aton(), calling getaddrinfo() will incur an ove

[issue16510] Using appropriate checks in tests

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated to sync with tip. It is 5% less than first version because some changes already applied in other commits. -- Added file: http://bugs.python.org/file31505/tests_asserts_2.patch ___ Python tracker

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d998a43102b by Richard Oudkerk in branch 'default': Issue #8713: Print dangling processes/threads, if any. http://hg.python.org/cpython/rev/6d998a43102b -- ___ Python tracker

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6c7ad7d029a by Richard Oudkerk in branch 'default': Issue #8713: Test should not print message about start method. http://hg.python.org/cpython/rev/f6c7ad7d029a New changeset e99832a60e63 by Richard Oudkerk in branch 'default': Issue #8713: Cleanup

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2013-08-29 Thread irdb
New submission from irdb: Many other IDE's have this feature that allows automatic insertion of closing parentheses as user is typing something. I think it saves time and increases programming speed. Is it possible to have this on IDLE, too? -- components: IDLE messages: 196456 nosy: i

[issue13107] Text width in optparse.py can become negative

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, argparse has same problem. >>> import os, argparse >>> p = argparse.ArgumentParser(prog='PROG') >>> os.environ['COLUMNS'] = '16' >>> print(p.format_help()) Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/argpa

[issue18684] Pointers point out of array bound in _sre.c

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list ma

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: Note that for IPv6 addresses, we should just extract manually the scope ID ('%' prefix) if present. -- ___ Python tracker ___ _

[issue18672] Fix format specifiers for debug output in _sre.c

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18685] Restore re performance to pre-PEP393 level

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Fix format specifiers for debug output in _sre.c, Pointers point out of array bound in _sre.c ___ Python tracker ___

[issue18672] Fix format specifiers for debug output in _sre.c

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18830] Remove duplicates from a result of getclasstree()

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with additional test. -- Added file: http://bugs.python.org/file31504/getclasstree_no_dups_2.patch ___ Python tracker ___

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-29 Thread Charles-François Natali
Charles-François Natali added the comment: Stupid question: why use scanf()/strtol() to parse an IP address, and not simply inet_pton()/inet_aton(), which are made precisely for that purpose? inet_pton() is POSIX (it was introduced at the same time as getaddrinfo(), which is used unconditionall

[issue17974] Migrate unittest to argparse

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17974] Migrate unittest to argparse

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 340f45374cf5 by Serhiy Storchaka in branch 'default': Issue #17974: Switch unittest from using getopt to using argparse. http://hg.python.org/cpython/rev/340f45374cf5 -- nosy: +python-dev ___ Python track

[issue16799] start using argparse.Namespace in regrtest

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18806] socketmodule: fix/improve setipaddr() numeric addresses handling

2013-08-29 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> socket.gethostbyname incorrectly parses ip ___ Python tracker _

[issue16799] start using argparse.Namespace in regrtest

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 997de0edc5bd by Serhiy Storchaka in branch 'default': Issue #16799: Switched from getopt to argparse style in regrtest's argument http://hg.python.org/cpython/rev/997de0edc5bd -- nosy: +python-dev ___ Pyt

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: (in any case, the test is probably worth adding) -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Gregory, it seems fixed indeed under Unix but I'm not sure about Windows. Read what I wrote above: apparently the cleanup code calls os.close() on a Windows HANDLE; then conveniently it swallows the exception :-) Also, the Windows version of _execute_child doe

[issue17974] Migrate unittest to argparse

2013-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think this should be committed. This is the first step in making command-line args easily customizable (e.g. by exposing the parsers as a public API in TestProgram). -- ___ Python tracker

[issue18758] Fix internal references in the documentation

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue18743] References to non-existant "StringIO" module

2013-08-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18743] References to non-existant "StringIO" module

2013-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c0f5af2f5a5 by Serhiy Storchaka in branch '3.3': Issue #18743: Fix references to non-existant "StringIO" module http://hg.python.org/cpython/rev/6c0f5af2f5a5 New changeset 676bbd5b0254 by Serhiy Storchaka in branch 'default': Issue #18743: Fix refe

  1   2   >