◐ Shell
clean mode source ↗

[3.7] bpo-32573: sys.argv always exists and is non-empty by vstinner · Pull Request #13553 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented

May 24, 2019

edited by bedevere-bot

Loading

Copy link Copy Markdown

Member

Ensure that sys.argv always exists and is non-empty.

When Python is embedded in an application and argv is not set,
use [''].

https://bugs.python.org/issue32573

Ensure that sys.argv always exists and is non-empty.

When Python is embedded in an application and ``argv`` is not set,
use [''].

@vstinner

Copy link Copy Markdown

Member Author

@ncoghlan: Do you consider that https://bugs.python.org/issue32573 is a bug that should be fixed in Python 3.7? Is it ok to change the behavior in a minor Python 3.7 release?

See also PR #12463.

@ned-deily

Copy link Copy Markdown

Member

I don't think we should change this behavior in a maintenance release unless it were a regression in 3.7. It's not, though, right?

@vstinner

vstinner commented

Jun 2, 2019

Copy link Copy Markdown

Member Author

I don't think we should change this behavior in a maintenance release unless it were a regression in 3.7. It's not, though, right?

Ok. I close my PR.

@vstinner vstinner closed this

Jun 2, 2019

@vstinner vstinner deleted the main_argv37 branch

June 2, 2019 21:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner @ned-deily @the-knights-who-say-ni @bedevere-bot