[issue35832] Installation error

2019-03-12 Thread Steve Dower
Steve Dower added the comment: Closing due to no response. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue35944] Python 3.7 install error

2019-03-12 Thread Steve Dower
Steve Dower added the comment: Closing due to no response -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue30040] new empty dict can be more small

2019-03-12 Thread Mark Shannon
Mark Shannon added the comment: Serhiy, for {'a': None} the dict is created using _PyDict_NewPresized() so this makes no difference. -- ___ Python tracker ___ ___

[issue36085] Enable better DLL resolution

2019-03-12 Thread Eryk Sun
Eryk Sun added the comment: Okay. Sorry for adding noise. My mental hiccup was in thinking it would continue to use LOAD_WITH_ALTERED_SEARCH_PATH in conjunction with SetDefaultDllDirectories: LOAD_LIBRARY_SEARCH_DEFAULT_DIRS. I forgot that it's documented that they shouldn't be combined. Ins

[issue36274] http.client cannot send non-ASCII request lines

2019-03-12 Thread Tim Burke
New submission from Tim Burke : While the RFCs are rather clear that non-ASCII data would be out of spec, * that doesn't prevent a poorly-behaved client from sending non-ASCII bytes on the wire, which means * as an application developer, it's useful to be able to mimic such a client to verify

[issue36229] Linear-time list, set, and bytearray ops.

2019-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I intend to make a python-dev post about this so we can decide whether to move forward or not. For now, here are a few thoughts: * Something like this was implemented for strings as an effort to mitigate the harm from a common mistake of using chained a

[issue36229] Linear-time list, set, and bytearray ops.

2019-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Binary operations on collections are, in general, of quadratic complexity. BTW, this seems like drastic mischaracterization, making it seem like something is wrong with the containers. It is more accurate to say that an uncommon user pattern of repeate

[issue36085] Enable better DLL resolution

2019-03-12 Thread Steve Dower
Steve Dower added the comment: Actually, CFFI is probably going to be most affected. Who do we know from that project who should be nosied on this? -- ___ Python tracker ___

[issue36216] urlsplit does not handle NFKC normalization

2019-03-12 Thread Steve Dower
Steve Dower added the comment: New changeset 507bd8cde60ced74d13a1ffa883bb9b0e73c38be by Steve Dower in branch '2.7': [3.7] bpo-36216: Only print test messages when verbose (GH-12291) https://github.com/python/cpython/commit/507bd8cde60ced74d13a1ffa883bb9b0e73c38be -- _

[issue36085] Enable better DLL resolution

2019-03-12 Thread mattip
mattip added the comment: I have left a note for arigato, but why is CFFI different than ctypes or c-extension modules? All will need adjustment. -- ___ Python tracker ___ __

[issue36256] parser module fails on legal input

2019-03-12 Thread Brett Cannon
Brett Cannon added the comment: @Xavier different needs; AST and CST are at different stages of compilation. -- ___ Python tracker ___

[issue36085] Enable better DLL resolution

2019-03-12 Thread Steve Dower
Steve Dower added the comment: It's different from ctypes because I can update ctypes as part of this change :) The reason it matters is that it's basically a wrapper around LoadLibrary, and that's what is going to change here. Hopefully we won't cause too much trouble for their users.

[issue36229] Linear-time list, set, and bytearray ops.

2019-03-12 Thread Tim Peters
Tim Peters added the comment: I'm at best -0 on this, and on the edge of -1. We already supply mutate-in-place operations for when this is wanted, and, e.g., for lists, it's as dead easy to spell as L1 += L2 Half the point of the hack for string catenation was that the similar-looking

[issue36216] urlsplit does not handle NFKC normalization

2019-03-12 Thread Steve Dower
Steve Dower added the comment: Hah, I typo'd the commit message and marked it as 3.7 instead of 2.7. Oh well. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue30040] new empty dict can be more small

2019-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Some of my thoughts on this. Conceptually, I expected that clearing a normal dict should make it an empty normal dict. I presume that making it instead an empty shared key dict is a matter of efficiency and code simplicity. If the 'anomaly' is to be correc

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2019-03-12 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36264] os.path.expanduser should not use HOME on windows

2019-03-12 Thread Steve Dower
Steve Dower added the comment: New changeset 8ef864d50fb847cf15d5717c0db04fd60fb13d8d by Steve Dower in branch 'master': bpo-36264: Updates documentation for change to expanduser on Windows (GH-12294) https://github.com/python/cpython/commit/8ef864d50fb847cf15d5717c0db04fd60fb13d8d

[issue36264] os.path.expanduser should not use HOME on windows

2019-03-12 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2019-03-12 Thread Caleb Donovick
Caleb Donovick added the comment: In my mind this seems like a bug. PEP 3115 states: ''' __prepare__ returns a dictionary-like object which is used to store the class member definitions during evaluation of the class body. In other words, the class body is evaluated as a function block (just

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +12274 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Steve, thanks for the suggestions. Looking at the other tests, `test_prompt` was the only one (prior to the original change) that didn't create a venv, so maybe actually creating the venv instead of just instantiating the class were testing that everything

[issue30040] new empty dict can be more small

2019-03-12 Thread Inada Naoki
Inada Naoki added the comment: On Wed, Mar 13, 2019 at 4:46 AM Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > I hate to see you working so hard to make this work. IMO, the effort is > futile. Dicts were intentionally designed to do a single memory allocation > and m

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-12 Thread Steve Dower
Steve Dower added the comment: The PR looks good to me. Are you able to test this test running from in a venv? I'm not at all clear why it would work there when the others fail (there's another issue looking at this, since it's only Linux that doesn't support venv-in-venv, but the tests are

[issue36174] Remove licenseUrl field from nuget packages

2019-03-12 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12275 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36174] Remove licenseUrl field from nuget packages

2019-03-12 Thread Steve Dower
Steve Dower added the comment: New changeset 26c910c59c47bdef4220c34e66c45a625bda5e56 by Steve Dower in branch 'master': bpo-36174: Update nuget authoring for new license field. (GH-12300) https://github.com/python/cpython/commit/26c910c59c47bdef4220c34e66c45a625bda5e56 --

[issue36174] Remove licenseUrl field from nuget packages

2019-03-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +12276 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36275] DOC: venv.create doesn't include prompt parameter

2019-03-12 Thread Cheryl Sabella
New submission from Cheryl Sabella : In the documentation for the `venv` module, there is a module-level convenience function for `create` which is missing the `prompt` parameter and the version added directive. venv.create(env_dir, system_site_packages=False, clear=False, symlinks=False, wi

[issue36174] Remove licenseUrl field from nuget packages

2019-03-12 Thread Steve Dower
Steve Dower added the comment: I'll do the 2.7 backport later (hopefully tomorrow, maybe?). Need to spin up my build machine for it. We currently don't include the license directly in the 2.7 nuget packages, so there's a slightly bigger chance required (hopefully only a line or two, but it

[issue36174] Remove licenseUrl field from nuget packages

2019-03-12 Thread miss-islington
miss-islington added the comment: New changeset ada2e379738bc0eca6ec030a4a573aa7b98faf78 by Miss Islington (bot) in branch '3.7': bpo-36174: Update nuget authoring for new license field. (GH-12300) https://github.com/python/cpython/commit/ada2e379738bc0eca6ec030a4a573aa7b98faf78 --

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Steve. The venv tests run for me from inside a venv on Windows 10 from a command prompt. From Powershell, all the tests fail with the following when run from inside a venv: FileNotFoundError: [Errno 2] No such file or directory: 'N:\\projects\\cpyth

[issue36085] Enable better DLL resolution

2019-03-12 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12277 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 839b925f6347222de560cdb767924c502b4039aa by Cheryl Sabella in branch 'master': bpo-35661: Fix failing test on buildbot (GH-12297) https://github.com/python/cpython/commit/839b925f6347222de560cdb767924c502b4039aa -- ___

[issue35132] python-gdb error: Python Exception Type does not have a target

2019-03-12 Thread Dylan Cali
Dylan Cali added the comment: Thank you! And thank you Lisa Roach for the investigation and fix. -- ___ Python tracker ___ ___ Pyt

[issue35661] Store the venv prompt in pyvenv.cfg

2019-03-12 Thread Steve Dower
Steve Dower added the comment: Yeah, that failure on Windows is due to not correctly detecting a venv made from a build tree, rather than a venv from a proper install. I have a fix for that in the other bug. If it got that far, it means it used the correct prefix path, so it'll be fine. ---

[issue36085] Enable better DLL resolution

2019-03-12 Thread Steve Dower
Steve Dower added the comment: PR has been posted, but it's incomplete (docs, news, etc.) And unfortunately longer than I'd hoped, since we have to use GetProcAddress for these function on Windows 7 still (even if it has the required update), but since it's coming from kernel32 (which is alw

[issue36157] Document PyInterpreterState_Main().

2019-03-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36276] Python urllib CRLF injection vulnerability

2019-03-12 Thread ragdoll
New submission from ragdoll : Abstract: A CRLF injection vulnerability of Python built-in urllib module (“urllib2” in 2.x,”urllib” in 3.x) was found by our team. Attacker who has the control of the requesting address parameter, could exploit this vulnerability to manipulate a HTTP header and a

[issue36277] pdb's recursive debug command is not listed in the docs

2019-03-12 Thread Antony Lee
New submission from Antony Lee : pdb's recursive debug command (mentioned e.g. in https://bugs.python.org/issue35931) is not listed in https://docs.python.org/3/library/pdb.html#debugger-commands. (I haven't checked whether any other command is missing.) -- assignee: docs@python compo

[issue36276] Python urllib CRLF injection vulnerability

2019-03-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue30458#msg295067 -- nosy: +martin.panter, orsenthil, xtreak ___ Python tracker ___ ___

[issue36278] Truncate method

2019-03-12 Thread Cavad Salmanov
New submission from Cavad Salmanov : I created a new file for researching truncate() method. and I writed this text: alma armud heyva nar qarpiz yemis I wanted to delete all the text apart from first line by truncate method. I writed these codes on python idle: ___

[issue36278] Truncate method

2019-03-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a similar report to issue26158 where truncate refers to the position of the underlying buffer and could be documented better. -- nosy: +serhiy.storchaka, xtreak ___ Python tracker

[issue36252] update to Unicode 12

2019-03-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: msg318935 is still true. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36279] os.wait3() leaks some uninitialized stack when no processes exist

2019-03-12 Thread David Wilson
New submission from David Wilson : Not sure if this is worth reporting.. p = os.popen('sleep 1234') os.wait3(os.WNOHANG) os.wait3(os.WNOHANG) os.wait3(os.WNOHANG) Notice struct rusage return value. When wait3() succeeds on Linux, but no child was waiting to be reaped, &ru is not updated by th

[issue36278] Truncate method

2019-03-12 Thread Josh Rosenberg
Change by Josh Rosenberg : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> File truncate() not defaulting to current position as documented ___ Python tracker _

[issue35647] Cookie path check returns incorrect results

2019-03-12 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36279] os.wait3() leaks some uninitialized stack when no processes exist

2019-03-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12278 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36280] Add kind field to ast.Constant, to distinguish u"..." from "..." for type checkers

2019-03-12 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +12279 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36280] Add kind field to ast.Constant, to distinguish u"..." from "..." for type checkers

2019-03-12 Thread Guido van Rossum
Change by Guido van Rossum : -- assignee: gvanrossum nosy: gvanrossum priority: normal severity: normal status: open title: Add kind field to ast.Constant, to distinguish u"..." from "..." for type checkers type: behavior versions: Python 3.8 ___ Py

[issue36280] Add kind field to ast.Constant, to distinguish u"..." from "..." for type checkers

2019-03-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Maybe use a special subclass of Constant for indicating string literals with the "u" prefix? -- nosy: +serhiy.storchaka ___ Python tracker _

[issue36260] Cpython/Lib vulnerability found and request a patch submission

2019-03-12 Thread KunYu Chen
KunYu Chen added the comment: Thank you Karthikeyan Singaravelan. We're working on it :D Kunyu Chen -- ___ Python tracker ___ ___

[issue35647] Cookie path check returns incorrect results

2019-03-12 Thread Larry Hastings
Larry Hastings added the comment: You should not assign bugs to the RM who will merge the PR. -- assignee: larry -> ___ Python tracker ___ ___

[issue36276] Python urllib CRLF injection vulnerability

2019-03-12 Thread Alvin Chang
Alvin Chang added the comment: I am also seeing the same issue with urllib3 import urllib3 pool_manager = urllib3.PoolManager() host = "localhost:?a=1 HTTP/1.1\r\nX-injected: header\r\nTEST: 123" url = "http://"; + host + ":8080/test/?test=a" try: info = pool_manager.request('GET',

[issue36085] Enable better DLL resolution

2019-03-12 Thread Eryk Sun
Eryk Sun added the comment: > Since I just dug enough to find it, the best way to diagnose problems > with dependent DLLs not being found is probably to run Process Monitor > [1] while doing the import and checking its logs. It should show the > paths that were attempted to be accessed. Don

<    1   2