[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-16 Thread Evelyn Mitchell
Changes by Evelyn Mitchell : -- nosy: -Evelyn Mitchell ___ Python tracker ___ ___

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-16 Thread Evelyn Mitchell
Changes by Evelyn Mitchell : -- nosy: -Evelyn Mitchell ___ Python tracker ___ ___

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-16 Thread Decorater
Decorater added the comment: I see 2 files that references dsp files and those are Tools/freeze/extensions_win32.ini and Tools/freeze/checkextensions_win32.py. -- nosy: +Decorater ___ Python tracker

[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset f086d6c9d9f6 by Raymond Hettinger in branch 'default': Issue #25628: Make namedtuple "rename" and "verbose" parameters keyword-only. https://hg.python.org/cpython/rev/f086d6c9d9f6 -- nosy: +python-dev

[issue27512] os.fspath is certain to crash when exception raised in __fspath__

2016-08-16 Thread Brett Cannon
Brett Cannon added the comment: Thanks, I'll fix it at some point. -- ___ Python tracker ___ ___

[issue27762] ConfigParser ignores in-line comments for lines with semi-colons

2016-08-16 Thread Łukasz Langa
Łukasz Langa added the comment: I'm sorry but we can't do anything about this for Python 2.7 anymore. There's a big danger of altering how existing config files in the wild are being parsed, which is why we only broke compatibility once, with the release of Python 3.2. Even then, doing it

[issue27762] ConfigParser ignores in-line comments for lines with semi-colons

2016-08-16 Thread Łukasz Langa
Changes by Łukasz Langa : -- status: open -> closed ___ Python tracker ___ ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-16 Thread John Hagen
John Hagen added the comment: I think there is a small typo in the Changelog / What's New. The Issue isn't hyper-linked: https://docs.python.org/3.6/whatsnew/changelog.html#id2 -- ___ Python tracker

[issue27512] os.fspath is certain to crash when exception raised in __fspath__

2016-08-16 Thread SilentGhost
SilentGhost added the comment: Brett, Misc/NEWS entry needs a # before issue number. -- nosy: +SilentGhost ___ Python tracker ___

[issue27778] PEP 524: Add os.getrandom()

2016-08-16 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds os.getrandom(): thin wrapper on the Linux getrandom() syscall. os.getrandom() can return less bytes than requested. The patch is incomplete: it doesn't include documentation. I chose to not implement a loop to not loose entropy if a

[issue27761] Private _nth_root function loses accuracy

2016-08-16 Thread Tim Peters
Tim Peters added the comment: Thanks, Mark! I had worked out the `floor_nroot` algorithm many years ago, but missed the connection to the AM-GM inequality. As a result, instead of being easy, proving correctness was a pain that stretched over pages. Delighted to see how obvious it _can_

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-16 Thread Ethan Furman
Ethan Furman added the comment: added missing '#' -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24905] Allow incremental I/O to blobs in sqlite3

2016-08-16 Thread Aviv Palivoda
Aviv Palivoda added the comment: Pinging as mentioned in the devguide. -- ___ Python tracker ___ ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-08-16 Thread Stefan Krah
Stefan Krah added the comment: I found the docstrings a bit too verbose (the power() docstring takes up more than a page), but I'm happy to add it and review a patch. The patch authors need to take the hand written function signatures into account. -- assignee: docs@python -> skrah

[issue27750] Idle Shell freezes when printing 100000+ char lines.

2016-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: 200 (lines) * 200 (columns) * 3 (or more chars/item) = line with 12+ chars -- which you try to print 200 times. This is known to mostly freeze tk Text windows. This was not a crash for me, as I was able to close Shell and continue. PS: Please post

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ff02380b1bf by Gregory P. Smith in branch '3.5': Issue #26750: use inspect.isdatadescriptor instead of our own https://hg.python.org/cpython/rev/3ff02380b1bf New changeset d51a66622266 by Gregory P. Smith in branch 'default': Issue #26750: use

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is very architecture specific and focused on low level information that you can also already get from places like /proc/cpuinfo on Linux. Also, regardless of what capability bits a CPU exposes that has nothing to do with what accelerations the

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I fixed #27611. Could you try the comment out test of macosx call for test_autocomplete (around line 30 to 35) in 2.7 and 3.5? If those also pass, I will patch all three and close this. -- ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2016-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Comments on taleinat.20140219.IDLE_ClearWindow_extension.patch. In 3.6, module names are lowercase, not too long. Also, I am trying to consolidate small files, not multiply them. I am trying to convert existing built-in extensions to built-in features, not

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: What do you mean by 'does not work' and what did I omit? -- ___ Python tracker ___

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Terry, you committed not full patch. The tix module still doesn't work after NoDefaultRoot(). -- status: closed -> open ___ Python tracker

[issue1442493] IDLE shell window gets very slow when displaying long lines

2016-08-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___

[issue27775] `shlex.split(None)` causes infinite loop

2016-08-16 Thread Ram Rachum
New submission from Ram Rachum: I had a code that would freeze, and after debugging I realized that a bug in my code caused `shlex.split(None)` to be called, which puts Python in an infinite loop. We probably want to do an `if not isinstance(s, ...): raise TypeError('Bla bla')` at the start

[issue27645] Supporting native backup facility of SQLite

2016-08-16 Thread Lele Gaifax
Lele Gaifax added the comment: I guess the chance of getting this merged before the 3.6 betas is very low, but if there is *anything* I could do to raise it, please tell :-) -- ___ Python tracker

[issue27643] test_ctypes fails on AIX with xlc

2016-08-16 Thread Michael Felt
Michael Felt added the comment: On 8/4/2016 10:58 AM, Martin Panter wrote: > Can you figure out a way to test for XLC (but not GCC, which the AIX buildbot > uses), and then try my patch out? Hopefully you see no more compiler > warnings, test_ints() should now pass, and test_shorts() should be

[issue27038] Make os.DirEntry exist

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: Brendan Moloney: Please open a thread on the python-ideas mailing list to discuss your idea. Please don't start discussing on a *closed* issue: since an issue is closed, it's hidden from the main bug tracker and so only very few people see it. --

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-16 Thread Kaeptm Blaubaer
Kaeptm Blaubaer added the comment: Yes, it is an Windows issue. -- ___ Python tracker ___ ___

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-16 Thread Decorater
Decorater added the comment: Not to mention some parts in the ini references zlib in PCBuild which is no longer in that folder. -- ___ Python tracker

[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-08-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-08-16 Thread Raymond Hettinger
New submission from Raymond Hettinger: The pure python version of decimal has extensive docstrings with text and explanatory examples drawn directly from the decimal arithmetic specification. Those should all be copied to the C version as well. This will improve usability for interactive

[issue27128] Add _PyObject_FastCall()

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: Patch version 3: simpler and shorter patch * _PyObject_FastCall() keeps its kwargs parameter, but it must always be NULL. Support for keyword arguments will be added later. * I removed PyObject_CallNoArg() and PyObject_CallArg1() * I moved _PyStack_AsTuple()

[issue27395] Patch to Increase test coverage of unittest.runner.TextTestResult

2016-08-16 Thread Pam McA'Nulty
Changes by Pam McA'Nulty : -- title: Increase test coverage of unittest.runner.TextTestResult -> Patch to Increase test coverage of unittest.runner.TextTestResult ___ Python tracker

[issue27128] Add _PyObject_FastCall()

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: >> Do you suggest to not add these 2 new functions? > > Yes, I suggest to not add them. The API for calling is already too large. > Internally we can directly use _PyObject_FastCall(), and third party code > should get benefit

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: FYI Raymond Hettinger started a discussion on Twitter about this feature, and the feedback may not be as good as you expected: https://twitter.com/raymondh/status/765652816849285120 (I dislike this new magic thing, but I also never used the enum module, so I'm

[issue27645] Supporting native backup facility of SQLite

2016-08-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list

[issue27181] Add geometric mean to `statistics` module

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: Failure on s390x Debian 3.x: http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/1455/steps/test/logs/stdio == FAIL: testExactPowers (test.test_statistics.Test_Nth_Root) (i=29,

[issue27181] Add geometric mean to `statistics` module

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54288b160243 by Victor Stinner in branch 'default': Issue #27181: Skip tests known to fail until a fix is found https://hg.python.org/cpython/rev/54288b160243 -- ___ Python tracker

[issue27128] Add _PyObject_FastCall()

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 288ec55f1912 by Victor Stinner in branch 'default': Issue #27128: Cleanup _PyEval_EvalCodeWithName() https://hg.python.org/cpython/rev/288ec55f1912 New changeset e615718a6455 by Victor Stinner in branch 'default': Use Py_ssize_t in

[issue27756] Add pyd icon for 3.6

2016-08-16 Thread Steve Dower
Steve Dower added the comment: Got an impressively quick response from one of our willing designers, who has proposed the attached icons. In order, they would be: * pythonw.exe * py.exe (for reference, this mimics the Run launcher icon in Win10) * All .py * python.exe * All .pyc * All .pyd

[issue27775] `shlex.split(None)` causes infinite loop

2016-08-16 Thread R. David Murray
R. David Murray added the comment: This is working as designed. None means read from stdin. It is already documented in a note under shlex.split, so there isn't a doc issue here either. (Aside: 'crash' means segfault, which this isn't.) You could try to recast this as a feature request,

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 980e2c781810 by Victor Stinner in branch 'default': Issue #27776: Cleanup random.c https://hg.python.org/cpython/rev/980e2c781810 New changeset 265644bad99e by Victor Stinner in branch 'default': Issue #27776: _PyRandom_Init() doesn't call

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: DisplayStyle() fails with AttributeError after NoDefaultRoot(). Should be made following changes: 1. The refwindow option should have priority over _default_root. 2. Add the master keyword-only parameter for creating styles without refwindow (3.6 only).

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2016-08-16 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: -petri.lehtinen ___ Python tracker ___ ___

[issue27594] Assertion failure when running "test_ast" tests with coverage.

2016-08-16 Thread ap
ap added the comment: Thanks, Ivan, that change fixes it for me, too. I checked with a more recent revision and build: $ hg identify 265644bad99e+ tip $ ./python.exe --version Python 3.6.0a4+ $ Confirmed that it still exhibited the same behaviour as before: $ ./python.exe -m test test_ast

[issue27181] Add geometric mean to `statistics` module

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: I would like to use buildbots to check for regressions, but I see a lot of red buildbots, so buildbots became useless :-/ I skipped failing test_statistics tests, since failures are known. I put the priority to "release blocker". I suggest to either revert

[issue24905] Allow incremental I/O to blobs in sqlite3

2016-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. The patch contains typos and violates PEP 7 and PEP 12. And there are questions about API. -- nosy: +serhiy.storchaka ___ Python tracker

[issue6143] IDLE - an extension to clear the shell window

2016-08-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: -martin.panter ___ Python tracker ___ ___

[issue24648] Allocation of values array in split dicts should use small object allocator.

2016-08-16 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +aniawsz, larry ___ Python tracker ___ ___

[issue18295] Possible integer overflow in PyCode_New()

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e615718a6455 by Victor Stinner in branch 'default': Use Py_ssize_t in _PyEval_EvalCodeWithName() https://hg.python.org/cpython/rev/e615718a6455 -- nosy: +python-dev ___ Python tracker

[issue27128] Add _PyObject_FastCall()

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: > 5) Reverted changes in Objects/descrobject.c. They added a regression in > namedtuple attributes access. Oh, I now understand. The change makes "namedtuple.attr" slower. With fastcall-3.patch attached to this issue, the fast path is not taken on this

[issue27780] Memory leak during Python build (from git c3ff7e7) on Debian 8.5 x64

2016-08-16 Thread geeknik
New submission from geeknik: CC=afl-clang-fast CXX=afl-clang-fast++ AFL_USE_ASAN=1 ./configure --disable-ipv6 Passes fine. AFL_USE_ASAN=1 make Ends with the following: Parser/pgen ./Grammar/Grammar Include/graminit.h Python/graminit.c

[issue24648] Allocation of values array in split dicts should use small object allocator.

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.6, PyMem_Malloc() is now an alias to PyObject_Malloc(), both functions use the pymalloc allocator: see the issue #26249. This issue can now be closed. -- Note: I created the issue #26249 when I saw the good results of the issue #23601. In fact,

[issue27749] python 3.5.2 maybe crash in windows

2016-08-16 Thread wevsty
Changes by wevsty : -- title: python 3.5.2 maybe crash -> python 3.5.2 maybe crash in windows ___ Python tracker ___

[issue27756] Add pyd icon for 3.6

2016-08-16 Thread Eryk Sun
Eryk Sun added the comment: Should pyw.exe get its own icon? Otherwise these look good to me; they're less busy than the existing icons, which is probably for the best. Is there a potential licensing problem with borrowing the look of the Win+R dialog icon, or is this fair use? --

[issue27756] Add pyd icon for 3.6

2016-08-16 Thread Steve Dower
Steve Dower added the comment: It's probably not worth doing pyw.exe - even distinguishing between python.exe and pythonw.exe is only possible because we came up with that icon before the alternative one for the launcher. The style just imitates the icon in the Run dialog (the "feeling of

[issue24648] Allocation of values array in split dicts should use small object allocator.

2016-08-16 Thread Larry Hastings
Larry Hastings added the comment: Assigning to myself on behalf of "aniawsz". I actually want to assign it to her but for some reason I can't. (Maybe because she doesn't have the commit bit?) -- assignee: -> larry ___ Python tracker

[issue24648] Allocation of values array in split dicts should use small object allocator.

2016-08-16 Thread Emanuel Barry
Emanuel Barry added the comment: One needs to have the "Developer" role (i.e. can triage issues) to be assigned :) -- nosy: +ebarry ___ Python tracker

[issue16764] Make zlib accept keyword-arguments

2016-08-16 Thread Xiang Zhang
Xiang Zhang added the comment: Serhiy, the message added in Misc/NEWS should be in Library section not Core and Builtins section. -- ___ Python tracker

[issue27395] Patch to Increase test coverage of unittest.runner.TextTestResult

2016-08-16 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review type: -> enhancement versions: +Python 3.5 ___ Python tracker

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Historically, we've kept the docstrings 100% intact between the C and Python versions, even if they are big (see heapq.__doc__) for example. If there are differences in the "hand written" versions. I would like to have them compared on a case by case basis

[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-08-16 Thread Steve Dower
New submission from Steve Dower: I've attached my first pass at a patch to change the file system encoding on Windows to UTF-8 and remove use of the *A APIs. It would be trivial to change the encoding from UTF-8 back to CP_ACP and change the error mode if that's what we decide is better, but

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2016-08-16 Thread rr-
New submission from rr-: Sending requests with Content-Length but without Content-Disposition headers causes following error: Traceback (most recent call last): File "./test", line 19, in form = cgi.FieldStorage(fp=env['wsgi.input'], environ=env) File "/usr/lib/python3.5/cgi.py", line

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2016-08-16 Thread Decorater
Decorater added the comment: hmm into looking it should check if it is in actuality a binary file the length of the file data does not really determine anything on encoding really. if self._binary_file: would suffice on determining binary mode or not. -- nosy: +Decorater

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2016-08-16 Thread Decorater
Decorater added the comment: Here is a patch to review (note I only had disc space to clone 3.6 so I had to manually download this version of the file). -- Added file: http://bugs.python.org/file44125/cgi.py ___ Python tracker

[issue27734] Memory leaks at Python35-32

2016-08-16 Thread Stefan Krah
Stefan Krah added the comment: #15787. All Python versions have these leaks, which aren't terribly important in practice. If it still bothers you, consider writing a Python C extension instead of "embedding" Python, which is what most people do anyway. -- status: open -> closed

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-16 Thread Decorater
Decorater added the comment: Wow. ( linux only pep? inb4 a windows thing gets wedged in) -- nosy: +Decorater ___ Python tracker ___

[issue27734] Memory leaks at Python35-32

2016-08-16 Thread R. David Murray
Changes by R. David Murray : -- superseder: -> PEP 3121, 384 Refactoring ___ Python tracker ___

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-16 Thread STINNER Victor
New submission from STINNER Victor: Issue to track the implementation of the PEP 524. -- messages: 272852 nosy: haypo priority: normal severity: normal status: open title: PEP 524: Make os.urandom() blocking on Linux type: security versions: Python 3.6

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is about test_tix failing when run after test_idle, due to the conjunction of two specific causes, one old (tix importing _default_root), one new (IDLE deleting and not restoring _default_root). The new cause exposed the old. Fixing either cause

[issue24853] Py_Finalize doesn't clean up PyImport_Inittab

2016-08-16 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue24379] Add operator.subscript as a convenience for creating slices

2016-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > We should open a separate issue for leaks in objects with empty __slots__ The leak should be fixed first rather than introducing stub fields hack. -- ___ Python tracker

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86d0d74bc2e1 by Victor Stinner in branch 'default': Issue #27776: Cleanup random.c https://hg.python.org/cpython/rev/86d0d74bc2e1 New changeset ad141164c792 by Victor Stinner in branch 'default': Issue #27776: dev_urandom(raise=0) now closes the

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-16 Thread STINNER Victor
STINNER Victor added the comment: Patch to make os.urandom() blocking on Linux 3.17+, but use non-blocking urandom in _random.Random constructor and _random.Random.seed() with no seed is set. -- keywords: +patch Added file: http://bugs.python.org/file44126/urandom_nonblock.patch

[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-08-16 Thread Decorater
Decorater added the comment: I personally hate ansi myself so +1 to UTF-8/UTF-16. -- nosy: +Decorater ___ Python tracker ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: The use of a bare identifier as a self-assigning statement is unprecedented in the world of Python. PyFlakes flags it as an error (because prior to now, a bare identifier in a class statement was almost always an error). I suspect this will cause issues

[issue27761] Private _nth_root function loses accuracy

2016-08-16 Thread Tim Peters
Tim Peters added the comment: Noting that `floor_nroot` can be sped a lot by giving it a better starting guess. In the context of `nroot`, the latter _could_ pass `int(x**(1/n))` as an excellent starting guess. In the absence of any help, this version figures that out on its own; an