gh-132413: Check if datetime current state is not NULL#136321
gh-132413: Check if datetime current state is not NULL#136321sergey-miryanov wants to merge 2 commits intopython:mainfrom
Conversation
- if it is NULL then interpeter shuting down
|
@neonene I cherry-picked and squashed your commits with test. If you don't like this - I will revert/remove it. |
|
I presume it was closed because of this PR they opened, #136152, which seems like a more concrete approach. |
Ough! My oversight! Thanks! |
|
Looking deeper that one is also most likely superseded by #136189 |
|
Closing in favor of #136152 |
|
This solution raises a |
Yeah, but I believe that exception (swallowed in this case) better than a crash. But I hope your PR will be approved and merged soon. |
If it is a NULL then interpreter shutting down and we can do nothing
datetime.timedelta(possibly from datetime's Cdelta_new) #132413