Skip to content

Commit b3cafb6

Browse files
authored
[3.11] Fix v3.11.0 release merge problems (GH-98622)
When merging the v3.11.0 tag into 3.11, some files were incorrectly updated and some others were not properly deleted. Automerge-Triggered-By: GH:pablogsal
1 parent 3a1eb81 commit b3cafb6

26 files changed

+2
-155
lines changed

Doc/library/venv.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,6 @@ You can deactivate a virtual environment by typing ``deactivate`` in your shell.
129129
The exact mechanism is platform-specific and is an internal implementation
130130
detail (typically, a script or shell function will be used).
131131

132-
.. warning:: Because scripts installed in environments should not expect the
133-
environment to be activated, their shebang lines contain the absolute paths
134-
to their environment's interpreters. Because of this, environments are
135-
inherently non-portable, in the general case. You should always have a
136-
simple means of recreating an environment (for example, if you have a
137-
requirements file ``requirements.txt``, you can invoke ``pip install -r
138-
requirements.txt`` using the environment's ``pip`` to install all of the
139-
packages needed by the environment). If for any reason you need to move the
140-
environment to a new location, you should recreate it at the desired
141-
location and delete the one at the old location. If you move an environment
142-
because you moved a parent directory of it, you should recreate the
143-
environment in its new location. Otherwise, software installed into the
144-
environment may not work as expected.
145132

146133
.. _venv-api:
147134

Doc/whatsnew/3.11.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
:Release: |release|
66
:Date: |today|
7+
:Editor: Pablo Galindo Salgado
78

89
.. Rules for maintenance:
910
@@ -1590,10 +1591,6 @@ Changed/removed opcodes
15901591
:opcode:`!POP_BLOCK`, :opcode:`!SETUP_FINALLY` and :opcode:`!YIELD_FROM`.
15911592

15921593

1593-
.. _whatsnew311-deprecated:
1594-
.. _whatsnew311-python-api-deprecated:
1595-
1596-
15971594
.. _whatsnew311-deprecated:
15981595
.. _whatsnew311-python-api-deprecated:
15991596

@@ -1769,9 +1766,6 @@ Standard Library
17691766
(Contributed by Erlend E. Aasland in :issue:`5846`.)
17701767

17711768

1772-
.. _whatsnew311-pending-removal:
1773-
.. _whatsnew311-python-api-pending-removal:
1774-
17751769
.. _whatsnew311-pending-removal:
17761770
.. _whatsnew311-python-api-pending-removal:
17771771

Include/patchlevel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.11.0rc2+"
26+
#define PY_VERSION "3.11.0+"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/test/test_frame.py

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -326,69 +326,5 @@ def f():
326326
gc.enable()
327327

328328

329-
@support.cpython_only
330-
def test_sneaky_frame_object(self):
331-
332-
def trace(frame, event, arg):
333-
"""
334-
Don't actually do anything, just force a frame object to be created.
335-
"""
336-
337-
def callback(phase, info):
338-
"""
339-
Yo dawg, I heard you like frames, so I'm allocating a frame while
340-
you're allocating a frame, so you can have a frame while you have a
341-
frame!
342-
"""
343-
nonlocal sneaky_frame_object
344-
sneaky_frame_object = sys._getframe().f_back
345-
# We're done here:
346-
gc.callbacks.remove(callback)
347-
348-
def f():
349-
while True:
350-
yield
351-
352-
old_threshold = gc.get_threshold()
353-
old_callbacks = gc.callbacks[:]
354-
old_enabled = gc.isenabled()
355-
old_trace = sys.gettrace()
356-
try:
357-
# Stop the GC for a second while we set things up:
358-
gc.disable()
359-
# Create a paused generator:
360-
g = f()
361-
next(g)
362-
# Move all objects to the oldest generation, and tell the GC to run
363-
# on the *very next* allocation:
364-
gc.collect()
365-
gc.set_threshold(1, 0, 0)
366-
# Okay, so here's the nightmare scenario:
367-
# - We're tracing the resumption of a generator, which creates a new
368-
# frame object.
369-
# - The allocation of this frame object triggers a collection
370-
# *before* the frame object is actually created.
371-
# - During the collection, we request the exact same frame object.
372-
# This test does it with a GC callback, but in real code it would
373-
# likely be a trace function, weakref callback, or finalizer.
374-
# - The collection finishes, and the original frame object is
375-
# created. We now have two frame objects fighting over ownership
376-
# of the same interpreter frame!
377-
sys.settrace(trace)
378-
gc.callbacks.append(callback)
379-
sneaky_frame_object = None
380-
gc.enable()
381-
next(g)
382-
# g.gi_frame should be the the frame object from the callback (the
383-
# one that was *requested* second, but *created* first):
384-
self.assertIs(g.gi_frame, sneaky_frame_object)
385-
finally:
386-
gc.set_threshold(*old_threshold)
387-
gc.callbacks[:] = old_callbacks
388-
sys.settrace(old_trace)
389-
if old_enabled:
390-
gc.enable()
391-
392-
393329
if __name__ == "__main__":
394330
unittest.main()

Misc/NEWS.d/next/Build/2022-09-11-14-23-49.gh-issue-96729.W4uBWL.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2020-11-15-02-08-43.bpo-42316.LqdkWK.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-09-05-19-20-44.gh-issue-96587.bVxhX2.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-09-16-19-02-40.gh-issue-95778.cJmnst.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-09-18-08-47-40.gh-issue-96821.Co2iOq.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

Misc/NEWS.d/next/Core and Builtins/2022-09-21-14-38-31.gh-issue-96848.WuoLzU.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)