[Patches] [ python-Patches-1477281 ] __init__.py'less package import warnings
SourceForge.net
noreply at sourceforge.net
Wed May 3 23:02:27 CEST 2006
Patches item #1477281, was opened at 2006-04-26 22:36
Message generated for change (Settings changed) made by gbrandl
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: Closed
>Resolution: Accepted
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: Georg Brandl (gbrandl)
Date: 2006-05-03 21:02
Message:
Logged In: YES
user_id=849994
Looks like this got checked in in rev. 45770.
----------------------------------------------------------------------
Comment By: Thomas Wouters (twouters)
Date: 2006-04-26 22:54
Message:
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? :>)
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2006-04-26 22: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