[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Ammar! Nice work! -- ___ Python tracker ___ ___

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW "assertMultiSetEqual" may be better than "assertPermutation". The issue with the latter is that distinct but equal values may appear on both sides, so it isn't really a permutation. # These don't look like permutations at all # but they are

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: +1 -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread miss-islington
miss-islington added the comment: New changeset 87d6cd3604e5c83c06339276228139f5e040b0e7 by Miss Islington (bot) (Ammar Askar) in branch 'master': bpo-38237: Make pow's arguments have more descriptive names and be keyword passable (GH-16302)

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Ammar -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There is a policy to report security vulnerabilities in CPython : https://www.python.org/news/security/. -- nosy: +xtreak ___ Python tracker

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-20 Thread longwenzhang
New submission from longwenzhang : It's "Lib/DocXMLRPCServer.py" in python2x or "Lib/xmlrpc/server.py" in python3x. Steps to reproduce: 1.Lib/DocXMLRPCServer.py is “a documenting XML-RPC Server“,In the Class ServerHTMLDoc, method markup(), will escape the Special symbols to safe(such as <,"

[issue38241] Pickle with protocol=0 in python 3 does not produce a 'human-readable' format

2019-09-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: I'll note, the same bug appears in Python 2, but only when pickling bytearray; since bytes in Python 2 is just a str alias, you don't see this misbehavior with it, only with bytearray (which is consistently incorrect/non-ASCII on both 2 and 3). --

[issue38241] Pickle with protocol=0 in python 3 does not produce a 'human-readable' format

2019-09-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: This seems like a bug in pickle; protocol 0 is *defined* to be ASCII compatible. Nothing should encode to a byte above 0x7f. It's not actually supposed to be "human-readable" (since many ASCII bytes aren't printable), so the docs should be changed to

[issue38231] Documentation search results focus on tutorials and not language specifications

2019-09-20 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Docs search should prominently show definitions and glossary items ___ Python tracker

[issue38230] A Path Traversal vulnerability in test/ssl_servers.py

2019-09-20 Thread longwenzhang
longwenzhang added the comment: It seems to be only used in test. Does it need to be repaired? -- ___ Python tracker ___ ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38231] Documentation search results focus on tutorials and not language specifications

2019-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: But in your response, please delete the message you are responding to (except possibly a line or two). -- nosy: +terry.reedy ___ Python tracker

[issue38195] A bug in the multiprocessing module

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you mean that the crash no longer occurs with current 3.8.b4+ in the repository, then you should close as 'out-of-date. -- nosy: +terry.reedy ___ Python tracker

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: > When calling Py_SetPath(), the value that is passed in is ignored. I fixed this regression. Thanks for the bug report. -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9f3dcf802eefeb5ab821ce3c7204ab46557d53d7 by Victor Stinner in branch '3.8': [3.8] bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298) (GH-16313)

[issue38242] Revert the new asyncio Streams API

2019-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15895 pull_request: https://github.com/python/cpython/pull/16313 ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +15894 pull_request: https://github.com/python/cpython/pull/16312 ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset e267793aa4101b2771ed0e66aaff5743d23f59af by Victor Stinner in branch 'master': bpo-38234: Fix PyConfig_Read() when Py_SetPath() was called (GH-16298) https://github.com/python/cpython/commit/e267793aa4101b2771ed0e66aaff5743d23f59af --

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-20 Thread Tim Burke
Tim Burke added the comment: Something like this for 3.7, say? I should probably go add some tests in test_httplib.py (for example, to demonstrate that http.client can still send a raw #, even if urllib appropriately drops the fragment), but I wanted some feedback on whether this is even an

[issue38242] Revert the new asyncio Streams API

2019-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yury asked me to weigh in here, since I guess between him and Andrew there's some uncertainty about whether reverting is the right choice or not. I can't answer that, but I can share some thoughts. Unfortunately, I wasn't aware of the Stream PR when it was

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: Similar issue on AMD64 Fedora Stable LTO 3.8: https://buildbot.python.org/all/#/builders/235/builds/2 -- title: test_gdb fails on AMD64 RHEL8 LTO 3.x: Unexpected gdb output -> test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x:

[issue38242] Revert the new asyncio Streams API

2019-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset c422167749f92d4170203e996a2c619c818335ea by Victor Stinner in branch 'master': bpo-38234: Remove _PyPathConfig.dll_path (GH-16307) https://github.com/python/cpython/commit/c422167749f92d4170203e996a2c619c818335ea --

[issue38242] Revert the new asyncio Streams API

2019-09-20 Thread Yury Selivanov
New submission from Yury Selivanov : == Context 1. Andrew and I implemented a new streaming API in asyncio 3.8. The key idea is that there's a single Stream object, combining old StreamReader & StreamWriter APIs. On top of that, `Stream.write()` and `Stream.close()` became coroutines.

[issue38241] Pickle with protocol=0 in python 3 does not produce a 'human-readable' format

2019-09-20 Thread Nicholas Neumann
New submission from Nicholas Neumann : The docs for pickle, in python 2, say that the default pickle protocol, 0, produces ASCII. In the python 3 docs, this has changed to "human-readable". While the pickle output with protocol 0 loads fine in python2, it is definitely not human-readable, as

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15893 pull_request: https://github.com/python/cpython/pull/16307 ___ Python tracker ___

[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?

2019-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: > If a python piece of code imports cython code with async defs, > `asyncio.iscoroutinefunction` cannot determine that the code is async. Well, this seems to be a regression. IIRC Cython used to emulate a Python code object (__code__) for functions it

[issue22213] Make pyvenv style virtual environments easier to configure when embedding Python

2019-09-20 Thread PyScripter
PyScripter added the comment: To Victor: So how does the implementation of PEP-587 help configure embedded python with venv? It would be great help to provide some minimal instructions. -- nosy: +pyscripter ___ Python tracker

[issue37812] Make implicit returns explicit in longobject.c (in CHECK_SMALL_INT)

2019-09-20 Thread Kyle Stanley
Kyle Stanley added the comment: > You can find my email in Git, and I'm on Zulip and Discourse; and I'd be > happy to start or follow a thread in a forum you think appropriate. Or if > you'd rather drop it entirely, that's fine too. I think opening a thread in

[issue35696] remove unnecessary operation in long_compare()

2019-09-20 Thread Ma Lin
Ma Lin added the comment: > I'd fix them, but I'm not sure if we are going to restore CHECK_SMALL_INT() > ¯\_(ツ)_/¯ I suggest we slow down, carefully sort out the recent commits for longobject.c: https://bugs.python.org/issue37812#msg352837 Make the code has consistent style, better

[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: Hey Vitaly, not sure if you're the author of the original bug here: https://bugs.python.org/issue27071 Could you re-open that so the discussion is kept in one place. -- nosy: +ammar2 ___ Python tracker

[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2019-09-20 Thread Ammar Askar
Change by Ammar Askar : -- resolution: -> duplicate stage: -> resolved superseder: -> unittest.TestCase.assertCountEqual is a very misleading name type: -> behavior ___ Python tracker

[issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

2019-09-20 Thread Vitaly Kruglikov
New submission from Vitaly Kruglikov : assertCountEqual is a horribly misleading name because it misleads the programmer and reader of the test code into thinking that it only compares the counts of the elements. It's name misrepresents what it does in a really bad way. --

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: math.pow changes removed from PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: > I think this is a false dichotomy; in > https://bugs.python.org/issue36274#msg351834 Jason proposed a few > alternatives that allow for a secure and obvious default API while adding a > new, explicitly unsafe API. I'm not against that concept, but it

[issue38205] Py_UNREACHABLE() no longer behaves as a function call

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 245d439320e0921459502883fe809213e3b93e35 by Victor Stinner in branch '3.8': bpo-38205: Py_UNREACHABLE() calls Py_FatalError() (GH-16290) (GH-16306) https://github.com/python/cpython/commit/245d439320e0921459502883fe809213e3b93e35 --

[issue38239] test_gdb fails on AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: Similar errors on: AMD64 RHEL8 LTO + PGO 3.7: https://buildbot.python.org/all/#/builders/255/builds/13 AMD64 RHEL8 LTO 3.7: https://buildbot.python.org/all/#/builders/293/builds/13 AMD64 RHEL8 LTO 3.8:

[issue38239] test_gdb fails on AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-20 Thread STINNER Victor
New submission from STINNER Victor : AMD64 RHEL8 LTO 3.x: https://buildbot.python.org/all/#/builders/312/builds/4 FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests) FAIL: test_NULL_ptr (test.test_gdb.PrettyPrintTests) FAIL: test_builtin_method (test.test_gdb.PrettyPrintTests) FAIL:

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: Before == >python -m pyperf timeit "pow(2, 3)" --duplicate 10 Mean +- std dev: 242 ns +- 19 ns > python -m pyperf timeit "pow(2.0, 3.0)" --duplicate 10 Mean +- std dev: 197 ns +- 16 ns After = > python -m pyperf timeit "pow(2, 3)" --duplicate

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -14161 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13660 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -15156 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -10267 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13654 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread miss-islington
miss-islington added the comment: New changeset b50edac42fd39d58ba51eb9cee2d3645a2e28ca4 by Miss Islington (bot) in branch '3.8': bpo-33694: Remove test_asyncio ProactorDatagramTransportTests (GH-16288) https://github.com/python/cpython/commit/b50edac42fd39d58ba51eb9cee2d3645a2e28ca4

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13642 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13676 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13663 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13643 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13656 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13627 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13661 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13625 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13649 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -14111 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -12891 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13220 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38205] Py_UNREACHABLE() no longer behaves as a function call

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15892 pull_request: https://github.com/python/cpython/pull/16306 ___ Python tracker ___

[issue37857] Setting logger.level directly has no effect due to caching in 3.7+

2019-09-20 Thread Zane Bitter
Zane Bitter added the comment: In turns out that setting the level directly is used in the standard library, so we definitely have a bug here that needs fixing in 3.7 & 3.8. Obviously the fix could be just to stop doing that in the standard library, but I'd argue that this is even stronger

[issue38205] Py_UNREACHABLE() no longer behaves as a function call

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset b1542583bee204130934c2b90684041e29378250 by Victor Stinner in branch 'master': bpo-38205: Py_UNREACHABLE() calls Py_FatalError() (GH-16290) https://github.com/python/cpython/commit/b1542583bee204130934c2b90684041e29378250 --

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +15891 pull_request: https://github.com/python/cpython/pull/16305 ___ Python tracker ___

[issue25733] Code and IDLE should catch all compile errors.

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc2256ea177a653bcab15b06b5f5725b10c1fff3 by Victor Stinner in branch 'master': bpo-33694: Remove test_asyncio ProactorDatagramTransportTests (GH-16288) https://github.com/python/cpython/commit/bc2256ea177a653bcab15b06b5f5725b10c1fff3

[issue3559] IDLE: Pasted newline doesn't trigger execution when typed newline would

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue21973] IDLE: catch user cfg file error, better error message, continue

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -kbk, roger.serwy versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-20 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +15890 pull_request: https://github.com/python/cpython/pull/16304 ___ Python tracker ___

[issue28840] IDLE: Document tk's long line display limitation

2019-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE Help's newish section "User Output in Shell" makes some mention of this but a bit more is still needed. -- stage: test needed -> needs patch versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- title: Fix for issue30458 prevents crafting invalid requests -> Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests ___ Python tracker

[issue26949] IDLE restarts when one debugs code raising SystemExit

2019-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: >>> raise SystemExit does not normally cause a restart. -- nosy: -kbk, roger.serwy versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue1207613] Idle Editor: Bottom Scroll Bar

2019-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: A horizontal text bar is added to a text view as needed (recent patch) when one is used for the font sample. The latter fits or not according to the font size. The same could be used for editor, or better, editor windows could inherit from text views.

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue25244] Idle: refine right-click behavior

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And pow(2.0, 3.0) please. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you. Could you please test simpler examples like pow(2, 3)? Please use the --duplicate option. -- ___ Python tracker ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: The proposal sounds reasonable to me. > should a similar change be made for `math.pow` for consistency's sake? I'd leave math.pow alone here. -- ___ Python tracker

[issue38238] site.py reporting user site info even if ENABLE_USER_SITE=False

2019-09-20 Thread Barry Muldrey
Change by Barry Muldrey : -- keywords: +patch pull_requests: +15888 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16303 ___ Python tracker ___

[issue38238] site.py reporting user site info even if ENABLE_USER_SITE=False

2019-09-20 Thread Barry Muldrey
New submission from Barry Muldrey : site info is accessed externally via getusersitepackages() and getuserbase()... for example see "pip/_internal/locations.py" If ENABLE_USER_SITE is set to "False," or otherwise disabled, accesses to these methods should return '' or None (shouldn't they?).

[issue35696] remove unnecessary operation in long_compare()

2019-09-20 Thread Sergey Fedoseev
Sergey Fedoseev added the comment: These warnings are caused by https://github.com/python/cpython/commit/c6734ee7c55add5fdc2c821729ed5f67e237a096. I'd fix them, but I'm not sure if we are going to restore CHECK_SMALL_INT() ¯\_(ツ)_/¯ -- nosy: +sir-sigurd

[issue7897] Support parametrized tests in unittest

2019-09-20 Thread Andre Herbst
Andre Herbst added the comment: +1 for the feature Subtests make the test results of all asserts visible at test execution time but decrease the readability of a test: @parameterized([2,4,6]) def test_method_whenCalled_returnsNone(self, a): # 1) arrange something = Something()

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: Here's a little microbenchmark, let me know if there's anything specific you'd like to see: Before == > python -m pyperf timeit "from test.test_builtin import BuiltinTest; tst = > BuiltinTest()" -- "tst.test_pow()" Mean +- std dev: 3.80 us +- 0.23 us >

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use a lambda instead of partial: squared = lambda x: pow(x, 2) Proposed names look meaningful. But after adding support of keyword arguments please compare performance of the old and the new functions. I expect that the difference will be

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: I've made a PR, feel free to close it if you'd rather implement this yourself or this proposal won't be accepted :) -- ___ Python tracker ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +15887 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16302 ___ Python tracker ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: Actually quick question, should a similar change be made for `math.pow` for consistency's sake? -- ___ Python tracker ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Ammar Askar
Ammar Askar added the comment: Looks like a solid proposal, I especially like the clarity for the 3-argument call. Often beginners ask about why there's a third argument in pow especially when teaching RSA and number-theoretic stuff. Do you mind if I take this on Raymond? -- nosy:

[issue38235] Docs of logging module says argument is named "lvl". TypeError.

2019-09-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue38237] Expose meaningful keyword arguments for pow()

2019-09-20 Thread Raymond Hettinger
New submission from Raymond Hettinger : Current signature: pow(x, y, z=None, /) Proposed signature: pow(base, exp, mod=None) Benefits: * Meaningful and self-explanatory parameters in tooltips * Optionally clearer calls for the three argument form: pow(2, 5, mod=4) * More

[issue35696] remove unnecessary operation in long_compare()

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. The win32 job of Azure Pipelines now logs a compiler warning: Objects\longobject.c(412,5): warning C4244: 'function': conversion from 'unsigned long' to 'sdigit', possible loss of data Objects\longobject.c(420,5): warning C4244:

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: > user site = 1 > import site = 1 I'm not sure that dumping these configuration variables are useful to debug this very specific error: "Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding" They only have an

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: Without my change: --- vstinner@apu$ PYTHONHOME=/xxx ./python Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +15886 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16300 ___ Python tracker ___

[issue6559] add pass_fds paramter to subprocess.Popen()

2019-09-20 Thread miss-islington
miss-islington added the comment: New changeset 77abf23c67c1a465a8899666c69f6bcd6930e003 by Miss Islington (bot) (Orivej Desh) in branch 'master': bpo-6559: Update _posixsubprocess.fork_exec doc (GH-16283) https://github.com/python/cpython/commit/77abf23c67c1a465a8899666c69f6bcd6930e003

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: > Fatal Python error: init_fs_encoding: failed to get the Python codec of the > filesystem encoding I created bpo-38236 "Dump the Python path configuration at the first import error" which should ease to debug such issues. --

[issue38216] Fix for issue30458 prevents crafting invalid requests

2019-09-20 Thread Tim Burke
Tim Burke added the comment: > Since at least one project is known to have been impacted, it's not > unreasonable to expect that more will be. I can confirm at least one other: OpenStack Swift's stable jobs have been broken by https://github.com/python/cpython/commit/bb8071a since 11 Sep;

[issue38093] Update MagicMock __aenter__ and __aexit__ to return AsyncMock's

2019-09-20 Thread Lisa Roach
Change by Lisa Roach : -- pull_requests: +15885 pull_request: https://github.com/python/cpython/pull/16299 ___ Python tracker ___

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
New submission from STINNER Victor : When Python path configuration is not properly configured, Python fails with an error looking like: --- Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized

  1   2   >