[issue31675] Tkinter: memory leak in splitlines() and split()

2017-10-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3855 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31682] Exception: Cannot import `win32api`!

2017-10-03 Thread Zachary Ware
Zachary Ware added the comment: win32api is part of the third-party pywin32 package, which is most easily installed by running `C:\Python27\python.exe -m pip install pypiwin32`. For further assistance, please try either the comp.lang.python list at python-l...@python.org, the pywin32 list at

[issue31673] Fix the name of Tkinter's adderrorinfo method

2017-10-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue31684] Scientific formatting of decimal 0 different from float 0

2017-10-03 Thread Aaron Meurer
New submission from Aaron Meurer : >>> '{:+.19e}'.format(0.) '+0.000e+00' >>> import decimal >>> '{:+.19e}'.format(decimal.Decimal(0)) '+0.000e+19' Note the decimal uses e+19 instead of e+00. Obviously it's still mathematically correct, but it's annoying to have

[issue31680] Expose curses library name and version on Python level

2017-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is what I meant. The version should be exposed as a tuple (major, minor, patch) or as a special named tuple. I don't know what to do with other implementations. NCURSES_VERSION_MAJOR is not a part of standard. One solution -- set the version to (0

[issue31557] tarfile: incorrectly treats regular file as directory

2017-10-03 Thread Joe Tsai
Joe Tsai added the comment: This bug is not platform specific. I've attached a reproduction: $ python >>> import tarfile >>> tarfile.open("test.tar", "r").next().isdir() True $ tar -tvf test.tar -rw-rw-r-- 0/0 0 1969-12-31 16:00 123456789/123456789/123456789/123456789/123456789/

[issue31685] Cannot connect to CE path `127.0.0.1:8010`

2017-10-03 Thread Monica
New submission from Monica : Is there any reason it cannot connect to CE path? C:\Users\Documents\Twister-git_hub_branch\client\executionprocess>ExecutionProcess.py -u user -e EP-name -s 127.0.0.1:8010 TWISTER_PATH is set to `C:\Users\Documents\Twister-git_hub_branch\client\executionprocess`.

[issue31680] Expose curses library name and version on Python level

2017-10-03 Thread STINNER Victor
STINNER Victor added the comment: I suggest: curses._NCURSES_VERSION_INFO = (6, 0, 20170212) curses._NCURSES_VERSION = "6.0" curses._NCURSES_MOUSE_VERSION = 2 Similar example, the readline module uses: PyModule_AddIntConstant(m, "_READLINE_VERSION", RL_READLINE_VERSION); PyModule_AddI

[issue31670] Associate .wasm with application/wasm

2017-10-03 Thread Brad Nelson
Brad Nelson added the comment: Tentative might be an understatement. There was 4 browser sign-off on using that mime type within the WebAssembly CG, which has drafted the spec so far. We're in the process of handing v1 of the spec off to the WebAssembly Working Group on our way to a good and p

[issue31685] Cannot connect to CE path `127.0.0.1:8010`

2017-10-03 Thread Zachary Ware
Zachary Ware added the comment: This issue does not appear to have anything to do with the CPython interpreter or standard library, and this issue tracker is not a help forum. Please try python-l...@python.org for assistance, but you'll need to provide the other users of the list significant

[issue31685] Cannot connect to CE path `127.0.0.1:8010`

2017-10-03 Thread Zachary Ware
Change by Zachary Ware : -- components: -Demos and Tools type: compile error -> ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31670] Associate .wasm with application/wasm

2017-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, updates of the mimetype database usually are backported to 2.7. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue31670] Associate .wasm with application/wasm

2017-10-03 Thread R. David Murray
R. David Murray added the comment: Yes, if/when it goes in it will go in to all currently maintained versions. I've adjusted 'versions' accordingly. -- versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue31686] GZip library doesn't properly close files

2017-10-03 Thread Jake Lever
New submission from Jake Lever : The attached code is designed to output compressed data to a gzip file. It creates two GzipFile objects, but only one is really used. It seems that it doesn't clean up and close the file properly. In Py2, the attached code will fail. The output file (debug.txt.

[issue31683] a stack overflow on windows in faulthandler._fatal_error()

2017-10-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +3856 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue31683] a stack overflow on windows in faulthandler._fatal_error()

2017-10-03 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 3878 to replace alloca() with a fixed buffer of 256 bytes. -- ___ Python tracker ___ ___

[issue31415] Add -X option to show import time

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/python/cpython/blob/27c623c845dd6e4b8e1782666ca3a956636da266/Modules/timemodule.c#L80-L112 time module has perf_counter implementation based on QueryPerformanceCounter(). Could we change PyTime_GetMonotonicClock implementation to use it on Wind

[issue31415] Add -X option to show import time

2017-10-03 Thread STINNER Victor
STINNER Victor added the comment: > Could we change PyTime_GetMonotonicClock implementation to use it on Windows? No. See the PEP 418 for the rationale. But we could add a _PyTime_GetPerfCounter() to Python/pytime.c. -- ___ Python tracker

[issue31671] IntFlag makes re.compile slower

2017-10-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: When proposing to undo recent decisions, please add the people to the nosy list who were involved in making that decision in the first place. -- nosy: +ethan.furman, gvanrossum, rhettinger ___ Python tracker

[issue31671] IntFlag makes re.compile slower

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: > When proposing to undo recent decisions, please add the people to the nosy > list who were involved in making that decision in the first place. I don't propose reverting IntFlag. I just propose convert IntFlag to int in re module, before passing it to sre_comp

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: > It's better to keep the re.IGNORECASE since the RFC also says: > > Both 'encoding' and 'charset' names are case-independent. Thus the > charset name "ISO-8859-1" is equivalent to "iso-8859-1", and the > encoding named "Q" may be spelled either "Q" or "q".

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: New changeset bf477a99e0c85258e6573f4ee9eda68fa1f98a31 by INADA Naoki in branch 'master': bpo-31677: email: Remove re.IGNORECASE flag (GH-3868) https://github.com/python/cpython/commit/bf477a99e0c85258e6573f4ee9eda68fa1f98a31 -- ___

[issue31672] string.Template should use re.ASCII flag

2017-10-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: When optimizing, please don't make API changes. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue31684] Scientific formatting of decimal 0 different from float 0

2017-10-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +facundobatista, mark.dickinson, rhettinger, skrah ___ Python tracker ___ ___ Python-bugs-list

[issue31672] string.Template should use re.ASCII flag

2017-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one way -- make re.ASCII a local flag. Than we could just change the idpattern attribute to r'(?a:[_a-z][_a-z0-9]*)', without touching the flags attribute. -- ___ Python tracker

[issue31684] Scientific formatting of decimal 0 different from float 0

2017-10-03 Thread Mark Dickinson
Mark Dickinson added the comment: The aim here is to capture the original Decimal value where possible, including the exponent information. (Unlike floats, trailing zeros in a `Decimal` instance are significant.) >>> from decimal import Decimal >>> Decimal('+0.000e+19') Decima

[issue31672] string.Template should use re.ASCII flag

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: > When optimizing, please don't make API changes. This is not only optimization, but bugfix. Document of string.Template says: > By default, "identifier" is restricted to any case-insensitive ASCII > alphanumeric string (including underscores) that starts with

[issue31672] string.Template should use re.ASCII flag

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: > Yet one way -- make re.ASCII a local flag. Than we could just change the > idpattern attribute to r'(?a:[_a-z][_a-z0-9]*)', without touching the flags > attribute. https://docs.python.org/3.6/library/re.html#regular-expression-syntax says `(?imsx-imsx:...)` A

[issue31672] string.Template should use re.ASCII flag

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: Current pull request override `Template.flags = re.I` after class creation for backward compatibility, without any API change. But I'm not sure it's right approach. How many people who subclass string.Template expect non-ASCII match? If this change is bugfix for

[issue31557] tarfile: incorrectly treats regular file as directory

2017-10-03 Thread Nitish
Nitish added the comment: Try 'tar xvf test.tar'. On Linux machine at least, it is in fact producing a tree of directories. Not a single file. So - in a way what Python is reporting is correct. -- ___ Python tracker

<    1   2