Skip to content
Permalink
main
Switch branches/tags

Commits on Jul 9, 2022

  1. gh-94607: Fix subclassing generics (GH-94610)

    Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
    Fidget-Spinner and serhiy-storchaka committed Jul 9, 2022

Commits on Jul 8, 2022

  1. GH-90699: Intern statically allocated strings (GH-93597)

    This is similar to how strings are interned for deepfreeze.
    kumaraditya303 committed Jul 8, 2022
  2. gh-93649: Split vectorcall testing from _testcapimodule.c (GH-94549)

    The `_testcapimodule.c` file is getting too large to work with effectively.
    This PR lays out a general structure of how tests can be split up, with more splitting to come later if the structure is OK.
    
    Vectorcall tests aren't the biggest issue -- it's just an area I want to work on next, so I'm starting here.
    An issue specific to vectorcall tests is that it wasn't clear that e.g. `MethodDescriptor2` is related to testing vectorcall: the `/* Test PEP 590 */` section had an ambiguous end. Separate file should make things like this much clearer.
    OTOH, for some pieces it might not be clear where they should be -- I left `meth_fastcall` with tests of the other calling conventions. IMO, even with the ambiguity it's still worth it to split the huge file up.
    
    I'm not sure about the buildsystem changes, hopefully CI will tell me what's wrong.
    
    @vstinner, @markshannon: Do you think this is a good idea?
    
    Automerge-Triggered-By: GH:encukou
    encukou committed Jul 8, 2022
  3. gh-94199: Remove the ssl.wrap_socket() function (#94203)

    Remove the ssl.wrap_socket() function, deprecated in Python 3.7:
    instead, create a ssl.SSLContext object and call its
    sl.SSLContext.wrap_socket() method. Any package that still uses
    ssl.wrap_socket() is broken and insecure. The function neither sends
    a SNI TLS extension nor validates server hostname. Code is subject to
    CWE-295 : Improper Certificate Validation.
    vstinner committed Jul 8, 2022
  4. gh-94215: Fix error handling for line-tracing events (GH-94681)

    * Re-enable crasher
    * Fix error handling for line-tracing events
    * blurb add
    brandtbucher committed Jul 8, 2022

Commits on Jul 7, 2022

  1. gh-94642: Remove -D_XOPEN_SOURCE from more pkg-config CFLAGS (#94657)

    Some pkg-config pc files define CFLAGS with -D_XOPEN_SOURCE=600. We always want _XOPEN_SOURCE=700.
    tiran committed Jul 7, 2022
  2. gh-93910: Fix enum performance regression (GH-94614)

    This removes the performance regression in 3.11, **at the expense of not fixing
    the "bug" that allows accessing values from values** (e.g. `Color.RED.BLUE`).
    
    Using the benchmark @markshannon [presented](#93910 (comment)), the results are:
    
    | Version | Enum | Fast enum | Normal class |
    | --- | --- | --- | --- |
    | 3.10 | 2.04 | 0.59 | 0.56 |
    | 3.11 | 2.78 | 0.31 | 0.15 |
    | This PR | 1.30 | 0.32 | 0.16 |
    
    I share this mostly as information about the source of the regression, as this may be useful. It may be that the lower-risk approach for the beta is just to revert to a previously-known working state.
    mdboom committed Jul 7, 2022
  3. gh-94628: Add explicit parameter list to sqlite3.connect docs (#94629)

    Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
    erlend-aasland and CAM-Gerlach committed Jul 7, 2022
  4. gh-92228: disable the compiler's 'small exit block inlining' optimiza…

    …tion for blocks that have a line number (GH-94592)
    
    Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature.
    
    This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None".
    iritkatriel committed Jul 7, 2022

Commits on Jul 6, 2022

  1. gh-94017: Improve clarity of sqlite3 transaction handling docs (#94320)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
    3 people committed Jul 6, 2022
  2. gh-90005: Port readline and curses to PY_STDLIB_MOD (GH-94452)

    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
    tiran and erlend-aasland committed Jul 6, 2022
  3. gh-94438: in frameobject's mark_stacks switch, the PUSH_EXC_INFO and …

    …POP_EXCEPT cases are no longer reachable (GH-94582)
    iritkatriel committed Jul 6, 2022

Commits on Jul 5, 2022

  1. gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (

    GH-94511)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    pablogsal and ambv committed Jul 5, 2022
  2. gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424

    )
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    debonte and ambv committed Jul 5, 2022
  3. gh-94360: Fix a tokenizer crash when reading encoded files with synta…

    …x errors from stdin (#94386)
    
    * gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin
    
    Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
    
    * nitty nit
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    pablogsal and ambv committed Jul 5, 2022
  4. gh-90355: Add isolated flag if currently isolated (GH-92857)

    Co-authored-by: Éric <merwok@netwok.org>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people committed Jul 5, 2022
  5. gh-92897: Ensure venv --copies respects source build property of th…

    …e creating interpreter (GH-92899)
    jkloth committed Jul 5, 2022
  6. Docs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489

    )
    
    Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    3 people committed Jul 5, 2022
  7. gh-94485: Set line number of module's RESUME instruction to 0, as spe…

    …cified by PEP 626 (GH-94552)
    
    Co-authored-by: Mark Shannon <mark@hotpy.org>
    iritkatriel and markshannon committed Jul 5, 2022
Older