[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-03 Thread Yuan Chao Chou
New submission from Yuan Chao Chou: When Parser/asdl_c.py is composing the content of Python/Python-ast.c, it uses "value" to name the variables in inner blocks, which can shadow the variables named the same in outer blocks. It would be a good practice to avoid the shadowing naming to prevent

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-03 Thread Yuan Chao Chou
Changes by Yuan Chao Chou : -- pull_requests: +2617 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-03 Thread Yuan Chao Chou
Changes by Yuan Chao Chou : -- pull_requests: +2618 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-03 Thread Yuan Chao Chou
Changes by Yuan Chao Chou : -- pull_requests: +2619 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2017-07-03 Thread Steve Dower
Steve Dower added the comment: I wouldn't be opposed to seeing it tried again, but I have no strong opinion. I don't think this is a major performance bottleneck right now. -- ___ Python tracker __

[issue30842] pyenv activate for bash and tcsh

2017-07-03 Thread Arnon Sela
New submission from Arnon Sela: Remove hard coded path in activate family of virtualenv scripts. Currently, VIRTUAL_ENV is set hard coded. Event after --relocatable Instead, change to have is defined dynamically: E.g. bash: called=$_ [[ $called != $0 ]] && fullpath="${BASH_SOURCE[@]}" || ful

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Utkarsh Upadhyay
Changes by Utkarsh Upadhyay : -- pull_requests: +2620 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Utkarsh Upadhyay
Changes by Utkarsh Upadhyay : -- pull_requests: +2621 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to make test_datetime faster in master before backporting. -- ___ Python tracker ___

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread Matthew Barnett
Matthew Barnett added the comment: In Unicode 9.0.0, U+1885 and U+1886 changed from being General_Category=Other_Letter (Lo) to General_Category=Nonspacing_Mark (Mn). U+2118 is General_Category=Math_Symbol (Sm) and U+212E is General_Category=Other_Symbol (So). \w doesn't include Mn, Sm or So.

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Another example (I checked, all tests are run except of test_weakref): http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/148/steps/test/logs/stdio ... 0:05:30 [400/403] test_file_eintr passed 0:05:30 [401/403] test_glob passed 0:05:54

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: The problem are the 3 tests of test_weakref which uses collect_in_thread(): * test_threaded_weak_valued_setdefault(): 50k iterations * test_threaded_weak_valued_pop(): 50k iterations * test_threaded_weak_valued_consistency(): 200k iterations On my Linux with Py

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2622 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: On Python 3, time.sleep(seconds) rounds seconds towards +Infinity: see bpo-22117, commot cb29f0177c91ebb739b89d8cc4ba223785c94d61. time.sleep(0.0001) sleeps 15.6 ms on Windows. On Python 2.7, time.sleep(seconds) rounds towards zero. time.sleep(0.0001) sleeps

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: @Antoine: Another example of performance issue caused by rounding ;-) See also my article on pytime and timestamp rounding, https://haypo.github.io/pytime.html -- ___ Python tracker

[issue30842] pyenv activate for bash and tcsh

2017-07-03 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue30843] Lib/test/site.py conflicts with Lib/site.py when running tests

2017-07-03 Thread STINNER Victor
New submission from STINNER Victor: I added Lib/test/bisect.py in the commit d7955b8196578306e9d86f6c61c9cb3ee72edab0, bpo-29512. When a test is loaded by Lib/test/regrtest.py when regrtest.py runs with "python -m test", test files like Lib/test/test_bisect.py are created with __package__ = [

[issue30843] [2.7] Lib/test/site.py conflicts with Lib/site.py when running tests

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- title: Lib/test/site.py conflicts with Lib/site.py when running tests -> [2.7] Lib/test/site.py conflicts with Lib/site.py when running tests ___ Python tracker _

[issue20692] Tutorial and FAQ: how to call a method on an int

2017-07-03 Thread Jakub Stasiak
Changes by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20692] Tutorial and FAQ: how to call a method on an int

2017-07-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Sreepriya Chalakkal, Would you be able to prepare a pull request on GitHub for your patch? Thanks! -- nosy: +csabella ___ Python tracker ___

[issue16328] win_add2path.py sets wrong user path

2017-07-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Any interest in making a PR for this patch? -- nosy: +csabella ___ Python tracker ___ ___ Python-bug

[issue12910] urrlib.quote quotes too many chars, e.g., '()'

2017-07-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Issue 16285 updated the urllib.parse.quote() reserved list to add '~'. >From the docstring: def quote(string, safe='/', encoding=None, errors=None): """quote('abc def') -> 'abc%20def' Each part of a URL, e.g. the path info, the query, etc., has a di

[issue16328] win_add2path.py sets wrong user path

2017-07-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue6691] Support for nested classes and function for pyclbr

2017-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 246ff3bd00f97658e567a7087645a6b76e056491 by terryjreedy (csabella) in branch 'master': bpo-6691: Pyclbr now reports nested classes and functions. (#2503) https://github.com/python/cpython/commit/246ff3bd00f97658e567a7087645a6b76e056491 -

[issue6691] Support for nested classes and function for pyclbr

2017-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Test_pyclbr could improve. There are notes on the PR for a new issue for that. If I find that further change is needed after applying to IDLE's module browser, #1612262, that will be another new issue. -- resolution: -> fixed stage: test needed -> r

[issue30790] Can't use proxy to connect internet on windows

2017-07-03 Thread Wu Zongyong
Changes by Wu Zongyong : -- pull_requests: +2623 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2624 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since nobody has provided a patch I have made it myself. -- stage: needs patch -> patch review ___ Python tracker ___

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2625 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2626 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue25497] Rewrite test_robotparser

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2627 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bebd2cfa5f21811dd0ee4f3b1a1b85d379b83436 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30441: Fix bug when modifying os.environ while iterating over it (GH-2409). (#2556) https://github.com/python/cpython/commit/bebd2cfa5f21811dd0ee4f3b1a1b85d

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1a3bc5546aa27f01426ad76618a9b2c3b698ae68 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30441: Fix bug when modifying os.environ while iterating over it (GH-2409). (#2557) https://github.com/python/cpython/commit/1a3bc5546aa27f01426ad76618a9b2c

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Osvaldo. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue23835] configparser does not convert defaults to strings

2017-07-03 Thread James Tocknell
Changes by James Tocknell : -- pull_requests: +2628 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-07-03 Thread Glyph Lefkowitz
Changes by Glyph Lefkowitz : -- nosy: +glyph status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-07-03 Thread Glyph Lefkowitz
Changes by Glyph Lefkowitz : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 48350412b70c76fa51f488cfc736c80d59b5e8eb by Antoine Pitrou in branch 'master': bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` (#2480) https://github.com/python/cpython/commit/48350412b70c76fa51f488cfc736c80d59b5e8eb --

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-07-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

<    1   2