Uh oh!
There was an error while loading. Please reload this page.
bpo-28254: _posixsubprocess uses PyGC_Enable/PyGC_Disable - #25693
Conversation
vstinner
commented
Apr 28, 2021
pablogsal
commented
Apr 28, 2021
👀 |
vstinner
commented
Apr 28, 2021
Thanks. I fixed test_subprocess. |
scoder
commented
Apr 28, 2021
Actually, I think much of this could already have been saved before by using the ID-string API. But still, this is just so much better. |
vstinner
commented
Apr 28, 2021
I don't think that using cached interned strings is really relevant here, spawning a subprocess takes a few milliseconds, we are far from nanoseconds avoided thanks to the cache. Anyway, it's now gone ;-) |
| preexec_fn=lambda: None) | ||
| finally: | ||
| gc.disable = orig_gc_disable | ||
| gc.isenabled = orig_gc_isenabled |
There was a problem hiding this comment.
saving and restoring these two with the try: finally: seems no longer necessary now that they're not being monkeypatched out to cause errors. (harmless, but anyone reading this will wonder why...)
https://bugs.python.org/issue28254