Issue 1477281: init.py'less package import warnings (original) (raw)
Issue1477281
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/43282
classification
Title: | __init__.py'less package import warnings | |
---|---|---|
Type: | Stage: | |
Components: | Interpreter Core | Versions: |
process
Status: | closed | Resolution: | accepted |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | gvanrossum | Nosy List: | georg.brandl, gvanrossum, twouters |
Priority: | normal | Keywords: | patch |
Created on 2006-04-26 22:36 by twouters, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
pitchfork-repellant.diff | twouters,2006-04-26 22:36 | noogle-be-gone |
Messages (4) | ||
---|---|---|
msg50112 - (view) | Author: Thomas Wouters (twouters) * ![]() |
Date: 2006-04-26 22:36 |
New! Industrial strength pitchfork-repellant. Just sprinkle onto 2.5 and watch the pitchforks melt away, to be replaced by hearthfelt grouphugs. This patch (which probably needs some reformatting) adds warnings when Python would have imported a module, if only there had been an __init__.py. The text is currently helpful, but it can easily be changed into a FutureWarning with a warning that it'll change in 2.6 (or 'might change in the future'.) | ||
msg50113 - (view) | Author: Guido van Rossum (gvanrossum) * ![]() |
Date: 2006-04-26 22:47 |
Logged In: YES user_id=6380 The patch doesn't check for errors coming out of PyErr_Warn() -- remember, a warning can always be turned into an exception. I'll see if we can patch Google's Python like this. | ||
msg50114 - (view) | Author: Thomas Wouters (twouters) * ![]() |
Date: 2006-04-26 22:54 |
Logged In: YES user_id=34209 Let's just check it into Python 2.5 instead (it's still an hour and 7 minutes until trunk freeze, I think? :>) | ||
msg50115 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2006-05-03 21:02 |
Logged In: YES user_id=849994 Looks like this got checked in in rev. 45770. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:17 | admin | set | github: 43282 |
2006-04-26 22:36:48 | twouters | create |