Commit 33b7909
Add PyConfig_Get(), PyConfig_GetInt(), PyConfig_Set() and
PyConfig_Names() functions to get and set the current runtime Python
configuration.
Add visibility and "sys spec" to config and preconfig specifications.
_PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent db42934 commit 33b7909Copy full SHA for 33b7909
File tree
Expand file treeCollapse file tree
19 files changed
+1466
-257
lines changedOpen diff view settings
Filter options
- Doc
- c-api
- whatsnew
- Include
- cpython
- internal
- Lib/test
- test_capi
- Misc/NEWS.d/next/C_API
- Modules
- _testcapi
- PCbuild
- Python
- Tools/c-analyzer/cpython
Expand file treeCollapse file tree
19 files changed
+1466
-257
lines changedOpen diff view settings
Collapse file
+69Lines changed: 69 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1605 | 1605 | |
1606 | 1606 | |
1607 | 1607 | |
| 1608 | + |
| 1609 | + |
| 1610 | + |
| 1611 | + |
| 1612 | + |
| 1613 | + |
| 1614 | + |
| 1615 | + |
| 1616 | + |
| 1617 | + |
| 1618 | + |
| 1619 | + |
| 1620 | + |
| 1621 | + |
| 1622 | + |
| 1623 | + |
| 1624 | + |
| 1625 | + |
| 1626 | + |
| 1627 | + |
| 1628 | + |
| 1629 | + |
| 1630 | + |
| 1631 | + |
| 1632 | + |
| 1633 | + |
| 1634 | + |
| 1635 | + |
| 1636 | + |
| 1637 | + |
| 1638 | + |
| 1639 | + |
| 1640 | + |
| 1641 | + |
| 1642 | + |
| 1643 | + |
| 1644 | + |
| 1645 | + |
| 1646 | + |
| 1647 | + |
| 1648 | + |
| 1649 | + |
| 1650 | + |
| 1651 | + |
| 1652 | + |
| 1653 | + |
| 1654 | + |
| 1655 | + |
| 1656 | + |
| 1657 | + |
| 1658 | + |
| 1659 | + |
| 1660 | + |
| 1661 | + |
| 1662 | + |
| 1663 | + |
| 1664 | + |
| 1665 | + |
| 1666 | + |
| 1667 | + |
| 1668 | + |
| 1669 | + |
| 1670 | + |
| 1671 | + |
| 1672 | + |
| 1673 | + |
| 1674 | + |
| 1675 | + |
| 1676 | + |
1608 | 1677 | |
1609 | 1678 | |
1610 | 1679 | |
|
Collapse file
+9Lines changed: 9 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
492 | 492 | |
493 | 493 | |
494 | 494 | |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
495 | 504 | |
496 | 505 | |
497 | 506 | |
|
Collapse file
Include/cpython/initconfig.h
Copy file name to clipboardExpand all lines: Include/cpython/initconfig.h+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
260 | 260 | |
261 | 261 | |
262 | 262 | |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
263 | 271 | |
264 | 272 | |
265 | 273 | |
|
Collapse file
Include/internal/pycore_initconfig.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_initconfig.h+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
181 | 181 | |
182 | 182 | |
183 | 183 | |
184 | | - |
| 184 | + |
185 | 185 | |
186 | 186 | |
187 | 187 | |
|
Collapse file
Include/internal/pycore_sysmodule.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_sysmodule.h+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
| 32 | + |
| 33 | + |
| 34 | + |
32 | 35 | |
33 | 36 | |
34 | 37 | |
|
Collapse file
Lib/test/_test_embed_set_config.py
Copy file name to clipboardExpand all lines: Lib/test/_test_embed_set_config.py+12-11Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
137 | 137 | |
138 | 138 | |
139 | 139 | |
140 | | - |
| 140 | + |
| 141 | + |
141 | 142 | |
142 | 143 | |
143 | 144 | |
| ||
160 | 161 | |
161 | 162 | |
162 | 163 | |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
171 | 172 | |
172 | 173 | |
173 | 174 | |
| ||
228 | 229 | |
229 | 230 | |
230 | 231 | |
231 | | - |
| 232 | + |
232 | 233 | |
233 | | - |
| 234 | + |
234 | 235 | |
235 | 236 | |
236 | 237 | |
|
0 commit comments