[issue36824] Refactor str tests to reflect that str and unicode are merged in Python 3

2019-05-07 Thread Daniel Fortunov
Daniel Fortunov added the comment: Agreed. This functionality is in `BaseTest` (which is the base for `CommonTest`) and I don't propose to change this. -- ___ Python tracker

[issue26278] BaseTransport.close() does not trigger connection_lost()

2019-05-07 Thread Sümer Cip
Sümer Cip added the comment: I do not know I still have the issue since I have circumvented the problem. I have been using Python3.4, I think it was one of the earliest asyncio implementations. The way it can be reproduced is as following: 1) There are lots of active TCP connections connected

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

2019-05-07 Thread Eric V. Smith
Eric V. Smith added the comment: > Except that 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. If you want to format the value without repr and the > format spec -- specify

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

2019-05-07 Thread Alexey Muranov
Alexey Muranov added the comment: IMO "overriding" a method with itself should not change the behaviour. So it seems to me that the following is a bug: class C: def __init__(self, m): print(m) class D: @staticmethod def __ne

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

2019-05-07 Thread Alexey Muranov
Alexey Muranov added the comment: Here is a use case for writable bases: https://stackoverflow.com/q/56007866 class Stateful: """ Abstract base class for "stateful" classes. Subclasses must implement InitState mixin. """ @staticmethod def __new__(cls, *args, **kwargs

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

2019-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use f'*{n=!r:30}*' if you want to format the result of the repr. In you example the format spec is applied to both the value and the literal representation of the expression. Is it an error? I do not think this is an expected behavior. If you want

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2019-05-07 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: It looks like the problem is that Thread._tstate_lock doesn't get released until Thread.join() is called. _tstate_lock is of type LockType, which has different definitions when using the threading module or the dummy_threading module. It is defined in Mod

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

2019-05-07 Thread Eric V. Smith
Eric V. Smith added the comment: > In you example the format spec is applied to both the value and the literal > representation of the expression. Is it an error? I do not think this is an > expected behavior. No, you're misreading it. I admit that my example wasn't great. Try this one: >>>

[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2019-05-07 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Hi, to make unittest more extensible and for issue 18765 (having a way to run pdb when tests fail), I would like to make TestCase aware of the command line arguments given to the TestProgram so they can adapt their behavior based on them. I suggested this ch

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

2019-05-07 Thread Charlie Clark
Change by Charlie Clark : Added file: https://bugs.python.org/file48307/WER9DB9.tmp.WERInternalMetadata.xml ___ Python tracker ___ ___ Pyth

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

2019-05-07 Thread Charlie Clark
Charlie Clark added the comment: The code crashes on this line: print('count:', crt_time.strftime(buf, 1024, b'%Z', tm)) -- Added file: https://bugs.python.org/file48306/Report.wer ___ Python tracker ___

[issue36826] ast_unparser.c doesn't handle := expressions

2019-05-07 Thread Eric V. Smith
New submission from Eric V. Smith : If either of these lines are added to test_annotations() in Lib/test/test_future.py, a SystemError will be raised: eq("(x:=10)") eq("f'{(x:=10):=10}'") Traceback (most recent call last): File "/Users/eric/local/python/cpython/Lib/test/test

[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2019-05-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +13066 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue11107] Cache constant "slice" instances

2019-05-07 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi josh.r, this may be dump but is there a reason not to make slices hashable? Couldn't they hash like a tuple (start, stop, step)? I looked around in the code, bpo and the mailing lists but could not find a reason why not, maybe it was just not useful at the t

[issue36823] shutil.copytree copies directories and files but fails with that same directory with '[Errno 1] Operation not permitted')

2019-05-07 Thread Windson Yang
Windson Yang added the comment: Just to make sure, the expected behavior would be the items should not be copied because of the permission and the error messages above, right? -- nosy: +Windson Yang ___ Python tracker

[issue11107] Cache constant "slice" instances

2019-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: To support slice constants we need to change the marshal format and introduce new version (current version is 4 and it was stable for several releases). If my memory do not betray me we already discussed this on other issue and the conclusion was that the

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -13067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue24263] unittest cannot load module whose name starts with Unicode

2019-05-07 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: I've opened a new PR at https://github.com/python/cpython/pull/13149 with the commit from https://github.com/python/cpython/pull/1338 and some additional changes to address the review comments given by serhiy.storchaka and rbcollins -- nosy: +a.badg

[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 11a8832c98b3db78727312154dd1d3ba76d639ec by Chris Withers (Rémi Lapeyre) in branch 'master': bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521) https://github.com/python/cpython/commit/11a8832c98b3db

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

2019-05-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +13068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2019-05-07 Thread Alexey Muranov
New submission from Alexey Muranov : I expect that overriding methods with themselves like in the following example should not change the behaviour of the class: class C: a = 1 def __init__(self, b): self.b = b def f(self, x): return x*self

[issue36545] Python 3.5 OOM during test_socket on make

2019-05-07 Thread Philip Deegan
Philip Deegan added the comment: This seems to be resolved on kernel 5.0.12 not it says "resource denied" and the test skips -- ___ Python tracker ___ ___

[issue36545] Python 3.5 OOM during test_socket on make

2019-05-07 Thread Philip Deegan
Change by Philip Deegan : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[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 C:\Tools\Python\3.7.3;C:\Tools\Python\3.7.3

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

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

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

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

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

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

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

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

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

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

[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

[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

[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): if

[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

[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". We

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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} -> "x

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

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

[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

[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

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

[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', side_effect=

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

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

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

[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

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

[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: @edison.abahurire, thanks for the PR! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

[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 license."

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

[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: '.tmp/

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

[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

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

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

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

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

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

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

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

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

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

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

  1   2   3   >