Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb50330

Browse files
PEP 684: Minor Updates (python#3004)
I had forgotten to update the Post-History header back in October. There was also one minor point from that round of discussion that I had not added to the PEP yet.
1 parent e92c4d6 commit bb50330

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ repos:
223223
- id: validate-post-history
224224
name: "'Post-History' must be '`DD-mmm-YYYY <Thread URL>`__, ...'"
225225
language: pygrep
226-
entry: '(?<=\n)Post-History:(?:(?! ?\n|((( +|\n {1,14})(([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9])|`([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9]) <https://((discuss\.python\.org/t/([\w\-]+/)?\d+/?)|(mail\.python\.org/pipermail/[\w\-]+/\d{4}-[A-Za-z]+/[A-Za-z0-9]+\.html)|(mail\.python\.org/archives/list/[\w\-]+@python\.org/thread/[A-Za-z0-9]+/?(#[A-Za-z0-9]+)?))>`__)(,|(?=\n[^ ])))+\n(?=[A-Z\n]))))'
226+
entry: '(?<=\n)Post-History:(?:(?! ?\n|((( +|\n {1,14})(([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9])|`([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9]) <https://((discuss\.python\.org/t/([\w\-]+/)?\d+(?:/\d+)?/?)|(mail\.python\.org/pipermail/[\w\-]+/\d{4}-[A-Za-z]+/[A-Za-z0-9]+\.html)|(mail\.python\.org/archives/list/[\w\-]+@python\.org/thread/[A-Za-z0-9]+/?(#[A-Za-z0-9]+)?))>`__)(,|(?=\n[^ ])))+\n(?=[A-Z\n]))))'
227227
args: [--multiline]
228228
files: '^pep-\d+\.(rst|txt)$'
229229
types: [text]

pep-0684.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Created: 08-Mar-2022
1010
Python-Version: 3.12
1111
Post-History: `08-Mar-2022 <https://mail.python.org/archives/list/[email protected]/thread/CF7B7FMACFYDAHU6NPBEVEY6TOSGICXU/>`__,
1212
`29-Sep-2022 <https://discuss.python.org/t/pep-684-a-per-interpreter-gil/19583>`__,
13+
`28-Oct-2022 <https://discuss.python.org/t/pep-684-a-per-interpreter-gil/19583/19>`__,
1314
Resolution:
1415

1516

@@ -401,6 +402,10 @@ on the GIL for thread safety.
401402
In ``PyInterpreterConfig_INIT``, this will be ``true``.
402403
In ``PyInterpreterConfig_LEGACY_INIT``, this will be ``false``.
403404

405+
Also, to play it safe, for now we will not allow ``own_gil`` to be true
406+
if a custom allocator was set during runtime init. Wrapping the allocator,
407+
a la tracemalloc, will still be fine.
408+
404409
PyInterpreterConfig.strict_extensions_compat
405410
''''''''''''''''''''''''''''''''''''''''''''
406411

0 commit comments

Comments
 (0)