Conversation
(cherry picked from commit 26c910c) Co-authored-by: Steve Dower <[email protected]>
…2264). (GH-12322) (cherry picked from commit d53fe5f) Co-authored-by: Serhiy Storchaka <[email protected]>
…H-12331) Fix an unlikely memory leak on conversion from string to float in the function _Py_dg_strtod() used by float(str), complex(str), pickle.load(), marshal.load(), etc. Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label: rewrite memory management in this function to always release all memory before exiting the function. Initialize variables to NULL, and set them to NULL after calling Bfree() at the "cont:" label. Note: Bfree(NULL) is well defined: it does nothing. (cherry picked from commit 9776b06)
…2326) (cherry picked from commit 53c2935) Co-authored-by: nick sung <[email protected]>
…H-12348) Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the CFLAGS environment variable is defined, don't override CFLAGS variable with the OPT variable anymore. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <[email protected]> (cherry picked from commit 86082c2)
…s. (GH-12137) Be explicit that timedelta division converts an overall duration to the interval units given by the denominator. (cherry picked from commit f40b4a0) Co-authored-by: Yasser A <[email protected]>
* Replace external recipe link with a link to the dataclasses module. * Highlight the class definition syntax for typing.NamedTuple and add an example for clarity. (cherry picked from commit 9c68543) Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 0bb5e75) Co-authored-by: Cheryl Sabella <[email protected]>
* Fix handshake timeout leak in asyncio/sslproto Refs MagicStack/uvloopGH-222 * Break circular ref _SSLPipe <-> SSLProtocol * bpo-34745: Fix asyncio ssl memory leak * Break circular ref SSLProtocol <-> UserProtocol * Add NEWS entry (cherry picked from commit f683f46) Co-authored-by: Fantix King <[email protected]>
(cherry picked from commit dc69f69) Co-authored-by: Joan Massich <[email protected]>
) (cherry picked from commit 23581c0) Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 65f64b1) Co-authored-by: Rémi Lapeyre <[email protected]>
(cherry picked from commit 74ae50e) Co-authored-by: CAM Gerlach <[email protected]>
Ensure that _PyRuntime_Finalize() is always call. This change fix a few memory leaks when running "python3 -V".
At Python initialization, the current directory is no longer prepended to sys.path if it has been removed.
Replace strncpy() with memcpy() in call_readline() to fix the
following warning, the NUL byte is written manually just after:
Modules/readline.c: In function ‘call_readline’:
Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before
terminating nul copying as many bytes from a string as its length
[-Wstringop-truncation]
strncpy(p, q, n);
^~~~~~~~~~~~~~~~
Modules/readline.c:1279:9: note: length computed here
n = strlen(p);
^~~~~~~~~
(cherry picked from commit 1600f60)
(cherry picked from commit fc8284e) Co-authored-by: Jean-François B <[email protected]>
(cherry picked from commit c1e2c28) Co-authored-by: Serhiy Storchaka <[email protected]>
…ces. (GH-12241) (cherry picked from commit 7ee88bf) Co-authored-by: Jess <[email protected]>
Also fixes venvs from the build directory on Windows. (cherry picked from commit 8bba81f) Co-authored-by: Steve Dower <[email protected]>
(cherry picked from commit aedc273) Co-authored-by: Isuru Fernando <[email protected]>
bpo-36256: Fix bug in parsermodule when parsing if statements In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one. (cherry picked from commit 9a0000d) Co-authored-by: Pablo Galindo <[email protected]>
) (cherry picked from commit 40b6907) Co-authored-by: Pablo Galindo <[email protected]>
|
PRs attempting to merge a maintenance branch into the master branch are deemed to be spam and automatically closed. If you were attempting to report a bug, please go to bugs.python.org; see devguide.python.org for further instruction as needed. |
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
No description provided.