[issue41915] unittest.mock.create_autospec(Obj, instance=True) has self keyword in _spec_signature if Obj implements __call__

2020-12-04 Thread Pierre Ossman
Pierre Ossman added the comment: autospec's behaviour for methods is currently needed to work around Issue42556, so be careful with any fixes here so they don't break that workaround. -- nosy: +CendioOssman ___ Python tracker

[issue26582] asyncio documentation links to wrong CancelledError

2020-12-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Moreover, the issue is outdated. asyncio.CancelledError is not an alias of concurrent.futures.CancelledError starting from Python 3.8 Unfortunately, we should make this not 100% backward compatible change. -- nosy: +asvetlov ___

[issue26582] asyncio documentation links to wrong CancelledError

2020-12-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42566] Clearing stack frame of suspended coroutine causes coroutine to malfunction

2020-12-04 Thread zerotypic
New submission from zerotypic : When a stack frame belonging to a coroutine that is currently suspended is cleared, via the frame.clear() function, the coroutine appears to stop working properly and hangs forever pending some callback. I've put up an example program that exhibits this problem

[issue36094] When using an SMTP SSL connection,, get ValueError.

2020-12-04 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +22503 pull_request: https://github.com/python/cpython/pull/23635 ___ Python tracker ___ ___

[issue42246] Implement PEP 626

2020-12-04 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +22504 pull_request: https://github.com/python/cpython/pull/23636 ___ Python tracker ___

[issue42461] os.statvfs_result doesn't show f_fsid

2020-12-04 Thread haoyixing
haoyixing <359062...@qq.com> added the comment: hi christian, is there any future suggestions? -- ___ Python tracker ___ ___ Python-

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22505 pull_request: https://github.com/python/cpython/pull/23637 ___ Python tracker ___ __

[issue42240] Add Maxheap version of a heappush into heapq module

2020-12-04 Thread Matteo Dell'Amico
Matteo Dell'Amico added the comment: Personally, I'd find a maxheap in the standard library helpful, and a quick Google search tells me I'm not alone. I generally have to deal with numeric values, so I have these choices: - ugly code (e.g., `minus_distance, elem = heappop(heap)`, `distance =

[issue42558] waitpid/waitid race caused by change to Popen.send_signal in Python 3.9

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: The script fails with "ChildProcessError: [Errno 10] No child processes" on line: > os.waitpid(child.pid, 0) The line before, you call child.kill() which sends SIGKILL signal to the process. So it's likely that the process will complete (killed by SIGKILL)

[issue42536] Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references)

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to push a quick & dirty workaround for test_itertools? I'm getting more and more buildbot Refleaks failures. For example, always skip TestGC.test_zip() for now. This issue seems quite complex and I would prefer to have time to think abou

[issue42562] dis failed to parse function that has only annotations

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: There are two issues here. 1. The compiler is not following PEP 626 for functions with no executable code 2. dis is not robust in the case that there are no line numbers. I want to fix 1. first, then 2. -- ___ Python

[issue42536] Iterating on a zip keeps objects alive longer than expected (test_itertools leaks sometimes references)

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: > Would it be possible to push a quick & dirty workaround for test_itertools? > I'm getting more and more buildbot Refleaks failures. Oh, I looked at PR 23623 and it got many approvals. I'm fine with waiting for a few days until PR 23623 is merged.

[issue42554] distutils.util.get_platform() depends on minor version for macOS 11

2020-12-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: IMHO sysconfig.get_platform() and distutilis.util.get_platform() should always return a version with a major and minor number on macOS. Could you add more information on the system where you get a version number that includes the micro version? And to repe

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2020-12-04 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +22506 pull_request: https://github.com/python/cpython/pull/23638 ___ Python tracker ___ __

[issue40529] Auto Completions with case insensitive

2020-12-04 Thread Madhusudhan Kasula
Madhusudhan Kasula added the comment: Thanks for your suggestion Tal Einat. I have created an discussion topic @ https://discuss.python.org/t/autocompletion-with-case-insensitive-option/6017 Please do support. -- ___ Python tracker

[issue40529] Auto Completions with case insensitive

2020-12-04 Thread 雅雯
雅雯 added the comment: 幹你娘 -- nosy: +zhtw1234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue40529] Auto Completions with case insensitive

2020-12-04 Thread 雅雯
雅雯 added the comment: 幹你娘 -- Added file: https://bugs.python.org/file49655/IMAG0215.jpg ___ Python tracker ___ ___ Python-bugs-list

[issue40529] Auto Completions with case insensitive

2020-12-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : Removed file: https://bugs.python.org/file49655/IMAG0215.jpg ___ Python tracker ___ ___ Python-bugs-lis

[issue42532] spec_arg's __bool__ is called while initializing NonCallableMock

2020-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The fix to check for None seems straightforward to me and is only needed for AsyncMock. I would wait for others thoughts on this. -- nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak ___ Python tr

[issue38780] SysLogHandler crash atexit

2020-12-04 Thread Alessio Bogon
Alessio Bogon added the comment: Is there any update on this issue? I'm experiencing the same problem on macos. -- ___ Python tracker ___ _

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

2020-12-04 Thread Xavier Morel
Xavier Morel added the comment: I was preparing to open the PR but now I'm doubting: should I open the PR against master and miss islington will backport it, or should I open the PR against 3.9? -- ___ Python tracker

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

2020-12-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Open it against master. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue42554] distutils.util.get_platform() depends on minor version for macOS 11

2020-12-04 Thread FX Coudert
FX Coudert added the comment: > having "11.0" as the version a number is ship that has sailed I understand. What is needed is consistency and predictability. Now, the next minor releases will be 11.0.1 (that has shipped already), 11.1.0 (will ship soon), then either 11.1.1 or 11.2.0 (we don'

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

2020-12-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +22507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23639 ___ Python tracker _

[issue42554] distutils.util.get_platform() depends on minor version for macOS 11

2020-12-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Now, the next minor releases will be 11.0.1 (that has shipped already), > 11.1.0 (will ship soon), then either 11.1.1 or 11.2.0 (we don't know). The > next major version will of course be 12.0.0. > > The question is: for 11.1.x or 11.2.x, which are minor

[issue42567] Enum: manually call __init_subclass__ after members are added

2020-12-04 Thread Ethan Furman
New submission from Ethan Furman : __init_subclass__ is being automatically called when the initial Enum is created, but before the members have been added, greatly reducing that method's usefulness. -- assignee: ethan.furman components: Library (Lib) messages: 382489 nosy: ethan.furm

[issue42568] Python can't run .pyc files with non-ASCII path on Windows

2020-12-04 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : > python тест.pyc python: Can't reopen .pyc file The issue is caused by _Py_fopen() being used as though it can deal with paths encoded in FS-default encoding (UTF-8 by default on Windows), but in fact it's just a simple wrapper around fopen() from the C r

[issue42562] dis failed to parse function that has only annotations

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset f24b8101a01fa98b1e3ec042ba896aeb4c24d4bc by Yurii Karabas in branch 'master': bpo-42562: Fix issue when dis failed to parse function that has no line numbers (GH-23632) https://github.com/python/cpython/commit/f24b8101a01fa98b1e3ec042ba896aeb4c24

[issue42246] Implement PEP 626

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset eaccc12aa986f92ea05f3f0a63cedbff78dd67f1 by Mark Shannon in branch 'master': bpo-42246: Don't forget the entry block when ensuring that all exits have a line number (GH-23636) https://github.com/python/cpython/commit/eaccc12aa986f92ea05f3f0a63ced

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue42562] dis failed to parse function that has only annotations

2020-12-04 Thread Mark Shannon
Mark Shannon added the comment: Thanks Yurii -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42568] Python can't run .pyc files with non-ASCII path on Windows

2020-12-04 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Python 3.6 cannot reopen .pyc file with non-ASCII path ___ Python tracker _

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 066394018a8463643cc63d933493f0afa99d72cc by Victor Stinner in branch 'master': bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637) https://github.com/python/cpython/commit/066394018a8463643cc63d933493f0afa99d72cc -- _

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +22508 pull_request: https://github.com/python/cpython/pull/23640 ___ Python tracker ___ __

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +22509 pull_request: https://github.com/python/cpython/pull/23641 ___ Python tracker ___ __

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset 8e8f82dd9459b9f62c21480528d737cffd6146bc by Miss Islington (bot) in branch '3.8': bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637) https://github.com/python/cpython/commit/8e8f82dd9459b9f62c21480528d737cffd6146bc -- __

[issue41473] test_gdb fails on AMD64 Fedora Rawhide 3.x [gdb 9.2 bug]

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset c7cf66d2fe1b85cc02153be6422dfc5e34811638 by Miss Islington (bot) in branch '3.9': bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637) https://github.com/python/cpython/commit/c7cf66d2fe1b85cc02153be6422dfc5e34811638 -- __

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2020-12-04 Thread Walter Dörwald
Walter Dörwald added the comment: Shadowing the real modules `re` and `io` by from typing import * would indeed be bad, but that argument IMHO doesn't hold for the types `IO`, `TextIO` and `BinaryIO`, yet they are not listed in `typing.__all__`. Is there a reason for that? And if not, cou

[issue42558] waitpid/waitid race caused by change to Popen.send_signal in Python 3.9

2020-12-04 Thread Jack O'Connor
Jack O'Connor added the comment: Right, the example above is contrived to demonstrate the race and the crash. In real life code, the good reason I know of to write code like this is to use os.waidid(WNOWAIT) to solve the wait/kill race properly. This is what Duct has been doing, and Nathanie

[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

2020-12-04 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : Before addition of audit hooks in 3.8, _Py_fopen() and _Py_wfopen() were simple wrappers around corresponding C runtime functions. They didn't require GIL, reported errors via errno and could be safely called during early interpreter initialization. With

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2020-12-04 Thread Guido van Rossum
Guido van Rossum added the comment: Wait, is the OP maybe that there’s a difference between typeshed an the stdlib typing.py? -- ___ Python tracker ___ ___

[issue42563] max function reports type errors in incorrect order

2020-12-04 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think making a change would be worth the risk. -- nosy: +eric.smith priority: low -> normal versions: +Python 3.8 -Python 3.10 ___ Python tracker

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thanks, Eryk, for catching the dup, I missed it somehow. @ZackerySpytz: do you plan to proceed with your PR? If not, I can pick it up -- this issue broke the software I develop after upgrade to 3.8. I filed issue 42569 to hopefully clarify the status of _Py

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22510 pull_request: https://github.com/python/cpython/pull/23642 ___ Python tracker ___ __

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the issue on Python 3.10 with a script called 北京市.py which contains: print("hello"). c:\> python 北京市.py hello c:\>python __pycache__\北京市.cpython-310.pyc python: Can't reopen .pyc file And with my PR 23642 fix, it works as expected: C:\>pytho

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: bpo-42568 is marked as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-12-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +22512 pull_request: https://github.com/python/cpython/pull/23644 ___ Python tracker ___ __

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-12-04 Thread Tal Einat
Tal Einat added the comment: New changeset 6e1eec71f59c344fb23c7977061dc2c97b77d51b by Irit Katriel in branch 'master': bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630) https://github.com/python/cpython/commit/6e1eec71f59c344fb23c7977061dc2c97b77d51b -- ___

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-12-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22511 pull_request: https://github.com/python/cpython/pull/23643 ___ Python tracker _

[issue42558] waitpid/waitid race caused by change to Popen.send_signal in Python 3.9

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: If you care about race conditions in send_signal(), I suggest you to write a PR to use the newly added os.pidfd_open() in subprocess: https://docs.python.org/dev/library/os.html#os.pidfd_open -- ___ Python tracker

[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: > Could somebody share the current intended status/role of these helpers? To implement PEP 446: create non-inheritable file descriptors. -- ___ Python tracker _

[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: > Understanding that seems to be required to deal with issue 32381. I wrote PR 23642 to fix bpo-32381. -- ___ Python tracker ___ ___

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thanks for the patch, Victor, it looks good. Just so it doesn't get lost: the problem with the contract of PyErr_ProgramText() which I mentioned in my dup 42568 is still there. -- ___ Python tracker

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: > Just so it doesn't get lost: the problem with the contract of > PyErr_ProgramText() which I mentioned in my dup 42568 is still there. It seems like PyErr_ProgramText() is no longer used in Python. PyErr_ProgramTextObject() is used and it pass the filename

[issue42545] Check that all symbols in the limited ABI are exported

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: My collection of links about the Python stable ABI: https://pythoncapi.readthedocs.io/stable_abi.html -- ___ Python tracker ___ _

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > It seems like PyErr_ProgramText() is no longer used in Python. Isn't it a part of the public API? I can't find it in the docs, but it seems to be declared in the public header. -- ___ Python tracker

[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

2020-12-04 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > To implement PEP 446: create non-inheritable file descriptors. Yes, I understand that was the original role. But currently there is no easy way to deal with errors from the helpers because of exception vs. errno conundrum. Maybe they should be split to tw

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: > Isn't it a part of the public API? I can't find it in the docs, but it seems > to be declared in the public header. The Python C API has a strange history... -- ___ Python tracker

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Kshitish
New submission from Kshitish : Try & Except doesn't work probably. In the except continue keyword doesn't work probably. -- files: main.py messages: 382515 nosy: blue555 priority: normal severity: normal status: open title: Try and Except doesn't work properly type: behavior versions:

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-12-04 Thread Peter Ludemann
Peter Ludemann added the comment: I made a suggestion for augmenting ast.parse with some of lib2to3's features; but nobody seemed interested. RIP lib2to3. Like many pieces of software, it was used for far more than for what it was originally intended. https://mail.python.org/archives/list/

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Eric V. Smith
Eric V. Smith added the comment: You've not said what happens, nor what you're expecting to happen, so we cannot help you. -- nosy: +eric.smith ___ Python tracker ___ ___

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2020-12-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate superseder: -> inspect.findsource raises IndexError ___ Python tracker ___ __

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-04 Thread Brett Cannon
Brett Cannon added the comment: I agree with Serhiy; don't do this. The only way we could fix this would be to always set a `__init__` module for every package implicitly, but then that would break anyone who wanted to clear out a package in sys.modules as the `__init__` reference in sys.mod

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-04 Thread Gregory Szorc
Gregory Szorc added the comment: I worked around this in PyOxidizer by stripping a trailing `.__init__` from module names when resolving the indexed resource data. This allows the import to work since it can find the data now, but it also preserves the double module object, which isn't ideal

[issue30459] PyList_SET_ITEM could be safer

2020-12-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22513 pull_request: https://github.com/python/cpython/pull/23645 ___ Python tracker ___ __

[issue24711] Document getpass.getpass behavior on ^C

2020-12-04 Thread Irit Katriel
Irit Katriel added the comment: I don't see a difference between getpass and input in this respect: import getpass try: getpass.getpass('getpass: ') except: pass print('goodbye getpass') try: input('input: ') except: pass print('goodbye input')

[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

2020-12-04 Thread Steve Dower
Steve Dower added the comment: If the GIL is not held, no exception should be raised, so the fact that you've got one there means that the GIL is held and the main.c-specific error message is the bit that's wrong. So it should be, "if they fail and you're in a context where exceptions are a

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the problem? What real code imports __init__? -- ___ Python tracker ___ ___ Python-bugs

[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2020-12-04 Thread Gerald Dalley
Gerald Dalley added the comment: I and a few others have run into issues with the Enum constructors producing spurious reference cycles. This can cause memory explosions if large objects like numpy arrays are held in any of the relevant stack frames. Based on https://bugs.python.org/issue368

[issue42558] waitpid/waitid race caused by change to Popen.send_signal in Python 3.9

2020-12-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I agree with Victor. When code launches a process with subprocess APIs, it is expected that the subprocess module manages the process. Calling os.waitpid directly instead of using subprocess's APIs breaks that expectation. Also, WNOWAIT and waitid() (not

[issue31904] Python should support VxWorks RTOS

2020-12-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8d4f57dbd10846ffb4881b6509a511be0ab3b913 by pxinwr in branch 'master': bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419) https://github.com/python/cpython/commit/8d4f57dbd10846ffb4881b6509a511be0ab3b913 -- nosy: +gregory

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-12-04 Thread Tal Einat
Tal Einat added the comment: Thank you for reporting this, Noureddine Hamid! Thanks for the PR, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset 3b14f18205b17d1634e21bd7bc48152247590d9f by Miss Islington (bot) in branch '3.8': bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630) https://github.com/python/cpython/commit/3b14f18205b17d1634e21bd7bc48152247590d9f -

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset 81ac030d03bdaedd724603af6f89f9248a5f2700 by Miss Islington (bot) in branch '3.9': bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630) https://github.com/python/cpython/commit/81ac030d03bdaedd724603af6f89f9248a5f2700 -

[issue42482] TracebackException should not hold reference to the exception traceback

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset 40b92f1cc06f9aaba813ae38266f424e0969b089 by Miss Islington (bot) in branch '3.9': [3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) (GH-23578) https://github.com/python/cpython/commit/40b92f1cc06f9aaba813ae38

[issue42571] [docs] add links to Glossary#parameter in libraries

2020-12-04 Thread Frederic Gagnon
New submission from Frederic Gagnon : Could be helpful to make it so that, in libraries, / * * and ** (i.e. positional-only, keyword-only, var-positional and var-keyword indicators) link to https://docs.python.org/3/glossary.html#term-parameter This come from someone relatively new to python

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread Tal Einat
Tal Einat added the comment: New changeset 2e0760bb2edb595050aff82f236cd32b44d3dfb3 by Irit Katriel in branch 'master': bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) https://github.com/python/cpython/commit/2e0760bb2edb595050aff82f236cd32b44d3dfb3

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22514 pull_request: https://github.com/python/cpython/pull/23646 ___ Python tracker _

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +22515 pull_request: https://github.com/python/cpython/pull/23647 ___ Python tracker ___ __

[issue42570] Try and Except doesn't work properly

2020-12-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Code is working correctly, not a bug. Perhaps you are mistaking `continue` for `break`. Kshitish, we keep telling you not to use the bug tracker as a help desk. This is now your eighth "bug report" that was 100% your misunderstanding. There are many other

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread miss-islington
miss-islington added the comment: New changeset a4e7d5f750e06e31a80a83c2af02b1a40cecd0ff by Miss Islington (bot) in branch '3.8': bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) https://github.com/python/cpython/commit/a4e7d5f750e06e31a80a83c2af02b1

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: Status: * Py_SET_REFCNT(), Py_SET_TYPE() and Py_SET_SIZE() functions added to Python 3.9. * Python and Cython have been modified to use Py_TYPE(), Py_SET_REFCNT(), Py_IS_TYPE(), etc. * pythoncapi_compat.h header file has been created to provide new functions

[issue29249] Pathlib glob ** bug

2020-12-04 Thread Miroslav Šedivý
Miroslav Šedivý added the comment: Today when porting some random project from os.path to pathlib I encountered a homemade filename matching method that I wanted to port to pathlib.Path.match. Unfortunately >>> pathlib.Path('x').match('**/x') False although if I have a file called `x` in the

[issue42545] Check that all symbols in the limited ABI are exported

2020-12-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 85f1dedb8d05774e0d3739be0a11cd970b98097f by Pablo Galindo in branch 'master': bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616) https://github.com/python/cpython/commit/85f1dedb8d05774e0d3739be0a11cd970b98097f

[issue14111] IDLE Debugger should handle interrupts

2020-12-04 Thread Mark Roseman
Mark Roseman added the comment: Terry, I agree that Ctrl-C should act just as an interrupt when the debugger is active. I also agree that a way to interrupt the debugger through the user interface is needed (in the revised UI, there's an explicit 'stop' button for that). -- ___

[issue42545] Check that all symbols in the limited ABI are exported

2020-12-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I want to make some tweaks to the script, so I will leave this open -- ___ Python tracker ___

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-12-04 Thread STINNER Victor
STINNER Victor added the comment: > immutables: https://github.com/MagicStack/immutables/issues/46 I proposed a fix: https://github.com/MagicStack/immutables/pull/52 > mercurial https://bugzilla.redhat.com/show_bug.cgi?id=1897178 I proposed a fix: https://bz.mercurial-scm.org/show_bug.cgi?id

[issue42482] TracebackException should not hold reference to the exception traceback

2020-12-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

2020-12-04 Thread Eryk Sun
Eryk Sun added the comment: > To implement PEP 446: create non-inheritable file descriptors. Side note. That aspect is still wonky in Windows, for which set_inheritable() cannot be implemented reliably since there's no way to change whether an existing CRT file descriptor is inheritable. The

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread Tal Einat
Tal Einat added the comment: New changeset d1f07419c7560ed3ba52ba4f667f4eec9b5fe95d by Miss Islington (bot) in branch '3.9': bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) https://github.com/python/cpython/commit/d1f07419c7560ed3ba52ba4f667f4eec9b5

[issue42572] Better path handling with argparse

2020-12-04 Thread Austin Scola
New submission from Austin Scola : One of the types of arguments that I find myself most often passing to `argparse.ArgumentParser` is paths. I think that I am probably not alone in frequent usage of paths as arguments. Given this, it would be extremely helpful to have an `argparse.Action` in

[issue17735] inspect.findsource raises IndexError

2020-12-04 Thread Tal Einat
Tal Einat added the comment: Thanks for reporting this, Kyle! Thanks for the PR, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42545] Check that all symbols in the limited ABI are exported

2020-12-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +22516 pull_request: https://github.com/python/cpython/pull/23648 ___ Python tracker ___ ___

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2020-12-04 Thread Irit Katriel
Irit Katriel added the comment: Fixed under issue17735. -- nosy: +iritkatriel stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42545] Check that all symbols in the limited ABI are exported

2020-12-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 79c1849b9e5b635bd36b13e1be9dc7cbc2bd6312 by Pablo Galindo in branch 'master': bpo-42545: Improve the error message in the stable API script (GH-23648) https://github.com/python/cpython/commit/79c1849b9e5b635bd36b13e1be9dc7cbc2bd6312 ---

[issue20415] Could method "isinstance" take a list as parameter?

2020-12-04 Thread Irit Katriel
Irit Katriel added the comment: Interesting discussion, and the reason seems to be here: https://mail.python.org/pipermail/python-ideas/2011-July/010642.html Lists need to be checked for cycles, tuples don't. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: o

[issue30858] Keyword can't be an expression?

2020-12-04 Thread Irit Katriel
Irit Katriel added the comment: I get this now on 3.10: >>> print(end1 + end2 + end3 + end4 + end5 + end6 + end=' ') File "", line 1 print(end1 + end2 + end3 + end4 + end5 + end6 + end=' ') ^ SyntaxError: expression cannot contain assignment, perhaps you meant "=="? -

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-04 Thread Brett Cannon
Brett Cannon added the comment: New changeset 2de5097ba4c50eba90df55696a7b2e74c93834d4 by Brett Cannon in branch 'master': bpo-26131: Deprecate usage of load_module() (GH-23469) https://github.com/python/cpython/commit/2de5097ba4c50eba90df55696a7b2e74c93834d4 -- ___

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2020-12-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

  1   2   >