[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-16 Thread Ned Deily
Ned Deily added the comment: > I wonder if we should pin sphinx directly instead of the approximate pin we > have now to prevent this sort of thing in the future? Perhaps. OTOH, we will find out about Sphinx incompatibilities pretty quickly that way, rather than having doc builds potentially

[issue30942] Implement lwalk(levelwalk) function on os.py

2017-07-16 Thread André Rossi Korol
André Rossi Korol added the comment: UPDATE: I already fixed the cause of the TypeError I mentioned earlier. -- ___ Python tracker ___

[issue30942] Implement lwalk(levelwalk) function on os.py

2017-07-16 Thread André Rossi Korol
Changes by André Rossi Korol : -- hgrepos: -369 ___ Python tracker ___ ___

[issue30942] Implement lwalk(levelwalk) function on os.py

2017-07-16 Thread André Rossi Korol
André Rossi Korol added the comment: I forked cpython and implemented an lwalk function on os.py. The lwalk funtion behaves exactly like walk(), except that it recurses only to a certain level of depth that can be selected by the user. More information on the lwalk function can be found on

[issue30942] Implement lwalk(levelwalk) function on os.py

2017-07-16 Thread André Rossi Korol
New submission from André Rossi Korol: I forked cpython and implemented an lwalk function on os.py. The lwalk funtion behaves exactly like walk(), except that it recurses only to a certain level of depth that can be selected by the user. More information on the lwalk function can be found on

[issue28638] Optimize namedtuple creation

2017-07-16 Thread Nick Coghlan
Nick Coghlan added the comment: I agree with Raymond here - the standard library's startup benchmarks are *NOT* normal code execution paths, since normal code execution is dominated by the actual operation being performed, and hence startup micro-optimizations vanish into the noise.

[issue26617] Assertion failed in gc with __del__ and weakref

2017-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I wait merging PR 2695 for cherry-picking it to 3.3. -- ___ Python tracker ___

[issue26617] Assertion failed in gc with __del__ and weakref

2017-07-16 Thread Ned Deily
Ned Deily added the comment: If it's also reproducible with 3.3, I'd take a 3.3 PR for it. -- ___ Python tracker ___

[issue9216] FIPS support for hashlib

2017-07-16 Thread Andrew DiPrinzio
Andrew DiPrinzio added the comment: I have been able to use this flag on RHEL and Centos. Is it possible that this has been completed? -- nosy: +Andrew DiPrinzio ___ Python tracker

[issue28638] Optimize namedtuple creation

2017-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > creates only one necessary backwards compatibility break > (we no longer have _source). IMO, this is an essential feature. It allows people to easily build their own variants, to divorce the generated code from the generator, and to fully understand

[issue30874] unittest execute tests twice in some conditions

2017-07-16 Thread ale5000
ale5000 added the comment: @louielu: I have the problem under Windows, and on Travis CI under Linux. -- ___ Python tracker ___

[issue28638] Optimize namedtuple creation

2017-07-16 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- pull_requests: +2796 ___ Python tracker ___ ___

[issue30939] Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds

2017-07-16 Thread Brett Cannon
Brett Cannon added the comment: I wonder if we should pin sphinx directly instead of the approximate pin we have now to prevent this sort of thing in the future? I had figured they wouldn't introduce a new warning in a bugfix release but I was wrong in that assumption. On Sat, Jul 15, 2017,

[issue23916] module importing performance regression

2017-07-16 Thread Brett Cannon
Brett Cannon added the comment: I agree with Antoine that this shouldn't change. Having said that, it wouldn't be hard to write your own finder using importlib that doesn't get the directory contents and instead checks for the file directly (and you could even set it just for your troublesome

[issue9262] IDLE: Revise or replace tabbedpages for multi-editor window.

2017-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vedran, reread "continue ... with multiple windows". What you describe as 'I have never seen' seems standard for tabbed windows applications. I just verified that FireFox and Edge allow "separate windows that can be independently opened, closed, moved and

[issue22253] ConfigParser does not handle files without sections

2017-07-16 Thread Pedro Lacerda
Pedro Lacerda added the comment: Thank you 林自均! I just made a pull-request with the relevant bits. -- ___ Python tracker ___

[issue22253] ConfigParser does not handle files without sections

2017-07-16 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2795 ___ Python tracker ___

[issue30941] Missing line in example program

2017-07-16 Thread R. David Murray
R. David Murray added the comment: This is the standard way that we write examples. Sprinkling in extra blank lines everywhere would make the examples less readable. One you've learned how the command interpreter works, the examples are clear, so you each beginner only has to learn this

[issue30934] Document how to run coverage for repository idlelib files.

2017-07-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, please try Louie's linux instructions and see if they work on Ubuntu. -- ___ Python tracker ___

[issue30941] Missing line in example program

2017-07-16 Thread Luc Bougé
New submission from Luc Bougé: On page , the following program is listed. It raises a syntactic error. An empty line is missing after "... n += val" to close the loop body. >>> # iteration >>> n = 0 >>> for val in

[issue28638] Optimize namedtuple creation

2017-07-16 Thread INADA Naoki
INADA Naoki added the comment: I like your idea. Would you make pull request? -- resolution: rejected -> status: closed -> open title: Creating namedtuple is too slow to be used in common stdlib (e.g. functools) -> Optimize namedtuple creation ___

[issue30940] Documentation for round() is incorrect.

2017-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 3.4 round() doesn't accept None as ndigits argument. The behavior was changed by issue19933 and issue27936. Wasn't this change a mistake? Seems Mark opposed to it. -- nosy: +mark.dickinson, rhettinger, serhiy.storchaka, steve.dower versions:

[issue30940] Documentation for round() is incorrect.

2017-07-16 Thread George K
New submission from George K: The documentation for round states "The return value is an integer if called with one argument, otherwise of the same type as number." This is not the case if the second argument is None. -- assignee: docs@python components: Documentation messages: 298442

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-07-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___

[issue29400] Add instruction level tracing via sys.settrace

2017-07-16 Thread George King
George King added the comment: After reviewing the thread, I'm reminded that the main design problem concerns preserving behavior of this idiom: "old=sys.gettrace(); ...; sys.settrace(old)" If we add more state, i.e. the `trace_instructions` bool, then the above idiom no longer correctly

[issue9262] IDLE: Revise or replace tabbedpages for multi-editor window.

2017-07-16 Thread Vedran Čačić
Vedran Čačić added the comment: > The way IDLE looks on Mac is what we want on all systems. I added a note to > #24826. I'm not sure I understand you. This is what I have on Windows today. Of course, the menu is replicated on each window, but that's an irrelevant detail - it doesn't take

[issue30936] json module ref leaks detected by test_json

2017-07-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fixes. I checked manually 2.7, 3.5, 3.6 and master branches with "./python -m test -R 3:3 test_json": no more leak! -- ___ Python tracker

[issue25571] Improve the lltrace feature with the Py_Debug mode

2017-07-16 Thread STINNER Victor
STINNER Victor added the comment: I still strongly prefer bpo-29400 over "lltrace", since it would be usable in release mode. -- ___ Python tracker ___

[issue30694] Update embedded copy of expat to 2.2.1

2017-07-16 Thread STINNER Victor
STINNER Victor added the comment: Yeah! It's nice to see this issue now fixed in all branches! -- ___ Python tracker ___

[issue30934] Document how to run coverage for repository idlelib files.

2017-07-16 Thread Louie Lu
Louie Lu added the comment: Upload the Linux/MacOS version of coverage usage. -- ___ Python tracker ___ ___

[issue30934] Document how to run coverage for repository idlelib files.

2017-07-16 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2794 ___ Python tracker ___ ___ Python-bugs-list

[issue25571] Improve the lltrace feature with the Py_Debug mode

2017-07-16 Thread George King
George King added the comment: @matrixise, I'm the author of the alternative in issue29400, and I'm finally finding the time to get back into it. I'm going to make a push this week to clean it up; your feedback would be much appreciated! -- nosy: +gwk

[issue23916] module importing performance regression

2017-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the reproducer. I haven't changed my mind on the resolution, as it is an extremely unlikely usecase (a directory with 1e8 files is painful to manage with standard command-line tools). I suggest you change your approach, for example you could use

[issue23916] module importing performance regression

2017-07-16 Thread David Roundy
David Roundy added the comment: Here is a little script to demonstrate the regression (which yes, is still bothering me). -- type: -> performance versions: +Python 3.5 Added file: http://bugs.python.org/file47016/test.py ___ Python tracker

[issue30938] pdb lacks debugger command to list and show all user-defined variables

2017-07-16 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2792 ___ Python tracker ___

[issue30919] Shared Array Memory Allocation Regression

2017-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Again, setting TMPDIR is a poor workaround as it will impact any library creating temporary files. I haven't found anyone complaining about limited shared array size on 2.7, so likely it's not a common concern. Right now, anyone creating a huge shared array

[issue30919] Shared Array Memory Allocation Regression

2017-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can break Python 3 applications that work with shared arrays larger than the size of physical memory. If do this change, it should be optional. Setting TMPDIR=/dev/shm restores performance of 2.7 version even on versions that we will decide to not

[issue30919] Shared Array Memory Allocation Regression

2017-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: The main issue here is to restore performance of 2.7 version. Setting TMPDIR sounds too general and might have impact on other libraries. I think it's ok if shared array size is limited by virtual memory size on the computer, since the whole point is to

[issue30919] Shared Array Memory Allocation Regression

2017-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, /dev/shm is ok on my computer. But there is yet one drawback of this patch. Currently the size of shared array is limited by the free space on the file system for temporary files. If it isn't enough you can easy set TMPDIR to other path. In 2.7 and

[issue30694] Update embedded copy of expat to 2.2.1

2017-07-16 Thread Ned Deily
Changes by Ned Deily : -- priority: deferred blocker -> resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-16 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-16 Thread Ned Deily
Ned Deily added the comment: New changeset ab90986600ba7dea2aa41e5c1773791070725453 by Ned Deily (Victor Stinner) in branch '3.3': [3.3] bpo-29591, bpo-30694: Upgrade Modules/expat to libexpat 2.2.1 (#2164) (#2204)

[issue30694] Update embedded copy of expat to 2.2.1

2017-07-16 Thread Ned Deily
Ned Deily added the comment: New changeset ab90986600ba7dea2aa41e5c1773791070725453 by Ned Deily (Victor Stinner) in branch '3.3': [3.3] bpo-29591, bpo-30694: Upgrade Modules/expat to libexpat 2.2.1 (#2164) (#2204)

[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-16 Thread Ned Deily
Ned Deily added the comment: New changeset ab90986600ba7dea2aa41e5c1773791070725453 by Ned Deily (Victor Stinner) in branch '3.3': [3.3] bpo-29591, bpo-30694: Upgrade Modules/expat to libexpat 2.2.1 (#2164) (#2204)

[issue30919] Shared Array Memory Allocation Regression

2017-07-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The size of file system mounted on "/run/user/${uid}" is limited (only 200 > MiB on my computer) Hmm, you're right. Is /dev/shm ok on your computer? -- ___ Python tracker

[issue30919] Shared Array Memory Allocation Regression

2017-07-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The size of file system mounted on "/run/user/${uid}" is limited (only 200 MiB on my computer). get_temp_dir() will be successful, but this may be not enough for allocating large shared array. And it is harder to control by user, because the location is not

[issue23844] test_ssl: fails on recent libressl version with BAD_DH_P_LENGTH

2017-07-16 Thread Ned Deily
Ned Deily added the comment: New changeset b52c0075511f8330f57c81520ee0287241d3653f by Ned Deily in branch '3.3': bpo-23844: Fix test_dh_params failure https://github.com/python/cpython/commit/b52c0075511f8330f57c81520ee0287241d3653f -- nosy: +ned.deily

[issue30935] document the new behavior of get_event_loop() in Python 3.6

2017-07-16 Thread Mandeep Singh
Changes by Mandeep Singh : -- pull_requests: +2791 ___ Python tracker ___ ___

[issue30466] Tutorial doesn't explain the use of classes

2017-07-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Apparently this was committed without my review. -- assignee: rhettinger -> ___ Python tracker ___