[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-25 Thread A. Libotean
A. Libotean added the comment: > I'm not sure that it's a leak because it doesn't depend on the number of > queries nor the number of run of the test. It's maybe an internal sqlite > cache. You're right, the "leak" does not increase past ~300 queries executed. --

[issue22263] Add a resource for CLI tests

2014-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks reasonable. On other hand, there is the "subprocess" resource which currently is not used in any test. -- ___ Python tracker ___ __

[issue22274] subprocess.Popen(stderr=STDOUT) fails to redirect subprocess stderr to stdout

2014-08-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22274] subprocess.Popen(stderr=STDOUT) fails to redirect subprocess stderr to stdout

2014-08-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Okay, dumb question: Is there a reason the Windows code explicitly initializes c2pwrite in the "stdout not passed" case, while the Linux code leaves it as -1? Windows doesn't look like it would have the problem (because c2pwrite is always set to a non-default

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-25 Thread STINNER Victor
STINNER Victor added the comment: > The Linux kernel is going to use 64-bit integer even on 32-bit CPU to store > timestamps, to simplify the code (to avoid the structure). Read this article: http://lwn.net/Articles/607741/ "One of the first changes merged for 3.17 is to simply get rid of the

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread STINNER Victor
STINNER Victor added the comment: > LGTM Thanks for the review. I commited sock_nonblocking_doc.patch. This issue is now fully fixed. It was more tricky than what I expected. -- ___ Python tracker ___

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b94da2b69d13 by Victor Stinner in branch '3.4': Issue #22063: Fix asyncio documentation of socket and pipe operations regarding http://hg.python.org/cpython/rev/b94da2b69d13 New changeset 74236c8bf064 by Victor Stinner in branch 'default': (Merge 3.

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread STINNER Victor
STINNER Victor added the comment: > It may also help to mention directly in BaseEventLoop.connect_read_pipe() doc > that it is not available on Windows when using the SelectorEventLoop. I created the issue #22275 for this point. -- ___ Python tracke

[issue22275] asyncio: enhance documentation of OS support

2014-08-25 Thread STINNER Victor
New submission from STINNER Victor: When reading asyncio documentation, it's not easy to catch limitations of each operating system and event loop. I propose to mention in each mention if the method is not supported in some cases. See attached patch. -- assignee: docs@python components

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread Guido van Rossum
Guido van Rossum added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue12933] Update or remove claims that distutils requires external programs

2014-08-25 Thread Vishal Lal
Vishal Lal added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread STINNER Victor
STINNER Victor added the comment: sock_nonblocking_doc.patch: fix connect_read_pipe/connect_write_pipe, sock_sendall/sock_recv/sock_accept/sock_connect documentation to mention that the non-blocking behaviour is specific to the SelectorEventLoop. -- keywords: +patch Added file: http://

[issue22274] subprocess.Popen(stderr=STDOUT) fails to redirect subprocess stderr to stdout

2014-08-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22274] subprocess.Popen(stderr=STDOUT) fails to redirect subprocess stderr to stdout

2014-08-25 Thread Ned Deily
Changes by Ned Deily : -- nosy: +gregory.p.smith stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue22274] subprocess.Popen(stderr=STDOUT) fails to redirect subprocess stderr to stdout

2014-08-25 Thread Akira Li
New submission from Akira Li: The following command should not produce any output but it does: $ ./python >/dev/null -c 'import subprocess as S, sys; S.call([sys.executable, "-c", "import sys; print(42, file=sys.stderr)"], stderr=S.STDOUT)' Its stdout is redirected to /dev/null. It starts a

[issue22063] asyncio: sock_xxx() methods of event loops should check ath sockets are non-blocking

2014-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 877c8442b992 by Victor Stinner in branch '3.4': asyncio: sync with Tulip http://hg.python.org/cpython/rev/877c8442b992 New changeset 63cabfde945f by Victor Stinner in branch 'default': (Merge 3.4) asyncio: sync with Tulip http://hg.python.org/cpytho

[issue21965] Add support for Memory BIO to _ssl

2014-08-25 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22263] Add a resource for CLI tests

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or you could use the existing "cpu" resource. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21965] Add support for Memory BIO to _ssl

2014-08-25 Thread Geert Jansen
Geert Jansen added the comment: Antoine, yes, I just got back from holiday. I will have an updated patch tomorrow. -- ___ Python tracker ___

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-25 Thread Berker Peksag
Berker Peksag added the comment: LGTM. The second test should be named different, but I will fix it myself. Thanks for the patch! -- assignee: -> berker.peksag nosy: +berker.peksag stage: patch review -> commit review versions: +Python 3.4 ___ Pytho

[issue21965] Add support for Memory BIO to _ssl

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Geert, are you still trying to work on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22235] httplib: TypeError with file() object in ssl.py

2014-08-25 Thread Etienne Robillard
Etienne Robillard added the comment: the bug appear to be reproducible with python 2.7.2 as well. I wonder if --enable-shared is relevant to this problem. My configuration options: ./configure --prefix=/usr/local --enable-unicode=ucs4 --with-threads --enable-shared --disable-ipv6 --with-pymallo

[issue21480] A build now requires...

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Dict comprehensions actually work with Python 2.7 as well. I don't think making that part of the build process 2.6-compatible would bring us much. Unless you're specifically modifying the Python syntax, you should be able to skip that part by running "make tou

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: That workaround would definitely deserve being wrapped in a higher-level API invokable by embedding applications, IMHO. -- nosy: +pitrou versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue18814] Add tools for "cleaning" surrogate escaped strings

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: >data.encode('utf-8', 'replace').decode('utf-8') >data.encode('utf-8', 'ignore').decode('utf-8') Why not the reverse: os.fsencode(data).decode('utf-8', 'replace') os.fsencode(data).decode('utf-8', 'ignore') Note that "backslashreplace" needs to be enha

[issue22269] Resolve distutils option conflicts with priorities

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm... if it's only about --prefix vs. --user, we could let --user take precedence and issue a warning instead of an error. -- nosy: +pitrou ___ Python tracker ___

[issue18530] posixpath.ismount performs extra lstat calls

2014-08-25 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue22260] Rearrange tkinter tests, use test discovery

2014-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently when I run DISPLAY= ./python -Wall -b -m test.regrtest -vu gui test_tcl test_tk test_ttk_textonly test_ttk_guionly skipped tests are enumerated at the end of test log: 2 tests OK. 2 tests skipped: test_tk test_ttk_guionly With the patch t

[issue21307] PEP 466: backport hashlib changes

2014-08-25 Thread Donald Stufft
Donald Stufft added the comment: This Look good to me. +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue20994] Disable TLS Compression

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now that the backport has landed, I think you're welcome to do any further necessary tweaks. By the way, as mentioned in the comments, I think we could add SSL_OP_NO_COMPRESSION to ssl.OP_ALL in all versions. -- __

[issue20994] Disable TLS Compression

2014-08-25 Thread Alex Gaynor
Alex Gaynor added the comment: Pinging on this, since the SSL backport landed, concerns about an inability to change this behavior on python2 are no longer there. At a minimum I think we should include this flag in the default and stdlib contexts. -- __

[issue22239] asyncio: nested event loop

2014-08-25 Thread Guido van Rossum
Guido van Rossum added the comment: While I understand your problem, I really do not want to enable recursive event loops. While they are popular in some event systems (IIRC libevent relies heavily on the concept), I have heard some strong objections from other parts, and I am trying to keep t

[issue18530] posixpath.ismount performs extra lstat calls

2014-08-25 Thread Alex Gaynor
Alex Gaynor added the comment: Ok, this was landed, 3.3 is no longer open so closing this. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue22273] abort when passing certain structs by value using ctypes

2014-08-25 Thread Weeble
New submission from Weeble: I'm not 100% certain this is a bug yet, but I'm beginning to think it's likely. On 64-bit Linux, I can't pass a struct like this: struct S { uint8_t data[16]; }; ...to a function declared like this: void f(struct S); >From experimentation with various inte

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-25 Thread Gregory Salvan
Gregory Salvan added the comment: In case it helps, I've experienced a similar refactoring. we used a pattern of stages and services: - stages represent a state of the application (like Pre-Initialization, Initializing, Initialized...), they are composed of services - services represent a key r

[issue22269] Resolve distutils option conflicts with priorities

2014-08-25 Thread Tim Smith
Changes by Tim Smith : -- nosy: +tdsmith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-25 Thread STINNER Victor
STINNER Victor added the comment: leaking_tracemalloc.py: leaking.py adapted for tracemalloc. Output: [ Top 3 lines ] leaking_tracemalloc.py:24: size=46.0 KiB (+46.0 KiB), count=476 (+476), average=99 B leaking_tracemalloc.py:17: size=847 B (+847 B), count=6 (+6), average=141 B /home/haypo/pro

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-25 Thread A. Libotean
New submission from A. Libotean: There are significant memory leaks when multiple insert statements are executed with distinct values. sqlite3 version is 2.6.0 The attached file contains two variants: * one which uses string interpolation to build the query: this generates severe leakeage *

[issue22203] inspect.getargspec() returns wrong spec for builtins

2014-08-25 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-25 Thread Brian Kearns
Changes by Brian Kearns : Added file: http://bugs.python.org/file36469/tarfile2.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-25 Thread Brian Kearns
Changes by Brian Kearns : Removed file: http://bugs.python.org/file36468/tarfile2.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2014-08-25 Thread Anthony Tuininga
Anthony Tuininga added the comment: I note that this patch has still not been accepted! Please let me know what needs to be done. I just tried against Python 3.4 and the patch works as expected -- other than the starting line number is now 715. I have signed the contributor agreement if that i

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-25 Thread Brian Kearns
Brian Kearns added the comment: Updated to backport all the cases where 3.x handles this issue. -- Added file: http://bugs.python.org/file36468/tarfile2.patch ___ Python tracker

[issue18814] Add tools for "cleaning" surrogate escaped strings

2014-08-25 Thread R. David Murray
R. David Murray added the comment: Right now having has_escaped_bytes isn't too important, since I've done nothing to profile and improve the performance of the new email code. But eventually I'll need it, because detecting the existence of escaped bytes is inside some of the inner loops in t

[issue22232] str.splitlines splitting on non-\r\n characters

2014-08-25 Thread R. David Murray
R. David Murray added the comment: Ideally str.splitlines would split on whatever the unicode database says are mandatory line break characters. I take it this is currently not true? That is, that the list is hardcoded? -- ___ Python tracker

[issue22232] str.splitlines splitting on non-\r\n characters

2014-08-25 Thread R. David Murray
R. David Murray added the comment: The existing related open doc issue issue 12855. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks Claudiu, the patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue516762] have a way to search backwards for re

2014-08-25 Thread Drekin
Drekin added the comment: Hello, I wanted to use this feature and found this issue. It is marked as closed, being a duplicate of another closed issue. However the feature is actually not present. In 2008 it was planned to be added by Matthew Barnett in #3825, but the work of improving re modul

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-25 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a short patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file36467/issue22098.patch ___ Python tracker

[issue21740] doctest doesn't allow duck-typing callables

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22182] distutils.file_util.move_file unpacks wrongly an exception

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue9731] Add ABCMeta.has_methods and tests that use it

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1764286] inspect.getsource does not work with decorated functions

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21986] Pickleability of code objects is inconsistent

2014-08-25 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1483545] Wave.py support for ulaw and alaw audio

2014-08-25 Thread Eric Woudenberg
Changes by Eric Woudenberg : Added file: http://bugs.python.org/file36466/test_wave.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue1483545] Wave.py support for ulaw and alaw audio

2014-08-25 Thread Eric Woudenberg
Changes by Eric Woudenberg : -- versions: +Python 2.7 -Python 3.4 Added file: http://bugs.python.org/file36465/wave.py ___ Python tracker ___ __