Repository navigation
Commit 272eb23
gh-71199: Report os as the module of posixmodule types and functions
Types such as times_result, uname_result and sched_param, and every
function, reported the platform module (posix or nt) as __module__, so
pickles referenced posix.times_result or posix.stat and could not be
loaded on Windows. Name the types os.<type> like stat_result
(gh-63408), and set the module's __name__ to os before adding its
functions. os re-exports all of them, and older pickles keep loading
through the platform module.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent d05a3bf commit 272eb23
7 files changed
Lines changed: 39 additions & 14 deletions
File tree
- Include/internal
- Lib/test/test_os
- Modules
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| 720 | + | |
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | 182 | | |
184 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | | - | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
209 | 218 | | |
210 | 219 | | |
211 | 220 | | |
| |||
5614 | 5623 | | |
5615 | 5624 | | |
5616 | 5625 | | |
| 5626 | + | |
| 5627 | + | |
5617 | 5628 | | |
5618 | 5629 | | |
5619 | 5630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1451 | 1454 | | |
1452 | 1455 | | |
1453 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
659 | 658 | | |
660 | 659 | | |
661 | | - | |
| 660 | + | |
662 | 661 | | |
663 | 662 | | |
664 | 663 | | |
| |||
2561 | 2560 | | |
2562 | 2561 | | |
2563 | 2562 | | |
2564 | | - | |
| 2563 | + | |
2565 | 2564 | | |
2566 | 2565 | | |
2567 | 2566 | | |
| |||
6768 | 6767 | | |
6769 | 6768 | | |
6770 | 6769 | | |
6771 | | - | |
| 6770 | + | |
6772 | 6771 | | |
6773 | 6772 | | |
6774 | 6773 | | |
| |||
8818 | 8817 | | |
8819 | 8818 | | |
8820 | 8819 | | |
8821 | | - | |
| 8820 | + | |
8822 | 8821 | | |
8823 | 8822 | | |
8824 | 8823 | | |
| |||
11376 | 11375 | | |
11377 | 11376 | | |
11378 | 11377 | | |
11379 | | - | |
| 11378 | + | |
11380 | 11379 | | |
11381 | 11380 | | |
11382 | 11381 | | |
| |||
16840 | 16839 | | |
16841 | 16840 | | |
16842 | 16841 | | |
16843 | | - | |
| 16842 | + | |
16844 | 16843 | | |
16845 | 16844 | | |
16846 | 16845 | | |
| |||
17397 | 17396 | | |
17398 | 17397 | | |
17399 | 17398 | | |
17400 | | - | |
| 17399 | + | |
17401 | 17400 | | |
17402 | 17401 | | |
17403 | 17402 | | |
| |||
19106 | 19105 | | |
19107 | 19106 | | |
19108 | 19107 | | |
| 19108 | + | |
| 19109 | + | |
| 19110 | + | |
| 19111 | + | |
| 19112 | + | |
| 19113 | + | |
| 19114 | + | |
| 19115 | + | |
| 19116 | + | |
19109 | 19117 | | |
19110 | 19118 | | |
19111 | 19119 | | |
| |||
19302 | 19310 | | |
19303 | 19311 | | |
19304 | 19312 | | |
19305 | | - | |
19306 | 19313 | | |
19307 | 19314 | | |
19308 | 19315 | | |
| |||
0 commit comments