[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2014-08-17 Thread Martin Panter
Changes by Martin Panter : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2014-08-17 Thread Martin Panter
Martin Panter added the comment: It seems to me that raising OSError isn’t quite right. Either the error is more of an internal programmer error, like how writing to a closed file object raises ValueError, or there should not be an error, like when the process has terminated but has not been r

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-08-17 Thread Martin Panter
Martin Panter added the comment: This is more or less a dupe of Issue 6973, which also has a potential patch. -- ___ Python tracker ___ __

[issue22200] Remove distutils checks for Python version

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbb51251eb9d by Benjamin Peterson in branch '3.4': remove 2.2 and 2.6 compat code (closes #22200) http://hg.python.org/cpython/rev/fbb51251eb9d New changeset 66c7f30fe8c7 by Benjamin Peterson in branch 'default': merge 3.4 (closes #22200) http://hg.

[issue22214] Tkinter: Don't stringify callbacks arguments

2014-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think I requested elsewhere that public _tkinter/tkinter names be documented. What you wrote already seems clear enough. "Default mode is still wantobjects=1," The patch appears to change it to 2 in tkinter/__init__.py. "/* Create argument list (argv1, ...

[issue22115] Add new methods to trace Tkinter variables

2014-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: trace_add: "list or tuple" (of such strings.) Can we say 'sequence' (or even set or iterable) or is the requirement specifically tuple or list? Does tk call the traceback function with any args it supplies(other than those passed in)? (In other words, is the

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-17 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: My impression is that we are trying to move away from using test_main, or is using support.run_unittest considered a sufficient change from the old explicit suite method? Anyway, here is an alternate approach, adding two lines to wrap all test classes, that t

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-17 Thread Vinay Sajip
Vinay Sajip added the comment: Loggers don't deal with output - handlers do - so I would prefer not to add an output-related method to a logger: people confuse the two enough as it is. Note that stream = LoggerWriter('foo') gives an equivalent result to stream = getLogger('foo').debug_print

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-08-17 Thread STINNER Victor
STINNER Victor added the comment: I commited the first part. The remaining part is a long patch for unicodeobject.c. -- Added file: http://bugs.python.org/file36402/unicode.patch ___ Python tracker ___

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97c70528b604 by Victor Stinner in branch 'default': Issue #22207: Fix "comparison between signed and unsigned integers" warning in http://hg.python.org/cpython/rev/97c70528b604 -- nosy: +python-dev ___ Py

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However, from a smoke test, sys.stdout = LoggerWriter() doesn't seem to work > as expected I wasn't thinking about replacing sys.stdout (which I think is in general a bad pattern, except for daemonized processes), rather being able to 1) either replace the

[issue22222] dtoa.c: remove custom memory allocator

2014-08-17 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22222] dtoa.c: remove custom memory allocator

2014-08-17 Thread Stefan Krah
Stefan Krah added the comment: A modified version of telco.py (using floats instead of decimals) runs about 5-6% slower with the change here. -- ___ Python tracker ___ __

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mode 'U' is deprecated now (issue15204). -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10583] Encoding issue with chm help in 2.7.1

2014-08-17 Thread Mark Lawrence
Mark Lawrence added the comment: Is there anything to be done here as Sphinx is a third party tool and the root cause is already fixed? -- ___ Python tracker ___ ___

[issue22222] dtoa.c: remove custom memory allocator

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is very dangerous change. Could you please compare results of Python benchmarks with and without the patch? -- nosy: +pitrou, serhiy.storchaka ___ Python tracker __

[issue22221] ast.literal_eval confused by coding declarations

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: eval() is affected too. 3.x isn't affected. -- assignee: -> serhiy.storchaka components: +Interpreter Core -Library (Lib) nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior ___ Python tracker

[issue22206] PyThread_create_key(): fix comparison between signed and unsigned numbers in Python/thread_pthread.h

2014-08-17 Thread STINNER Victor
STINNER Victor added the comment: I fixed the issue in Python 3.5, I close the issue. Even if Python 2.7 and 3.4 are also affected, I prefer to not modify them to not take the risk of introducing a regression for a corner case. -- resolution: -> fixed status: open -> closed versions:

[issue22206] PyThread_create_key(): fix comparison between signed and unsigned numbers in Python/thread_pthread.h

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b898b5d5ffe by Victor Stinner in branch 'default': Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM and http://hg.python.org/cpython/rev/1b898b5d5ffe -- nosy: +python-dev ___ P

[issue22221] ast.literal_eval confused by coding declarations

2014-08-17 Thread David Halter
Changes by David Halter : -- nosy: +davidhalter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22153] There is no standard TestCase.runTest implementation

2014-08-17 Thread evilzero
Changes by evilzero : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22153] There is no standard TestCase.runTest implementation

2014-08-17 Thread evilzero
evilzero added the comment: Updated documentation following suggestion. -- keywords: +patch nosy: +evilzero Added file: http://bugs.python.org/file36401/myworkdoc.patch ___ Python tracker __

[issue22222] dtoa.c: remove custom memory allocator

2014-08-17 Thread STINNER Victor
New submission from STINNER Victor: dtoa.c has an optimized memory allocator for performances: it uses a short pool of 2304 doubles (18 KB) to avoid calling malloc/free. Comment in dtoa.c: /* Memory management: memory is allocated from, and returned to, Kmax+1 pools of memory, where pool k (

[issue22221] ast.literal_eval confused by coding declarations

2014-08-17 Thread Jorgen Schäfer
New submission from Jorgen Schäfer: The ast module seems to get confused for certain strings which contain coding declarations. >>> import ast >>> s = u'"""\\\n# -*- coding: utf-8 -*-\n"""' >>> print s """\ # -*- coding: utf-8 -*- """ >>> ast.literal_eval(s) Traceback (most recent call last):

[issue2527] Pass a namespace to timeit

2014-08-17 Thread Ben Roberts
Changes by Ben Roberts : -- nosy: +roippi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread STINNER Victor
STINNER Victor added the comment: > You are very fast. Oh sorry. In fact, I didn't expect a review. I just created an issue to put an issue number in the commit changelog and give a little bit more context to my changes. -- ___ Python tracker

[issue21520] Erroneous zipfile test failure if the string 'bad' appears in pwd

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The line is too long. It would be better to extract a filter as regular function. Otherwise LGTM. -- nosy: +serhiy.storchaka stage: needs patch -> commit review ___ Python tracker

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f2c1816d0c7 by Victor Stinner in branch 'default': Issue #22218: Fix "comparison between signed and unsigned integers" warning in http://hg.python.org/cpython/rev/2f2c1816d0c7 -- ___ Python tracker

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca5eef14c1ab by Victor Stinner in branch 'default': Issue #22218: Fix "comparison between signed and unsigned integers" warnings in http://hg.python.org/cpython/rev/ca5eef14c1ab -- ___ Python tracker

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Directory entry should be added not only when directory is empty. See also issue20912. -- ___ Python tracker ___

[issue22220] Ttk extensions test failure

2014-08-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Strange test failure on one of Windows buildbots: http://buildbot.python.org/all/builders/x86%20Windows%20Server%202003%20%5BSB%5D%203.x/builds/2393/steps/test/logs/stdio == ERROR: test_hori

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 2.7 ___ Python tracker ___ ___

[issue22212] zipfile.py fails if zlib.so module fails to build.

2014-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-17 Thread Antony Lee
New submission from Antony Lee: Compare $ mkdir foo; zip -q foo{,}; unzip -l foo.zip Archive: foo.zip Length DateTimeName - -- - 0 2014-08-17 10:49 foo/ - --- 0 1 file and $ mkdir

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-17 Thread Vinay Sajip
Vinay Sajip added the comment: > Would it make sense for the logging module to supply something like the > LoggerWriter class you wrote? Perhaps I'm not making myself clear :-( I've posted the LoggerWriter class (not the initial version, but the later, slightly more functional one) to see if

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are very fast. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05e8f92b58ff by Victor Stinner in branch 'default': Issue #22218: Fix "comparison between signed and unsigned integers" warnings in http://hg.python.org/cpython/rev/05e8f92b58ff -- nosy: +python-dev ___ P

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22218] Fix more compiler warnings "comparison between signed and unsigned integers"

2014-08-17 Thread STINNER Victor
New submission from STINNER Victor: The issue #22110 enabled more compiler warnings. Attached patch fixes some of them in the Modules/ subdirectory. -- files: fix_more_warnings.patch keywords: patch messages: 225453 nosy: haypo priority: normal severity: normal status: open title: Fix m

[issue21549] Add the members parameter for TarFile.list()

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file35307/tarfile_list_members.patch ___ Python tracker ___ ___ Python-bugs

[issue21549] Add the members parameter for TarFile.list()

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a test. Make the members parameter keyword-only. If there are no objections I'll commit the patch soon. -- Added file: http://bugs.python.org/file36398/tarfile_list_members_2.patch ___ Python tracker

[issue21549] Add the members parameter for TarFile.list()

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

[issue22217] Reprs for zipfile classes

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file36397/zipfile_reprs.diff ___ Python tracker ___ _

[issue22217] Reprs for zipfile classes

2014-08-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch implements __repr__() methods of three zipfile classes: ZipFile, ZipInfo and ZipExtFile. Example: >>> import zipfile >>> zf = >>> zipfile.ZipFile('/usr/share/doc/texlive-base/support/makeindex/ind-src.zip') >>> zf >>> zf.infolist()[:2] [, ]

[issue22216] smtplip STARTTLS fails at second attampt due to unsufficiant quit()

2014-08-17 Thread Milan Oberkirch
New submission from Milan Oberkirch: When using smtplib.SMTP to connect to a SMTP server the instance variables esmtp_response survives a SMTP.quit() which results in the following error: >>> import smtplib >>> smtp = smtplib.SMTP('mail.oberkirch.org', 25) >>> smtp.starttls() (220, b'2.0.0 Read

[issue22115] Add new methods to trace Tkinter variables

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file36179/tkinter_trace_variable_2.patch ___ Python tracker ___ ___ Python-

[issue22115] Add new methods to trace Tkinter variables

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with the tip. -- stage: -> patch review Added file: http://bugs.python.org/file36395/tkinter_trace_variable_3.patch ___ Python tracker _

[issue13916] disallow the "surrogatepass" handler for non utf-* encodings

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please finish this issue Victor? -- assignee: -> haypo stage: resolved -> ___ Python tracker ___ _

[issue22215] "embedded NUL character" exceptions

2014-08-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently most functions which accepts string only without embedded NUL character, raise TypeError. Proposed patch change exception type to more consistent ValueError. It also unifies error messages. I have opened a discussion on Python-Dev. -- co

[issue22214] Tkinter: Don't stringify callbacks arguments

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Run Tkinter tests with wantobjects=False ___ Python tracker ___ ___ Python-bugs-list m

[issue22214] Tkinter: Don't stringify callbacks arguments

2014-08-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently Tkinter supports two modes: * When wantobjects=1 (default), all results of Tcl/Tk commands are converted to appropriate Python objects (int, float, str, bytes, tuple) if it is possible or to Tcl_Obj for unknown Tcl types. * When wantobjects=0 (le

[issue22195] Make it easy to replace print() calls with logging calls

2014-08-17 Thread Martin Matusiak
Martin Matusiak added the comment: Would it make sense for the logging module to supply something like the LoggerWriter class you wrote? With a section in the documentation that says something like "have you been logging using print() this whole time? No problem, just do sys.stdout = LoggerW

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset b05d4f3ee190 by Serhiy Storchaka in branch '3.4': Issue #22165: Fixed test_undecodable_filename on Mac OS. http://hg.python.org/cpython/rev/b05d4f3ee190 New changeset 58e0d2c3ead8 by Serhiy Storchaka in branch 'default': Issue #22165: Fixed test_und

[issue22014] Improve display of OS exception <-> errno mapping

2014-08-17 Thread Jon Poler
Jon Poler added the comment: Here's one way to accomplish this. Please see attached os_exceptions_table_V2.patch. I wasn't having much luck trying to use ReST, so I took advantage of the fact that the Doc/conf.py file is executed every time sphinx-build is run. conf.py imports and calls the m

[issue22068] tkinter: avoid reference loops with Variables and Fonts

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22193] Add _PySys_GetSizeOf()

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is alternative patch. May be it looks more clear for you. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file36391/_PySys_GetSizeOf_overflow_2.patch ___ Python tracker

[issue22034] posixpath.join() and bytearray

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please make the review? -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___

[issue22068] tkinter: avoid reference loops with Variables and Fonts

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b79c702abda by Serhiy Storchaka in branch '2.7': Issue #22068: Avoided reference loops with Variables and Fonts in Tkinter. http://hg.python.org/cpython/rev/0b79c702abda New changeset 873002eb8087 by Serhiy Storchaka in branch '3.4': Issue #22068:

[issue22201] python -mzipfile fails to unzip files with folders created by zip

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Applied first part of the patch. Thank you Ryan. For the rest please open separate issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22201] python -mzipfile fails to unzip files with folders created by zip

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffa5bfe75c3a by Serhiy Storchaka in branch '2.7': Issue #22201: Command-line interface of the zipfile module now correctly http://hg.python.org/cpython/rev/ffa5bfe75c3a New changeset 7b933005c492 by Serhiy Storchaka in branch '3.4': Issue #22201: Co

[issue22213] pyvenv style virtual environments unusable in an embedded system

2014-08-17 Thread Nick Coghlan
Nick Coghlan added the comment: Graham pointed out that setting PYTHONHOME ends up triggering the same control flow through getpath.c as calling Py_SetPythonHome, so this can be tested just with pyvenv and a suitably configured environment. It may still be a little tricky though, since we norm

[issue22213] pyvenv style virtual environments unusable in an embedded system

2014-08-17 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, PEP 432 (my proposal to redesign the startup sequence) could just as well be subtitled "getpath.c hurts my brain" :P One tricky part here is going to be figuring out how to test this - perhaps adding a new test option to _testembed and then running it both

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, then the workaround should work. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22213] pyvenv style virtual environments unusable in an embedded system

2014-08-17 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22213] pyvenv style virtual environments unusable in an embedded system

2014-08-17 Thread Graham Dumpleton
New submission from Graham Dumpleton: In am embedded system, as the 'python' executable is itself not run and the Python interpreter is initialised in process explicitly using PyInitialize(), in order to find the location of the Python installation, an elaborate sequence of checks is run as im

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: OSX returns a strange value in os.listdir because the HFS+ filesystem itself has unicode filenames and transforms byte strings that are assumed to contain UTF-8 into something the filesystem can handle (and seems to replace bytes that aren't valid UTF-8 into

[issue22193] Add _PySys_GetSizeOf()

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in changeset 2e417d9a2b1c. Thank you Arfrever. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I missed that os.listdir() on Mac returns really strange result. Thank you Senthil. Here is a patch which try to workaround this. I'm not sure that it is enough. May be we should fix os.listdir(). Or conclude that this issue can't be fixed on Mac OS. -

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset a894b629bbea by Serhiy Storchaka in branch '3.4': Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales. http://hg.python.org/cpython/rev/a894b629bbea New changeset 7cdc941d5180 by Serhiy Storchaka in branch 'default': Issue #22165: Fix

[issue22157] _ctypes on ppc64: libffi/src/powerpc/linux64.o: ABI version 1 is not compatible with ABI version 2 output

2014-08-17 Thread Matthias Klose
Matthias Klose added the comment: this is fixed in the 3.4 branch (post 3.4.1) and on all active branches. you should be able to use --with-system-libffi in your current environment (maybe after running: apt-get build-dep python3.4. -- resolution: -> fixed status: open -> closed

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Looks like we hit with an encoding issue, which is due to way os.fsdecode() and os.listdir() decode the filenames. >>> support.TESTFN_UNDECODABLE b'@test_99678_tmp\xe7w\xf0' >>> dir_list = os.listdir(self.tempdir) >>> dir_list ['@test_99678_tmp%E7w%F0.txt', '