[Patches] [ python-Patches-1477281 ] __init__.py'less package import warnings
SourceForge.net
noreply at sourceforge.net
Thu Apr 27 00:47:08 CEST 2006
Patches item #1477281, was opened at 2006-04-26 18:36
Message generated for change (Comment added) made by gvanrossum
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1477281&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Wouters (twouters)
Assigned to: Guido van Rossum (gvanrossum)
Summary: __init__.py'less package import warnings
Initial Comment:
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'.)
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2006-04-26 18:47
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1477281&group_id=5470
More information about the Patches
mailing list