Patches item #1477281, was opened at 2006-04-27 00:36 Message generated for change (Comment added) made by twouters 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: Thomas Wouters (twouters) Date: 2006-04-27 00: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-27 00: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 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
