Repository navigation
Commit 1c35bd9
The _strptime module object was cached in a static local variable (in the datetime.strptime() implementation). That's a problem when it crosses isolation boundaries, such as reinitializing the runtme or between interpreters. This change fixes the problem by dropping the static variable, instead always relying on the normal sys.modules cache (via PyImport_Import()).
1 parent 86fc6c8 commit 1c35bd9
8 files changed
Lines changed: 24 additions & 8 deletions
File tree
- Include/internal
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
- Tools/c-analyzer/cpython
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 | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
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 | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
407 | 416 | | |
408 | 417 | | |
409 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5514 | 5514 | | |
5515 | 5515 | | |
5516 | 5516 | | |
5517 | | - | |
5518 | | - | |
| 5517 | + | |
5519 | 5518 | | |
5520 | 5519 | | |
5521 | 5520 | | |
5522 | 5521 | | |
| 5522 | + | |
5523 | 5523 | | |
5524 | | - | |
5525 | | - | |
5526 | | - | |
| 5524 | + | |
5527 | 5525 | | |
5528 | | - | |
5529 | | - | |
| 5526 | + | |
| 5527 | + | |
| 5528 | + | |
| 5529 | + | |
5530 | 5530 | | |
5531 | 5531 | | |
5532 | 5532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
| |||
0 commit comments