diff --git a/.gitignore b/.gitignore
index 2a6f249275c32e..cdb0352e0a8836 100644
--- a/.gitignore
+++ b/.gitignore
@@ -171,5 +171,10 @@ Python/frozen_modules/MANIFEST
/python
!/Python/
+# People's custom https://docs.anthropic.com/en/docs/claude-code/memory configs.
+/.claude/
+CLAUDE.local.md
+
+#### main branch only stuff below this line, things to backport go above. ####
# main branch only: ABI files are not checked/maintained.
Doc/data/python*.abi
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index cf22250cac6091..ca0654acb33689 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -2445,8 +2445,9 @@ and classes for traversing abstract syntax trees:
indents that many spaces per level. If *indent* is a string (such as ``"\t"``),
that string is used to indent each level.
- If *show_empty* is ``False`` (the default), empty lists and fields that are ``None``
- will be omitted from the output.
+ If *show_empty* is false (the default), optional empty lists will be
+ omitted from the output.
+ Optional ``None`` values are always omitted.
.. versionchanged:: 3.9
Added the *indent* option.
diff --git a/Misc/NEWS.d/next/Build/2025-05-30-11-02-30.gh-issue-134923.gBkRg4.rst b/Misc/NEWS.d/next/Build/2025-05-30-11-02-30.gh-issue-134923.gBkRg4.rst
new file mode 100644
index 00000000000000..a742a6add8ae93
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2025-05-30-11-02-30.gh-issue-134923.gBkRg4.rst
@@ -0,0 +1,3 @@
+Windows builds with profile-guided optimization enabled now use
+``/GENPROFILE`` and ``/USEPROFILE`` instead of deprecated ``/LTCG:``
+options.
diff --git a/PCbuild/_testclinic_limited.vcxproj b/PCbuild/_testclinic_limited.vcxproj
index 183a55080e8693..95c205309b1f30 100644
--- a/PCbuild/_testclinic_limited.vcxproj
+++ b/PCbuild/_testclinic_limited.vcxproj
@@ -70,6 +70,7 @@
{01FDF29A-40A1-46DF-84F5-85EBBD2A2410}
_testclinic_limited
Win32Proj
+ false
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 7272542e13a5ca..ce51e342241686 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -96,19 +96,16 @@
MachineX64
MachineARM
MachineARM64
- $(OutDir)$(TargetName).pgd
- UseLinkTimeCodeGeneration
- PGInstrument
- PGUpdate
+ UseLinkTimeCodeGeneration
advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies)
/OPT:REF,NOICF %(AdditionalOptions)
-d2:-pattern-opt-disable:-932189325 %(AdditionalOptions)
+ /GENPROFILE %(AdditionalOptions)
+ /USEPROFILE %(AdditionalOptions)
false
- true
- true
- true
+ true
$(PySourcePath)PC;$(PySourcePath)Include;$(IntDir);%(AdditionalIncludeDirectories)