Message 337920 - Python tracker (original) (raw)
Message337920
| Author | ncoghlan |
|---|---|
| Recipients | Anthony Sottile, Chris Billington, Ivan.Pozdeev, Peter L3, SilentGhost, __Vano, barry, brett.cannon, cheryl.sabella, christian.heimes, eric.smith, eric.snow, ethan smith, ionelmc, jaraco, mhammond, ncoghlan, pitrou, steve.dower, takluyver, terry.reedy, veky |
| Date | 2019-03-14.14:36:07 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | 1552574167.4.0.0599262356842.issue33944@roundup.psfhosted.org |
| In-reply-to |
| Content |
|---|
| Just noting that https://bugs.python.org/issue14803 is probably our most comprehensive discussion of the coverage use case for arbitrary pre-__main__ code execution. Steve also made a comment above about potentially turning encodings into a namespace package: that's difficult due to the non-empty `__init__.py` file that registers a couple of codec search functions as a side effect of import: https://github.com/python/cpython/blob/master/Lib/encodings/__init__.py However, it would be possible to define a *new* namespace package for codec discovery that was searched after the standard search locations (so you could use it to add extra codecs, but not hijack existing ones). |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-03-14 14:36:07 | ncoghlan | set | recipients: + ncoghlan, mhammond, barry, brett.cannon, terry.reedy, jaraco, pitrou, eric.smith, christian.heimes, ionelmc, SilentGhost, __Vano, eric.snow, takluyver, steve.dower, veky, Ivan.Pozdeev, Anthony Sottile, ethan smith, cheryl.sabella, Chris Billington, Peter L3 |
| 2019-03-14 14:36:07 | ncoghlan | set | messageid: 1552574167.4.0.0599262356842.issue33944@roundup.psfhosted.org |
| 2019-03-14 14:36:07 | ncoghlan | link | issue33944 messages |
| 2019-03-14 14:36:07 | ncoghlan | create |