Skip to content

bpo-32030: Make _PySys_AddXOptionWithError() private#10236

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:sys_with_error
Oct 30, 2018
Merged

bpo-32030: Make _PySys_AddXOptionWithError() private#10236
vstinner merged 1 commit intopython:masterfrom
vstinner:sys_with_error

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 30, 2018

Make _PySys_AddXOptionWithError() and _PySys_AddWarnOptionWithError()
functions private again. They are no longer need to initalize Python:
_PySys_EndInit() is now responsible to add these options instead.

Moreover, PySys_AddWarnOptionUnicode() now clears the exception on
failure if possible.

https://bugs.python.org/issue32030

Make _PySys_AddXOptionWithError() and _PySys_AddWarnOptionWithError()
functions private again. They are no longer need to initalize Python:
_PySys_EndInit() is now responsible to add these options instead.

Moreover, PySys_AddWarnOptionUnicode() now clears the exception on
failure if possible.
@vstinner vstinner merged commit e1b2995 into python:master Oct 30, 2018
@vstinner vstinner deleted the sys_with_error branch October 30, 2018 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants