◐ Shell
clean mode source ↗

bpo-32573: Handle the case when sys.argv is not set by uellue · Pull Request #12463 · python/cpython

I encountered a situation where `sys.argv` wasn't set when using Python as an embedded interpreter. The proposed update will avoid an AttributeError in that case. If sys.argv is set, it should not change behavior.

There's discussions related to correct behavior in this case: 
https://bugs.python.org/issue32573

Is this proposed update to spawn.py the correct fix, or should the embedded case be handled differently, somehow?

@uellue uellue changed the title Handle the case when sys.argv is not set bop-32573 Handle the case when sys.argv is not set

Mar 20, 2019

uellue added a commit to uellue/LiberTEM that referenced this pull request

Mar 20, 2019

sk1p pushed a commit to LiberTEM/LiberTEM that referenced this pull request

Mar 20, 2019

@csabella csabella changed the title bop-32573 Handle the case when sys.argv is not set bpo-32573: Handle the case when sys.argv is not set

May 11, 2019

vstinner