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

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

2019-05-07 Thread Daniel Fortunov
New submission from Daniel Fortunov : Unit tests of `str` and related types (e.g. `UserString`) contain nomenclature and structure that dates back to the Python 2 distinction between `str` and `unicode`. Previously it was undesirable to disturb the structure of these tests too much as this

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

2019-05-07 Thread SilentGhost
Change by SilentGhost : -- components: +Tests -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +13065 stage: needs patch -> patch review ___ Python tracker ___

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-07 Thread PrzemeK
PrzemeK added the comment: Yep, it was 3.4 then... but I think problem still exists tl;dr: For abstract sockets (only?) filling struct with zeros is meaningful. long: * Python (cli) -> Python (srv) = works * C (cli) -> C (srv) = works * C (cli) -> Python (srv) = does NOT work * Python (cli)

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

2019-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is still the functionality common to str, bytes and bytearray. So it make sense to have the common class for testing str, bytes, bytearray and UserList and other common class (subclass of the former one) for testing str and UserList. --

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-07 Thread PrzemeK
PrzemeK added the comment: Gist: https://gist.github.com/soutys/ffbe2e76a86835a9cc6b More: Padding `sun_path` with zeros for python cli code: ... client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) client.connect("\0/var/tmp/sock.tmp" + "\0" * 90) ... gives strace like: ...

[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

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

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25990/pec39.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25988/pec37.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25987/pec36.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25991/pec40.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25993/pec42.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25992/pec41.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25989/pec38.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25994/pec43.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

[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

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

2019-05-07 Thread SilentGhost
Change by SilentGhost : -- nosy: +giampaolo.rodola, tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25995/pec44.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file26000/pec48.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25997/pec46.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25998/pec47.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25996/pec45.html ___ Python tracker ___ ___ Python-bugs-list mailing list

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

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25984/pec33.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : Removed file: https://bugs.python.org/file25986/pec35.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1054] scriptsinstall target fails in alternate build dir

2019-05-07 Thread SilentGhost
Change by SilentGhost : -- Removed message: https://bugs.python.org/msg341492 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1054] scriptsinstall target fails in alternate build dir

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

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

2019-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4981 LGTM (except that it would be worth to add the author's name in the NEWS entry). It is sad that it was not reviewed for 2 years and is closed now. -- ___ 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

[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

[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

[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

[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

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

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

[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

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

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

[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

[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

[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

[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

[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
Change by Hans Ginzel : -- title: Cannot install et_xmlfile -> Cannot install et-xmlfile ___ Python tracker ___ ___

[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

[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

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

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

[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

[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 miss-islington
Change by miss-islington : -- pull_requests: +13068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

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

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

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

[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

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

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

[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

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

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

[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

[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

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

[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

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

[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

[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

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

[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

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

[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

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

[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

[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

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

[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

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

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

[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

[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
Change by Jason R. Coombs : -- components: +Library (Lib) type: -> enhancement versions: +Python 3.8 ___ Python tracker ___ ___

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

[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

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

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

[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

[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

[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

  1   2   3   >