[issue43345] Add __required_keys__ and __optional_keys__ to TypedDict documentation

2021-02-27 Thread Paul Bryan
Change by Paul Bryan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43345] Add __required_keys__ and __optional_keys__ to TypedDict documentation

2021-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 1e3c68246ee738b5ec5450b1eb39af2fca300cb9 by Paul Bryan in branch 'master': bpo-43345: Enhance TypedDict documentation. (#24668) https://github.com/python/cpython/commit/1e3c68246ee738b5ec5450b1eb39af2fca300cb9 --

[issue43345] Add __required_keys__ and __optional_keys__ to TypedDict documentation

2021-02-27 Thread Paul Bryan
Change by Paul Bryan : -- keywords: +patch pull_requests: +23453 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24668 ___ Python tracker ___

[issue43345] Add __required_keys__ and __optional_keys__ to TypedDict documentation

2021-02-27 Thread Paul Bryan
Change by Paul Bryan : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43345] Add __required_keys__ and __optional_keys__ to TypedDict documentation

2021-02-27 Thread Paul Bryan
New submission from Paul Bryan : >From Typing-sig list: On Thu, Feb 11, 2021 at 10:54 PM Paul Bryan wrote: > I don't think __required_keys__ or __optional_keys__ are documented, at least > not in https://docs.python.org/3.10/library/typing.html. Is there any reason > we can't codify them in

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-27 Thread Carol Willing
Carol Willing added the comment: Folks, The What's New PR is open now. I've tried to focus more on the data type/shape examples over literal example. -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-27 Thread Carol Willing
Change by Carol Willing : -- pull_requests: +23452 pull_request: https://github.com/python/cpython/pull/24667 ___ Python tracker ___

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread Dong-hee Na
Dong-hee Na added the comment: Thank you Daniel for reporting and suggestion! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread miss-islington
miss-islington added the comment: New changeset 132e31f4bf20818a469cbcdba75068f26cb19a65 by Miss Islington (bot) in branch '3.9': bpo-43335: Update macro to check gcc version (GH-24662) https://github.com/python/cpython/commit/132e31f4bf20818a469cbcdba75068f26cb19a65 --

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23451 pull_request: https://github.com/python/cpython/pull/24665 ___ Python tracker

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset bf9de7ab24d9d7068645b202bc47146b9a4f2726 by Dong-hee Na in branch 'master': bpo-43335: Update macro to check gcc version (GH-24662) https://github.com/python/cpython/commit/bf9de7ab24d9d7068645b202bc47146b9a4f2726 --

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2021-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a bit out of date. The isinstance() docs now specify that the predicate tests for direct, indirect, and virtual inheritance. Likewise, the super() docs already specify that only the __mro__ is searched. So those docs are already precise. Am

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-27 Thread Daniel Moisset
Change by Daniel Moisset : -- pull_requests: +23450 pull_request: https://github.com/python/cpython/pull/24664 ___ Python tracker ___

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll add a note to this effect in the tutorial. Also, in the FAQ, we could have an entry about the three circumstances when "is" can relied upon: 1) variable assignment doesn't change identity, 2) containers that use references don't change identity,

[issue43340] json.load() can raise UnicodeDecodeError, but this is not documented

2021-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Normally, we don't (or can't) enumerate all possible exceptions. But in this case, it is worth expanding the documentation so that person can know which of two common input errors they need to catch: "If the data being deserialized is not valid UTF-8 a

[issue43340] json.load() can raise UnicodeDecodeError, but this is not documented

2021-02-27 Thread Eric V. Smith
Eric V. Smith added the comment: As a rule we don't try and document every exception that can be raised. I could go either way on documenting encoding errors with the json module, although it seems pretty clear that an encoding error would be possible in this case. -- assignee: ->

[issue43344] RotatingFileHandler breaks file type associations

2021-02-27 Thread Kevin Hollingshead
New submission from Kevin Hollingshead : The filenames generated by logging.RotatingFileHandler breaks the ability to associate a program (e.g. notepad++, sublime text, etc.) with the log files using Windows or OSX file associations because the extension is overridden by the added suffix.

[issue41972] bytes.find consistently hangs in a particular scenario

2021-02-27 Thread Tim Peters
Tim Peters added the comment: I'm very sorry for not keeping up with this - my health has been poor, and I just haven't been able to make enough time. Last time I looked to a non-trivial depth, I was quite happy, and just quibbling about possible tradeoffs. I can't honestly commit to doing

[issue41972] bytes.find consistently hangs in a particular scenario

2021-02-27 Thread Guido van Rossum
Guido van Rossum added the comment: If Tim approves we might get it into alpha 6 which goes out Monday. -- ___ Python tracker ___

[issue41972] bytes.find consistently hangs in a particular scenario

2021-02-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: Any chance PR 22904 can make it into 3.10 before the May 03 feature freeze? The text document in that PR has some notes on how the algorithm works, so that may be a good place to start reviewing if anyone is interested. --

[issue43342] Error while using Python C API

2021-02-27 Thread Piyush Patel
Piyush Patel added the comment: So upon further investigation, it seems all the built-in functions are not working. def func(): max(10,20) this code errors out saying "name 'max' is not defined" so when python installation is in custom location or parent folder name is "python", the

[issue43060] Convert _decimal C API from pointer array to struct

2021-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In my opinion, an array of pointers is a bad API; The existing code is how types were made for most of Python's history. It is not "bad"; it is just more wordy. Given that the current code is correct, I don't see any strong reason to churn the code.

[issue43341] functools.partial missing __weakref__ descriptor?

2021-02-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31030] sys.executable can be not normalized

2021-02-27 Thread Eryk Sun
Eryk Sun added the comment: > If it was the tests, they seem to have been fixed elsewhere. The cited tests haven't been changed to work with non-normalized sys.executable, sys.prefix, etc. But it's not common to run the test suite with a non-normalized path such as "Lib/../build/python". >

[issue43343] argparse.REMAINDER missing in online documentation for 3.9.x

2021-02-27 Thread Chigozirim Chukwu
New submission from Chigozirim Chukwu : Since 3.9.0, the online documentation for the argparse module is missing reference for argparse.REMAINDER. If the feature has been deprecated, can we get atleast a mention in the deprecation notes as to what one should now prefer. If it was just a

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2021-02-27 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: I agree -- as a user, it wasn't clear to me from looking at the documentation that mkdtemp was the right way to go to not delete directories. I had expected that NamedTemporaryDirectory would also support delete=False, just like NamedTemporaryFile.

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

2021-02-27 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib), Windows -Interpreter Core nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker

[issue32795] subprocess.check_output() with timeout does not exit if child process does not generate output after timeout

2021-02-27 Thread Eryk Sun
Eryk Sun added the comment: Issue 37424 fixed this for Python 3.7+ in POSIX. It's still broken in Windows, for which I'm leaving issue 31447 open. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed superseder: -> subprocess.run timeout does not function

[issue43342] Error while using Python C API

2021-02-27 Thread Piyush Patel
New submission from Piyush Patel : Hi, I am facing a very strange issue. I am working on a C++ application which embeds a python. As per documentation i have the dependencies added from python (/libs and /include directories) to C++ application. I am using Py_RunString() to run simple python

[issue31030] sys.executable can be not normalized

2021-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was opened with 2 related facts of 2017: a) sys.executable is not normalized b) as a result, two tests failed Serhiy then said "I don't know what is wrong: the value of sys.executable or the test." If it was the tests, they seem to have been fixed

[issue43341] functools.partial missing __weakref__ descriptor?

2021-02-27 Thread Dan Snider
New submission from Dan Snider : The only way to lookup weak references to functools.partial objects is with weakref.getweakrefs. I don't know if it's normal for extension types that define tp_weaklistoffset to not add a __weakref__ descriptor, but I figured at the very least a subtype

[issue43340] json.load() can raise UnicodeDecodeError, but this is not documented

2021-02-27 Thread Matthew Woodcraft
New submission from Matthew Woodcraft : The documentation for json.load() and json.loads() says: « If the data being deserialized is not a valid JSON document, a JSONDecodeError will be raised. » But this is not currently entirely true: if the data is provided in bytes form and is not

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread DANIEL VILLENEUVE
DANIEL VILLENEUVE added the comment: I'll let you do so if it's ok for you, since I'm not equipped with Python dev tools. Regards -- ___ Python tracker ___

[issue24650] Error in yield expression documentation

2021-02-27 Thread Jacob Walls
Change by Jacob Walls : -- keywords: +patch nosy: +jacobtylerwalls nosy_count: 4.0 -> 5.0 pull_requests: +23449 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24663 ___ Python tracker

[issue43339] Could not build the ssl module! | macOS with `CPPFLAGS` and `LDFLAGS` set

2021-02-27 Thread Samuel Marks
Samuel Marks added the comment: Nevermind it actually was that missing `PKG_CONFIG_PATH` line… -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue43339] Could not build the ssl module! | macOS with `CPPFLAGS` and `LDFLAGS` set

2021-02-27 Thread Samuel Marks
New submission from Samuel Marks : I was on 3.10a4 on macOS 11.1 for ages, finally decided to upgrade to a5, building from source. With latest `brew install openssl zlib`. ``` $ export LDFLAGS='-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/zlib/lib' $ export

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-27 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset c71d24f55828e7f0f2c8750d2e1b04d04539beff by Inada Naoki in branch 'master': bpo-43321: Fix SystemError in getargs.c (GH-24656) https://github.com/python/cpython/commit/c71d24f55828e7f0f2c8750d2e1b04d04539beff --

[issue31030] sys.executable can be not normalized

2021-02-27 Thread Eryk Sun
Eryk Sun added the comment: In Python 3.10 in POSIX, it's still the case that executable, prefix, exec_prefix, base_prefix, and base_exec_prefix in the sys module do not get normalized. For example, in Linux: $ .local/bin/../bin/python3.10 -c "import sys; print(sys.executable)"

[issue43338] [feature request] Please provide offical installers for security releases

2021-02-27 Thread Zhang Boyang
New submission from Zhang Boyang : Hello, Thanks for developing Python! I noticed there is no offical installers for security releases of old python version. This looks a little strange to me. As a python user & developer, it's often to stay with some old version of python, because some

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-27 Thread Daniel Moisset
Daniel Moisset added the comment: Thanks @xtreak, I'll make some changes in these sections too. The docs are coming along well, there's still some refinement to do in the compound statements section (it's there, but looks to big), I'll submit a draft PR during the weekend so interested

[issue43326] About Zipfile

2021-02-27 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21109] tarfile: Traversal attack vulnerability

2021-02-27 Thread STINNER Victor
STINNER Victor added the comment: What is the status of this issue? -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list