[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-03-15 Thread Greg Darke
New submission from Greg Darke : The following block of code does not produce a SyntaxWarning in python 3.7 and above (it does produce a warning in python 3.6 and below): ``` assert(False, 'msg') ``` If the tuple is not a constant (for example `(x, 'msg')`), then a warning is still produced.

[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-03-15 Thread Greg Darke
Change by Greg Darke : -- keywords: +patch pull_requests: +23629 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24867 ___ Python tracker ___ _

[issue25625] "chdir" Contex manager for pathlib

2021-03-15 Thread 4-launchpad-kalvdans-no-ip-org
Change by 4-launchpad-kalvdans-no-ip-org : -- nosy: +4-launchpad-kalvdans-no-ip-org ___ Python tracker ___ ___ Python-bugs-list mail

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-03-15 Thread Jakub Kulik
New submission from Jakub Kulik : Recently several of our Python 3.9 builds froze during `make install` with the following trace in logs: Listing .../components/python/python39/build/prototype/sparc/usr/lib/python3.9/lib2to3/tests/data/fixers/myfixes... Exception in thread Thread-1: Traceback

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-03-15 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +23630 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24868 ___ Python tracker ___

[issue24498] Should ptags and eptags be removed from repo?

2021-03-15 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 1.0 -> 2.0 pull_requests: +23631 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24869 ___ Python tracker

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: Perhaps you could open a documentation bug? I think specific examples of where the documentation is wrong, and how it could be improved, would be helpful. Thanks! -- nosy: +eric.smith ___ Python tracker

[issue43181] Python macros don’t shield arguments

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > As I wrote previously, I dislike macros. If someone is changed, I would > prefer to convert the function into a static inline function which doesn't > have macros pitfalls. Should we create a meta issue for this? Most macros are trivial, and can sa

[issue42917] Block stack size for frame objects should be dynamically sizable

2021-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > There are also other ideas floating about for improving memory locality > related to the frame stack, e.g. putting the stack frames in an array instead > of a linked list. Would it work with generators and coroutines? -- ___

[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the use case for assert with a constant? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about Decimal NaN? Even if make float NaN a singleton, there will be other NaNs. And making float('nan') returning a singleton, but 1e1000 * 0 returning different NaN would cause large confusion. -- nosy: +serhiy.storchaka __

[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-03-15 Thread Greg Darke
Greg Darke added the comment: I would argue that there is none (especially if it is tuple/something that is always true) -- thus why I would assume that Python would provide a warning. This bug comes from a discussion I was having with someone earlier today where they mentioned that it would

[issue43496] Save As dialog in IDLE doesn't accept keyboard shortcuts on MacOS

2021-03-15 Thread E. Paine
E. Paine added the comment: This is reproducible using tkinter in Python 3.9.2 installed using both the regular Intel and Universal2 installers. It is also reproducible in Wish 8.6.10. (tested on MacOS 11.2.1) -- components: -IDLE nosy: +epaine _

[issue1103350] send/recv SEGMENT_SIZE should be used more in socketmodule

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, the SEGMENT_SIZE define was removed by af01f668173d4061893148b54a0f01b91c7716c2 (bpo-16136). -- nosy: +erlendaasland ___ Python tracker _

[issue43334] venv does not install libpython

2021-03-15 Thread Vinay Sajip
Vinay Sajip added the comment: This is not a bug - venvs are primarily *run*-time (as opposed to development-time) environments, into which you install pre-built Python packages (including ones with C extensions). Can you give a specific example where creating a venv and installing packages

[issue37820] Unnecessary URL scheme exists to allow 'URL: reading file in urllib

2021-03-15 Thread Christian Heimes
Christian Heimes added the comment: It's a Python 2-only problem. Python 2 no longer receives security fixes. Please update to a supported version of Python or report the issue with your vendor. -- nosy: +christian.heimes resolution: -> wont fix stage: -> resolved status: open -> c

[issue43497] SyntaxWarning for "assertion is always true, perhaps remove parentheses?" does not work with constants

2021-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In such case I prefer to write assert not 'reachable' It is shorter than writing False. If I want to keep an exception even with -O, I write raise AssertionError -- ___ Python tracker

[issue43334] venv does not install libpython

2021-03-15 Thread Christian Heimes
Christian Heimes added the comment: I agree with Vinay. venvs don't contain copies of libpython or header files by design. setuptools will pcik them up from the main installation. If you have any issues with compiling C extensions, please report them with setuptools at https://github.com/pyp

[issue12777] Inconsistent use of VOLUME_NAME_* with GetFinalPathNameByHandle

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: This seems to have been fixed in 2018 in bpo-33016 by GH-6010. -- nosy: +erlendaasland ___ Python tracker ___ ___

[issue37820] Unnecessary URL scheme exists to allow 'URL: reading file in urllib

2021-03-15 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 3.0 -> 4.0 pull_requests: +23632 pull_request: https://github.com/python/cpython/pull/24870 ___ Python tracker ___ ___

[issue15698] PEP 3121, 384 Refactoring applied to pyexpat module

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Fixed by GH-2. -- nosy: +erlendaasland, vstinner ___ Python tracker ___ ___ Python-bu

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-03-15 Thread Anton Khirnov
Change by Anton Khirnov : -- keywords: +patch pull_requests: +23633 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24872 ___ Python tracker ___ __

[issue43181] Python macros don’t shield arguments

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: If possible, I would prefer to only replace macros with static inline functions if the changes avoids clear macro pitfalls. It's not because macros have pitfalls that we must replace them all blindly. Also, this issue is closed. At this point, I'm not convin

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2021-03-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue15698] PEP 3121, 384 Refactoring applied to pyexpat module

2021-03-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Py_Finalize() doesn't clear all Python objects at exit ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-15698 "PEP 3121, 384 Refactoring applied to pyexpat module" as a duplicate of this issue. -- ___ Python tracker ___ _

[issue37741] importlib.metadata docs not showing up in the module index

2021-03-15 Thread Miro Hrončok
Miro Hrončok added the comment: The docs at https://docs.python.org/3/library/importlib.metadata.html also don't list the API at all, it is just a tutorial, not a reference. I see the code has docstrings, but they are missing from the docs. E.g. PackageNotFoundError is not documented at all.

[issue43181] Python macros don’t shield arguments

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > If possible, I would prefer to only replace macros with static inline > functions if the changes avoids clear macro pitfalls. Yes, of course. Should I create a meta issue for this, or do you prefer raising one issue pr. fix? -- __

[issue43499] Compiler warnings in building Python 3.9 on Windows

2021-03-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently building Python 3.9 on Windows produce many compiler warnings. 3.8 and master are clean. * Warnings in the _sre module caused by the bug in MSVC (complains about automatic conversion of "void **" to "const void *"). Fixed by backporting PR2050

[issue43499] Compiler warnings in building Python 3.9 on Windows

2021-03-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +23634 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24873 ___ Python tracker ___

[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread wyz23x2
New submission from wyz23x2 : The fnmatch module has a filter() function: > Construct a list from those elements of the iterable names that match pattern. > It is the same as [n for n in names if fnmatch(n, pattern)], but implemented > more efficiently. However, since there is the fnmatchcase()

[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread wyz23x2
Change by wyz23x2 : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue43223] [security] http.server: Open Redirection if the URL path starts with //

2021-03-15 Thread Hamza Avvan
Change by Hamza Avvan : -- hgrepos: +404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue43181] Python macros don’t shield arguments

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: You can create a single issue, and later we will see if it's needed to split it into sub-issues. -- ___ Python tracker ___ _

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread junyixie
junyixie added the comment: There is a problem: if we bound pymalloc state with a interpreter. malloc pointer in interpreterA and free pointer is usual. it's cause a problem. when we use PyObject_Free, 1. we look up address in pymalloc pool. 2. if not find, current code will call PyMem_RawFr

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread junyixie
junyixie added the comment: > malloc pointer in interpreterA and free pointer is usual. malloc pointer in interpreterA and free pointer in interpreterB is usual. -- ___ Python tracker __

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread junyixie
junyixie added the comment: by the way, There is no operation to destroy the memory pool in the cpython code. Repeated creation of the pymalloc pool will cause memory leaks. -- ___ Python tracker _

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread junyixie
junyixie added the comment: > 2. when free memory address, find this address in all interpreter pymalloc > pool. and free it.(but it need add lock to pymalloc) when finalize_interp_delete, we need keep interpreter pymalloc pool in linked list.It will be used when search memory in pymalloc po

[issue43501] email._header_value_parse throws AttributeError on display name ending with dot

2021-03-15 Thread Anton Khirnov
New submission from Anton Khirnov : On parsing an email where the display name in an address ends on a dot immediately followed by angle-addr, accessing the resulting mailbox display_name throws /usr/lib/python3.9/email/_header_value_parser.py in value(self) 589 if self[0].toke

[issue43501] email._header_value_parse throws AttributeError on display name ending with dot

2021-03-15 Thread Anton Khirnov
Change by Anton Khirnov : -- keywords: +patch pull_requests: +23636 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24874 ___ Python tracker ___ __

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-15 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Convert macros to static inline functions if...: - the macro contains a clear pitfall (for example "duplication of side effects") - the fix is trivial - the macro is not used as an l-value (for example Py_TYPE()) See also: - https://gcc.gnu.org/onli

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: For me, one of the my worst issue is when a macro evalutes an argument twice. Example: --- #include #define DOUBLE(value) ((value) + (value)) int main() { int x = 1; // expanded to: ((++x) + (++x)) int y = DOUBLE(++x); printf("x=%i y=%i\n",

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: I would add that we should pay attention to: * not introducing a backward incompatible C API change by mistake * not introducing new compiler warnings. A common source of warning is that macros have no type for their arguments or return value, whereas static

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Should we try to split all macros like that, if possible? -- ___ Python tracker ___ ___ P

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-15 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23637 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24875 ___ Python tracker _

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that it's needed to have a "per interpreter" allocator. The needed feature is to be able to call PyMem_Malloc() in parallel in different threads. If I understood correctly, the glibc malloc has a per-thread fast allocator (no locking) and then f

[issue37448] obmalloc: radix tree for tracking arena address ranges

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43313: "feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state". -- nosy: +vstinner ___ Python tracker _

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +methane, nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue43313] feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: The current workaround is to disable pymalloc when Python is built with EXPERIMENTAL_ISOLATED_SUBINTERPRETERS: _PyPreConfig_InitCompatConfig(PyPreConfig *config): #ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS /* bpo-40512: pymalloc is not compatible with

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2021-03-15 Thread STINNER Victor
STINNER Victor added the comment: > * Add a lock to pymalloc, or disable pymalloc when subinterpreters are used: > https://github.com/ericsnowcurrently/multi-core-python/issues/30 See bpo-43313: "feature: support pymalloc for subinterpreters. each subinterpreter has pymalloc_state". ---

[issue42917] Block stack size for frame objects should be dynamically sizable

2021-03-15 Thread Guido van Rossum
Guido van Rossum added the comment: Yes, if we keep the top of the stack and the current frame in separate variables.-- --Guido (mobile) -- ___ Python tracker ___

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > And making float('nan') returning a singleton, > but 1e1000 * 0 returning different NaN would cause large confusion. Not really, it would be just be an implementation detail, no different than int and strings being sometimes unique and sometimes not. H

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-15 Thread Florian Bruhin
Florian Bruhin added the comment: Fair points. As an aside, I'm also wondering how inspect.Parameter.annotation should interact with the changes in Python 3.10? That used to be the canonical way (as far as I'm aware) of getting a single argument's type annotation (other than getting it from

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-15 Thread Guido van Rossum
Guido van Rossum added the comment: Please open a separate issue for that. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-15 Thread Ken Jin
Ken Jin added the comment: @Florian, IIUC inspect.signature auto-resolves string annotations to typing.ForwardRef internally from 3.10 onwards. It's mentioned in the what's new for PEP 563 https://docs.python.org/3.10/whatsnew/3.10.html#pep-563-postponed-evaluation-of-annotations-becomes-def

[issue43496] macOS tkinter Save As doesn't accept keyboard shortcuts

2021-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you, EP, for being 'someone'. I should remember that you are the one who can current do these tests. I presume the reproducible 'this' is the non-response to cmd-A, cmd-Z, and so on. So closing as 3rd party, tcl/tk, issue. I comfirmed that Jacob's

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Lets go ahead and try making this a breaking change in 3.10. If users report it causes a bunch of problems during the beta -that they don't want to address so soon- (they are all likely bugs in test suites...) we can soften it to a warning for a cycle. M

[issue12777] Inconsistent use of VOLUME_NAME_* with GetFinalPathNameByHandle

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: bpo-33016 fixed the problem with the inconsistent dwFlags argument passed to GetFinalPathNameByHandleW(). We do need the ability to get the NT name in order to implement samefile() and sameopenfile() reliably in all cases -- i.e. when the volume serial number and

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord ___ Python tracker ___ ___ Python-bugs-lis

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: For a simple experiment raising an exception I can see two tests failing in test suite that have the pattern of having an autospec which is a mock object. diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 720f682efb..d33c7899a1 100644 -

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-15 Thread Florian Bruhin
Florian Bruhin added the comment: Ah, I wasn't aware of that, thanks for the pointer! So what inspect does internally is: def _get_type_hints(func, **kwargs): try: return typing.get_type_hints(func, **kwargs) except Exception: # First, try to use th

[issue43355] __future__.annotations breaks inspect.signature()

2021-03-15 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 0ab152c6b5d95caa2dc1a30fa96e10258b5f188e by Gregory P. Smith in branch 'master': bpo-43285 Make ftplib not trust the PASV response. (GH-24838) https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e --

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23638 pull_request: https://github.com/python/cpython/pull/24880 ___ Python tracker _

[issue43371] Mock.assert_has_calls works strange

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.assert_has_calls > If any_order is false then the calls must be sequential. There can be extra > calls before or after the specified calls. One way to check that the calls appe

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +23639 pull_request: https://github.com/python/cpython/pull/24881 ___ Python tracker ___

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-03-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Eric Snow
New submission from Eric Snow : In the limited C-API we expose the following static PyObject variables: * 5 singletons * ~70 exception types * ~70 other types Since they are part of the limited API, they have a direct effect on the stable ABI. The problem is that these objects should not be

[issue40255] Fixing Copy on Writes from reference counting

2021-03-15 Thread Eric Snow
Eric Snow added the comment: While the eventual solution may overlap, my interests are divergent enough from those here that I've created a separate issue: bpo-43503. -- ___ Python tracker _

[issue11339] annotation for class being defined

2021-03-15 Thread Socob
Change by Socob <206a8...@opayq.com>: -- nosy: +Socob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread miss-islington
miss-islington added the comment: New changeset 7dcb4baa4f0fde3aef5122a8e9f6a41853ec9335 by Miss Islington (bot) in branch '3.9': bpo-43285 Make ftplib not trust the PASV response. (GH-24838) https://github.com/python/cpython/commit/7dcb4baa4f0fde3aef5122a8e9f6a41853ec9335 -- _

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 664d1d16274b47eea6ec92572e1ebf3939a6fa0c by Gregory P. Smith in branch '3.8': [3.8] bpo-43285 Make ftplib not trust the PASV response. (GH-24838) (GH-24881) https://github.com/python/cpython/commit/664d1d16274b47eea6ec92572e1ebf3939a6fa0c --

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +23640 pull_request: https://github.com/python/cpython/pull/24882 ___ Python tracker ___ __

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +23641 pull_request: https://github.com/python/cpython/pull/24883 ___ Python tracker ___ __

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: 3.7 and 3.6 backport PRs created and assigned to release manager Ned for merging. -- nosy: +ned.deily resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Eric Snow
Eric Snow added the comment: Here are some solutions that I've considered: 1. immutable objects a. make the objects truly immutable/const * not trivial, if possible b. make the objects effectively immutable * (see GH-24828) use a really high refcount to make races irrelevant

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Eric Snow
Eric Snow added the comment: If the stable ABI weren't an issue then we would probably: * deprecate using the objects directly * do something like (2a) in the meantime It may make sense to do that for "#ifndef Py_LIMITED_API", regardless of how we handle the limited API. -- ___

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Chris Withers
Chris Withers added the comment: I agree that this should raise an exception. Can the two failing tests in mock's own suite be easily fixed? -- ___ Python tracker ___

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Eric Snow
Change by Eric Snow : -- nosy: +Mark.Shannon, nascheme, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +23642 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24828 ___ Python tracker ___

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Eric Snow
Change by Eric Snow : -- components: +Extension Modules, Interpreter Core, Subinterpreters ___ Python tracker ___ ___ Python-bugs-li

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Matthew Suozzo
Matthew Suozzo added the comment: I've fixed a bunch of these in our internal repo so I'd be happy to add that to a patch implementing raising exceptions for these cases. -- ___ Python tracker _

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Ned Deily
Ned Deily added the comment: @gps, What about ftplib doc changes and What's new entries for this change in behavior? -- ___ Python tracker ___ ___

[issue43478] Disallow Mock spec arguments from being Mocks

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tests can be fixed. The change to raise exception can be merged to gather feedback during alpha/beta and see if there are any valid usecases. -- ___ Python tracker

[issue11339] annotation for class being defined

2021-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this issue resolved with PEP 563 and the behavior becoming default in Python 3.10? https://www.python.org/dev/peps/pep-0563/#forward-references -- nosy: +xtreak ___ Python tracker

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2021-03-15 Thread doublex
doublex added the comment: Example code (fails): import os, concurrent.futures def parallel_callback( arg ): return os.getpid() def parallel( *args ): def thread_callback( param ): with concurrent.futures.ProcessPoolExecutor(max_workers=1) as executor: future = e

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Brandt Bucher
Brandt Bucher added the comment: @BTaskaya, do you have any interest in helping me iterate on new AST nodes? -- ___ Python tracker ___

[issue11339] annotation for class being defined

2021-03-15 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-15 Thread Guido van Rossum
Guido van Rossum added the comment: I can never remember what "Py_LIMITED_API" stands for. If it's not defined, does that mean we have the *unlimited* API? Is that a superset or a subset of the limited API? Regarding 1a *and* 1b, I think it would help to list the specific reasons exceptions

[issue43486] Python 3.9 installer not updating ARP table

2021-03-15 Thread Steve Dower
Steve Dower added the comment: Leaving the launcher behind is deliberate. Otherwise you might install/uninstall 3.10 alpha and lose the launcher completely. I can't trivially reproduce the ARP issue, so we'll need some more information. If possible, can you grab the install logs from %TEMP%

[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-15 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > @BTaskaya, do you have any interest in helping me iterate on new AST nodes? Sure! -- ___ Python tracker ___ _

[issue17620] Python interactive console doesn't use sys.stdin for input

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list maili

[issue24829] Use interactive input even if stdout is redirected

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- dependencies: +Python interactive console doesn't use sys.stdin for input versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker

[issue43416] Add README files in Include/cpython and Include/internal

2021-03-15 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch nosy: +erlendaasland nosy_count: 3.0 -> 4.0 pull_requests: +23643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24884 ___ Python tracker

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-03-15 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland nosy_count: 7.0 -> 8.0 pull_requests: +23644 pull_request: https://github.com/python/cpython/pull/24884 ___ Python tracker __

[issue29805] Support moving across filesystems in pathlib.Path, as shutil.move() does

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- components: -Windows title: Pathlib.replace cannot move file to a different drive on Windows if filename different -> Support moving across filesystems in pathlib.Path, as shutil.move() does versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 _

[issue43492] Upgrade to SQLite 3.35.1 in macOS and Windows

2021-03-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Bug-fix release 3.35.1 is out bco. https://sqlite.org/src/info/1c24a659e6d7f3a1 -- title: Upgrade to SQLite 3.35.0 in macOS and Windows -> Upgrade to SQLite 3.35.1 in macOS and Windows ___ Python tracker <

[issue43285] ftplib should not use the host from the PASV response

2021-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: A What's New entry is a good idea. I'll make one and add it to those backport PRs. (reopened to remind me of that) ftplib docs... I don't actually want to document the attribute that people can set for the old behavior beyond the notes in NEWS or What's

  1   2   >