Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-130940: Modify default behavior ofPyConfig.use_system_logger to enable on iOS#131172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
!buildbot iOS |
bedevere-bot commentedMar 13, 2025
🤖 New build scheduled with the buildbot fleet by@freakboy3742 for commit0f9661c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131172%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
dd6d24e intopython:mainUh oh!
There was an error while loading.Please reload this page.
…er` to enable on iOS (python#131172)Modify default behavior of use_system_log to enable on iOS.
…er` to enable on iOS (python#131172)Modify default behavior of use_system_log to enable on iOS.
Uh oh!
There was an error while loading.Please reload this page.
#127592 added the
PyConfig.use_system_loggerconfiguration flag; this was backported to 3.13 in#127754.This introduced an ABI breakage in 3.13.2; the flag will be removed from 3.13 by#131129.
However, the functional effect of the flag isrequired on iOS so that the logs generated by the simulator can be observed at all. As a general rule, there's very little reason you'dnot want stdout and stderr routed to the system log on iOS - every BeeWare app, for example, includesstd-nslog, which implements effectively the same behavior.
To allow for this,#131129 modifies the behavior on iOS toalways use the system logger for stdout/stderr. This PR ensures that behaviour will be consistent by default between 3.13 and 3.14 - use of the system log is enabled by default on iOS, and disabled by default on macOS.
PyConfig.use_system_loggerhas changed ABI in a patch 3.13.1 -> 3.13.2 #130940📚 Documentation preview 📚:https://cpython-previews--131172.org.readthedocs.build/