Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.7 #13590

Closed
wants to merge 1,921 commits into from
Closed

3.7 #13590

wants to merge 1,921 commits into from

Conversation

edkazic
Copy link

@edkazic edkazic commented May 27, 2019

No description provided.

ned-deily and others added 30 commits March 12, 2019 19:44
(cherry picked from commit 26c910c)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
…2264). (GH-12322)

(cherry picked from commit d53fe5f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…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 <sungboss2004@gmail.com>
…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 <dmalcolm@redhat.com>
(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 <yalshalaan@gmail.com>
* 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 <rhettinger@users.noreply.github.com>
(cherry picked from commit 0bb5e75)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* 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 <fantix.king@gmail.com>
(cherry picked from commit dc69f69)

Co-authored-by: Joan Massich <mailsik@gmail.com>
)

(cherry picked from commit 23581c0)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
(cherry picked from commit 65f64b1)

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
…-12415)

The test test_customize_compiler() now mocks all sysconfig variables
and all environment variables used by customize_compiler().

(cherry picked from commit 72c7b37)
(cherry picked from commit 74ae50e)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
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 <jfbu@free.fr>
(cherry picked from commit c1e2c28)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…ces. (GH-12241)

(cherry picked from commit 7ee88bf)

Co-authored-by: Jess <jess@gmail.com>
Also fixes venvs from the build directory on Windows.
(cherry picked from commit 8bba81f)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
(cherry picked from commit aedc273)

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
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 <Pablogsal@gmail.com>
)

(cherry picked from commit 40b6907)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@the-knights-who-say-ni
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.