[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2019-05-07 Thread Alexey Muranov
Alexey Muranov added the comment: There were problems with the use case for mutable bases that i posted (see #36827). Here is an updated version: https://gist.github.com/alexeymuranov/04e2807eb5679ac7e36da4454a58fa7e -- ___ Python tracker

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-07 Thread Zackery Spytz
Zackery Spytz added the comment: I am working on this issue. -- nosy: +ZackerySpytz title: CLI option to make PyErr_WriteUnraisable abortthe current process -> CLI option to make PyErr_WriteUnraisable abort the current process ___ Python tracker

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Charlie Clark
Charlie Clark added the comment: This is the result \issue36792>test.exe The current locale is now: C The time zone is: 'Mitteleuropõische Sommerzeit' (28 characters) The updated locale is now: de_DE The time zone is: '' (-1 characters) NB something is wrong with that

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Jeremy Kloth
Jeremy Kloth added the comment: Final test, this time, no Python what so ever. I've added a zip containing a simple C program (source and .exe) that performs the same test. The output should be similar to: The current locale is now: C The time zone is: 'Mountain Daylight Time' (22

[issue34408] possible null pointer dereference in pystate.c

2019-05-07 Thread Mark Shannon
Mark Shannon added the comment: Any reason not to close this issue? -- nosy: +Mark.Shannon ___ Python tracker ___ ___

[issue11001] Various obvious errors in cookies documentation

2019-05-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +13080 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11001] Various obvious errors in cookies documentation

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 91cc01f40eec03ece2d6b04ad9ea786e77707d8d by Miss Islington (bot) (Julia Iliuk) in branch 'master': bpo-11001: updated cookie docs (GH-13086) https://github.com/python/cpython/commit/91cc01f40eec03ece2d6b04ad9ea786e77707d8d -- nosy:

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Charlie Clark
Charlie Clark added the comment: And this is the result. old locale: C count: 28 value: Mitteleuropäische Sommerzeit new locale: de_DE count: -1 value: Windows fatal exception: code 0xc374 Looks like print('new locale:', crt_locale._wsetlocale(0, 'de_DE')) print('count:',

[issue36817] Add = to f-strings for easier debugging.

2019-05-07 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +13079 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36828] Cannot install et-xmlfile

2019-05-07 Thread Hans Ginzel
Hans Ginzel added the comment: Thank you for suggestion. I agree. Where can I find the repo for et-xmlfile or the appropriate tracker respectively, please? I have found https://github.com/dimensions11/et_xmlfile. Is it the _master_ repo? -- ___

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan
Change by Brian Quinlan : -- assignee: -> bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22729] concurrent.futures `wait` and `as_completed` depend on private api

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: How did the experiment go? Are people still interested in this? -- ___ Python tracker ___ ___

[issue22630] `concurrent.futures.Future.set_running_or_notify_cancel` does not notify cancel

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: Ben, do you still think that your patch is relevant or shall we close this bug? -- ___ Python tracker ___

[issue36817] Add = to f-strings for easier debugging.

2019-05-07 Thread Eric V. Smith
Eric V. Smith added the comment: The most recent version of the PR 0ec4daead4d5b3c42613bd210a51da60932035f3 has the behavior without !f and auto-selecting what used to be !f. It's ready for a final review before I commit it. -- ___ Python tracker

[issue36836] Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave

2019-05-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Jeremy Kloth
Jeremy Kloth added the comment: Here is another test, this time removing Python from the equation (mostly :) import ctypes, struct crt_locale = ctypes.CDLL('api-ms-win-crt-locale-l1-1-0', use_errno=True) crt_time = ctypes.CDLL('api-ms-win-crt-time-l1-1-0', use_errno=True)

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: Do the `initializer` and `initargs` parameters deal with this use case for you? https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor -- ___ Python tracker

[issue36837] Make il8n tools available from `python -m`

2019-05-07 Thread Benjamin Kane
New submission from Benjamin Kane : Localizing a Python application involves using the `gettext` standard library module to read .mo files. There are three scripts to assist with this in https://github.com/bbkane/cpython/tree/master/Tools/i18n : - makelocalealias.py : Convert the X11

[issue36836] Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana
Change by Sanyam Khurana : -- title: Test Suite not working on 3.4 and 3.5 on MacOS Mojave -> Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave ___ Python tracker

[issue36836] Test Suite not working on 3.4 and 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana
New submission from Sanyam Khurana : I was testing this issue: https://bugs.python.org/issue10598 I checked both Python 3.4, 3.5, 3.6 and tagged commit v3.7.0 but I'm not able to run the test suite on any of them. I'm currently working on MacOS Mojave 10.14.4 I landed on issue

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 64aa6d2000665efb1a2eccae176df9520bf5f5e6 by Gregory P. Smith in branch 'master': bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704) https://github.com/python/cpython/commit/64aa6d2000665efb1a2eccae176df9520bf5f5e6 --

[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: If we supported this, aren't we promising that we will always materialize the iterator passed to map? I think that we'd need a really strong use-case for this to be worth-while. -- ___ Python tracker

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2019-05-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Serhiy: To be clear, Moritz's patch won't work if stdin/stdout are io.StringIO or the like either, since StringIO lacks a buffer attribute. Personally, I'm content to: 1. Ignore the closeability of the standard handles; that's not part of this bug, and

[issue36015] streamhandler cannot represent streams with an integer as name

2019-05-07 Thread Riccardo Magliocchetti
Riccardo Magliocchetti added the comment: Friendly ping, would be helpful to get this resolved for 3.8.0. Thanks! -- ___ Python tracker ___

[issue36737] Warnings operate out of global runtime state.

2019-05-07 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +13078 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36835] Move the warnings runtime state into per-interpreter state.

2019-05-07 Thread Eric Snow
Eric Snow added the comment: dupe of #36737 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue13824] argparse.FileType opens a file and never closes it

2019-05-07 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: For information, issue 33927 is related. I removed one of the FileType from json.tool argument parser to work around this behavior (https://github.com/python/cpython/pull/7865/files#diff-e94945dd18482591faf1e294b029a6afR44). If paul.j3 does not have his patch

[issue35224] PEP 572: Assignment Expressions

2019-05-07 Thread Chris Angelico
Change by Chris Angelico : -- pull_requests: +13077 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36835] Move the warnings runtime state into per-interpreter state.

2019-05-07 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +13076 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36835] Move the warnings runtime state into per-interpreter state.

2019-05-07 Thread Eric Snow
New submission from Eric Snow : Currently the warnings module uses runtime-global state (PyRuntimeState.warnings). That should be moved down to per-interpreter state. There are three possible places: 1. the module's "module state" 2. the module's __dict__ 3. PyInterpreterState.warnings

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Charlie Clark
Charlie Clark added the comment: print('count:', crt_time.wcsftime(wbuf, 1024, '%Z', tm)) also fails but crt_convert = ctypes.CDLL('api-ms-win-crt-convert-l1-1-0', use_errno=True) print('count:', crt_convert.mbstowcs(wbuf, buf, 1024)) seems to work okay. --

[issue13824] argparse.FileType opens a file and never closes it

2019-05-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Mitar: argparse.FileType's __call__ (which is what "parses" the argument) returns whatever open (aka io.open) returns. Basically, post-parsing, there is nothing about the result of FileType that distinguishes it from a manually opened file (or when '-' is

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Jeremy Kloth
Jeremy Kloth added the comment: You can safely execute each line individually (omitting the aforementioned count/value pairs) or depending on how the copy/paste is being done, just paste the script into a text editor (notepad) and comment out those lines. Then copy-paste that modified

[issue28795] Misleading stating, that SIGINT handler is installed by default

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 721729fca4fab9fd11861844880b3f3780015ae0 by Miss Islington (bot) in branch '3.7': bpo-28795: Signal documentation: Fix misleading statement. (GH-13121) https://github.com/python/cpython/commit/721729fca4fab9fd11861844880b3f3780015ae0

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: I would say that unblock order is an implementation detail (which is unlikely be changed though). I'm biased how should we document it. Yuri, your opinion is very welcome. -- ___ Python tracker

[issue36834] mock.patch.object does not persist __module__ name for functions

2019-05-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess the problem is that to patch 'bar' in foo.bar the signature of bar is taken and then it's evaluated using exec [1] where the function body has _check_sig that checks for the signature during function call. _check_sig has attributes of func

[issue36812] posix_spawnp returns error when used with file_actions

2019-05-07 Thread Matthew Tanous
Matthew Tanous added the comment: Your example is an attempt to use Popen to run a file you don't have execute permissions for. In my example, it is not `whoami` that it is failing to create/open, but '.tmp/temp_file'. I would expect a `PermissionError: [Errno 13] Permission denied:

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Jeremy Kloth
Jeremy Kloth added the comment: Thanks for your patience with this Charlie, but please try another run this time without the strftime() and mbstowcs() calls. Honest, we are getting closer! -- ___ Python tracker

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Charlie Clark
Charlie Clark added the comment: If the process crashes at the first print statement, I'm not sure how I can run the tests. Or should I try them separately? -- ___ Python tracker

[issue36656] Allow os.symlink(src, target, force=True) to prevent race conditions

2019-05-07 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Additionally, the os module is supposed to closely follow the behaviour of the underlying operating system functions: https://docs.python.org/3/library/os.html > The design of all built-in operating system dependent modules of Python is > such that as

[issue28795] Misleading stating, that SIGINT handler is installed by default

2019-05-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +13075 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28795] Misleading stating, that SIGINT handler is installed by default

2019-05-07 Thread Julien Palard
Julien Palard added the comment: New changeset e85ef7a7eacdef2f43e6bf2e67f335100e7ef2da by Julien Palard in branch 'master': bpo-28795: Signal documentation: Fix misleading statement. (GH-13121) https://github.com/python/cpython/commit/e85ef7a7eacdef2f43e6bf2e67f335100e7ef2da --

[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Thomas Grainger
Thomas Grainger added the comment: > this option should be used exclusively for debugging user extension modules. I have a very large codebase that fires the odd ResourceWarning, and after fixing them all I'd like to ensure that they do not reoccur. When using `-W error` it still won't fail

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28795] Misleading stating, that SIGINT handler is installed by default

2019-05-07 Thread Julien Palard
Julien Palard added the comment: Thanks for reporting Jan! It's finally merged \o/ -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7e200e0763f5b71c199aaf98bd5588f291585619 by Gregory P. Smith (Miro Hrončok) in branch '3.7': bpo-30458: Disallow control chars in http URLs. (GH-12755) (GH-13154)

[issue28795] Misleading stating, that SIGINT handler is installed by default

2019-05-07 Thread Julien Palard
Change by Julien Palard : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36783] No documentation for _FromXandFold C API functions

2019-05-07 Thread miss-islington
miss-islington added the comment: New changeset 146010ea42fb949a48a1b79a13503995a5176833 by Miss Islington (bot) in branch '3.7': bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold (GH-13147)

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Let it be known that the author of PR 4981 is known as vaultah. He/she personally closed the pull request this morning stating a lack of need to be recognized for the work. Per his/her instructions I am reviewing the changes and incorporating in our

[issue33153] interpreter crash when multiplying large tuples

2019-05-07 Thread Mark Shannon
Mark Shannon added the comment: I can't reproduce on 2.7.15rc1 on an x64 machine. Can you confirm that this is still an issue? -- nosy: +Mark.Shannon ___ Python tracker ___

[issue36783] No documentation for _FromXandFold C API functions

2019-05-07 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: If I read the Licensing section into the devguide, a contributor (me, your, etc..) has to sign the CLA. https://devguide.python.org/pullrequest/#cla "To accept your change we must have your formal approval for distributing your work under the PSF

[issue36783] No documentation for _FromXandFold C API functions

2019-05-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +13073 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28866] Type cache is not correctly invalidated on a class defining mro()

2019-05-07 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +13074 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36783] No documentation for _FromXandFold C API functions

2019-05-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: @edison.abahurire, thanks for the PR! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2019-05-07 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hey Ron, Friendly ping :) Can you please convert this into a pull request? -- nosy: +CuriousLearner versions: +Python 3.9 ___ Python tracker

[issue36783] No documentation for _FromXandFold C API functions

2019-05-07 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 5765ecf79fcee987f2f97c246c64b494324dfd33 by Cheryl Sabella (Edison A) in branch 'master': bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold (GH-13147)

[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: Hey Brian, I understand the non-determinism. I was wondering if you had a non-theoretical example i.e. some case where the non-determinism had impacted a real test that you wrote? -- ___ Python tracker

[issue35354] Generator functions stack overflow

2019-05-07 Thread Mark Shannon
Mark Shannon added the comment: I'm closing this as a duplicate of https://bugs.python.org/issue6028 Making a recursive call in an except block cannot be handled sensibly by the interpreter. On exceeding the stack depth, the interpreter will raise a RecursionError. Catching a

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-07 Thread Miro Hrončok
Change by Miro Hrončok : -- pull_requests: +13072 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-07 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Ok, found it, and I've now updated the github name on my bpo account. I'll gladly sign the CLA if needed, I thought it wasn't necessary for small changes based on previous experience. Please advise whether it's necessary here. --

[issue36834] mock.patch.object does not persist __module__ name for functions

2019-05-07 Thread Sam Park
New submission from Sam Park : The expectation is that the __module__ attribute for a patched function should persist after patching. Minimal test case is attached. Simply run pytest in a venv with the files. Output: def test_zxc(): with mock.patch.object(mymodule, 'asd',

[issue36780] Interpreter exit blocks waiting for futures of shut-down ThreadPoolExecutors

2019-05-07 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: > Are you interested in writing a patch? Yes - I wanted to check if there is interest in the feature before I commit time to write the patch, documentation, tests, etc. (And also I wanted to check if there's a better way to do it.) In any case, thanks for

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-07 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: How do I connect the accounts? Please note that I've previously submitted PRs which have been accepted, e.g. https://bugs.python.org/issue34476 and https://bugs.python.org/issue35465 -- ___ Python tracker

[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks like a good idea to me. But it should not be -W error. It should be an -X option, and this option should be used exclusively for debugging user extension modules. -- nosy: +vstinner ___ Python tracker

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-07 Thread Miro Hrončok
Change by Miro Hrončok : -- pull_requests: +13071 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36780] Interpreter exit blocks waiting for futures of shut-down ThreadPoolExecutors

2019-05-07 Thread Brian Quinlan
Brian Quinlan added the comment: Hey Hrvoje, I agree that #1 is the correct approach. `disown` might not be the best name - maybe `allow_shutdown` or something. But we can bike shed about that later. Are you interested in writing a patch? -- ___

[issue36817] Add = to f-strings for easier debugging.

2019-05-07 Thread Eric V. Smith
Eric V. Smith added the comment: After discussing this with Guido and Larry, we're going to go with the "implicit format mode", as outlined by Serhiy, and drop the !f feature. So the rules are: {x=} -> "x="+repr(x) {x=:.2f} -> "x="+format(x, ".2f") {x=:} -> "x="+format(x, "") {x=:!s:20} ->

[issue11107] Cache constant "slice" instances

2019-05-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Remi: The reason they're not hashable is presumably because it would make them valid dictionary keys, further confusing the difference between sequences and mappings. x[::-1] would, for a sequence, return a reversed sequence, but for a mapping, would end up

[issue36833] Add tests for Datetime C API Macros

2019-05-07 Thread Paul Ganssle
New submission from Paul Ganssle : This is a child issue for bpo 36782, specifically for testing the macro-only datetime C API functions Untested macros with no corresponding API module: - PyDateTime_GET_YEAR - PyDateTime_GET_MONTH - PyDateTime_GET_DAY - PyDateTime_DATE_GET_HOUR -

[issue36832] Port zipp to zipfile

2019-05-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +13070 stage: -> patch review ___ Python tracker ___ ___

[issue36774] f-strings: Add a !d conversion for ease of debugging

2019-05-07 Thread Eric V. Smith
Eric V. Smith added the comment: After discussing this with Guido, we're going to go with a tweaked version of the '=' version of this in issue36817. So, I'm going to close this and continue the discussion there. -- resolution: -> rejected stage: patch review -> resolved status:

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2019-05-07 Thread Julien Palard
Julien Palard added the comment: I rebased the conglomerate patch onto current master, and there's only three methods left, in floatobject.c, it's three methods inside a #if 0, it does not looks interesting to merge it (30 insertions, 12 deletions), so I'm closing this issue. --

[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-05-07 Thread Alexey Muranov
Alexey Muranov added the comment: I've noticed some faults in my code examples: `super(__class__, __class__)` instead of a more appropriate `super(__class__, cls)`, forgotten `return` before `super(__class__, self).foo(*args, **kwarg)`, maybe there are more. I cannot edit previous

[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-05-07 Thread SilentGhost
Change by SilentGhost : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-07 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13069 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36832] Port zipp to zipfile

2019-05-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- components: +Library (Lib) type: -> enhancement versions: +Python 3.8 ___ Python tracker ___ ___

[issue36832] Port zipp to zipfile

2019-05-07 Thread Jason R. Coombs
New submission from Jason R. Coombs : The [zipp package](https://pypi.org/project/zipp) implements a pathlib-compatable wrapper for zipfiles and is used by the importlib_metadata project. The port of importlib_metadata to importlib.metadata (issue34632) currently embeds that functionality,

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Please note that I am working with Erick Cervantes at PyCon2019 on this issue. -- ___ Python tracker ___

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Michael Blahay
Michael Blahay added the comment: Thank you for bringing up that PR. My team will review and try to find out why it was closed without a merge. -- ___ Python tracker ___

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-07 Thread Miro Hrončok
Miro Hrončok added the comment: I'll work on 3.7 backport. -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36831] ElementTree.find attribute matching with empty namespace

2019-05-07 Thread Steve Dower
Steve Dower added the comment: Here is a test case that fails on 3.8.0a4 and succeeds on 3.7.3: def test_find_attribute_with_empty_ns(self): NS = "http://effbot.org/ns; element = ET.fromstring(f"") self.assertIsNotNone(element.find("t:section[@id='1']", {"":NS,

[issue36817] Add = to f-strings for easier debugging.

2019-05-07 Thread Larry Hastings
Larry Hastings added the comment: > I think that !f is not needed. You can use repr by default only when > no format spec is specified, and add explicit !r if you want to use > repr with the format spec. Actually that's how !d worked. We changed the behavior because it was too "magical".

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi hniksic, Could you add your Github Account to your BPO account, without that, we can't work on your PR, and you need to sign the CLA. Thank you -- nosy: +matrixise ___ Python tracker

[issue36831] ElementTree.find attribute matching with empty namespace

2019-05-07 Thread Steve Dower
New submission from Steve Dower : I suspect this is related to the fix for issue30485, but haven't fully debugged it. In PC/layout/support/appxmanifest.py, I have code that looks up an existing element and adds it if missing: def find_or_add(xml, element, attr=None, always_add=False):

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2019-05-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: PR was merged and backported to 3.7. So I am closing this as fixed. Thanks Rémi for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Serhiy, What do you think about this idea? Normally, we could use -W error when there is an exception. -- nosy: +matrixise, serhiy.storchaka ___ Python tracker

[issue36830] Typo in collections.deque

2019-05-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @keroru, This is issue is related to the Japanese translation, not to the official documentation. Please, try to contact the translators. I am adding Julien, maybe he has the contact of the translators. -- nosy: +matrixise, mdk resolution: ->

[issue36830] Typo in collections.deque

2019-05-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thank you for the report. English translation has the following text and I guess you are right at [0] . The tracker deals with English translation. Please consider reporting this to https://github.com/python/python-docs-ja which also accepts PR.

[issue36830] Typo in collections.deque

2019-05-07 Thread keroru
New submission from keroru : https://docs.python.org/ja/3/library/collections.html#collections.deque has a typo in description of "rotate(n=1)" in Japanese. I suppose that "d.appendleft(d.popleft())" should be "d.append(d.popleft())". Thank you! -- assignee: docs@python components:

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2019-05-07 Thread Chris Withers
Chris Withers added the comment: New changeset a6516f89aa0f416c7514ac364bb48ac7d1455487 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521) (#13152)

[issue36828] Cannot install et-xmlfile

2019-05-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: et-xmlfile is not a part of CPython and this tracker is for bugs in CPython. I would suggest following up with the project repo on this and close this as third party issue. -- nosy: +xtreak ___ Python

[issue36812] posix_spawnp returns error when used with file_actions

2019-05-07 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: The error message is reporting the path. However, it is only the path component that is specified in the call to the function. This behaviour is not limited to the posix_spawnp() function but happens with any interface that can look up a command in the

[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-05-07 Thread Alexey Muranov
Alexey Muranov added the comment: Incidentally, the documentation gives the following signature of __new__: object.__new__(cls[, ...]) which suggests a variable number of arguments. -- ___ Python tracker

[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-05-07 Thread Alexey Muranov
Alexey Muranov added the comment: The issue is the following: i expect overriding a method with itself to not change behaviour of the class. I do not see how my understanding of `__new__` or its point could be relevant. Do we agree that overriding a method with itself should not change

[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-05-07 Thread SilentGhost
SilentGhost added the comment: It seems you're misunderstanding the point of __new__ and your usage of it is a bit strange. You're getting an error because you're ultimately calling object.__new__ which doesn't accept any other arguments but the class for instantiation. I'd suggest the

[issue36828] Cannot install et-xmlfile

2019-05-07 Thread Hans Ginzel
Change by Hans Ginzel : -- title: Cannot install et_xmlfile -> Cannot install et-xmlfile ___ Python tracker ___ ___

[issue36829] CLI option to make PyErr_WriteUnraisable abortthe current process

2019-05-07 Thread Thomas Grainger
New submission from Thomas Grainger : Currently it's quite easy for these errors to go unnoticed. I'd like a way to easily detect these in CI. nedbat suggested piping the process output to another tool, and looking for 'Exception ignored in:' but this seems a little diff --

[issue36828] Cannot install et_xmlfile

2019-05-07 Thread Hans Ginzel
New submission from Hans Ginzel : See attached log file, please. How to reproduce: rem Download https://www.python.org/ftp/python/3.7.3/python-3.7.3-embed-amd64.zip mkdir C:\Tools\Python unzip python-3.7.3-embed-amd64.zip -d C:\Tools\Python\3.7.3 path

<    1   2   3   >