[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: test_b

[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: https://buildbot.python.org/all/#/builders/265/builds/12

[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 -- _

[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 is

[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 Unsubsc

[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. -- components

[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 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

[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 readabili

[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 https://discuss.python.org/c/u

[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

[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 comp

[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 ___ __

[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

[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. The

[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 Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[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: Unex

[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 f

[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

[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 --

[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
Change by STINNER Victor : -- pull_requests: +15895 pull_request: https://github.com/python/cpython/pull/16313 ___ Python tracker ___ __

[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: https:/

[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) https://github.com/python/cpython/commit/9f3dcf802eefeb5ab821ce3c7204ab46557d53d

[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 ___

[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

[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: https://ma

[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

[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: htt

[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 ___ ___ Python

[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 _

[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 describ

[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). --

[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 <," e

[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 __

[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 ___ __

[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) https://github.com/python/cpython/commit/87d6cd360

[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: htt

[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 eq

[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 ___ ___ Python-bugs-lis

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

2019-09-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 865bb685a67798eb98dcf5f3a852e08c77792998 by Stéphane Wirtel (Lisa Roach) in branch '3.8': [3.8] bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947) (GH-16299) https://github.com/python/cpython/commit/865bb685a67798eb98dcf5f3

[issue38244] example in ftplib.rst uses ftp.debian.org but it's not reachable

2019-09-20 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : In the first example of Doc/library/ftplib.rst, we use ftp.debian.org but the connection is refused. There is no automatic redirection to ftp.us.debian.org or another server. If we want to keep a consistent example, we should use ftp.us.debian.org or anoth

[issue38244] example in ftplib.rst uses ftp.debian.org but it's not reachable

2019-09-20 Thread Prateek Nayak
Change by Prateek Nayak : -- keywords: +patch pull_requests: +15896 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16319 ___ Python tracker ___ __

<    1   2