[Python-Dev] Python-Dev Digest, Vol 35, Issue 143 (original) (raw)

J. Jeffrey Close jjeffreyclose at yahoo.com
Tue Jun 27 01🔞25 CEST 2006


Hi all,

Sorry for my inappropriate posting. I just joined the list and didn't realize the complete scope. I will stay on the list, I'm very interested in it from a semantics & implementation perspective as well. Thanks to Brett for the heads-up.

Jeff

--- Brett Cannon <brett at python.org> wrote:

> > > > Message: 1 > > Date: Mon, 26 Jun 2006 20:27:03 +1000 > > From: Nick Coghlan <ncoghlan at gmail.com> > > Subject: Re: [Python-Dev] ImportWarning flood > > To: Guido van Rossum <guido at python.org> > > Cc: python-dev at python.org > > Message-ID: <449FB677.9040505 at gmail.com> > > Content-Type: text/plain; charset=ISO-8859-1; > > format=flowed > > > > Guido van Rossum wrote: > > > On 6/24/06, Jean-Paul Calderone > > <exarkun at divmod.com> wrote: > > >>> Actually, your application was pretty close to > > being broken a few > > >>> weeks ago, when Guido wanted to drop the > > requirement that a package > > >>> must contain an init file. In that case, > > "import math" would have > > >>> imported the directory, and given you an empty > > package. > > >> But this change was not made, and afaict it is > > not going to be made. > > > > > > Correct. We'll stick with the warning. (At least > > until Py3k but most > > > likely also in Py3k.) > > > > Perhaps ImportWarning should default to being > > ignored, the same way > > PendingDeprecationWarning does? > > > > Then -Wd would become 'the one obvious way' to debug > > import problems, since it > > would switch ImportWarning on without drowning you > > in a flood of import > > diagnostics the way -v can do. > > > > Import Errors could even point you in the right > > direction: > > > > >>> import mypackage.foo > > Traceback (most recent call last): > > File "", line 1, in ? > > ImportError: No module named mypackage.foo > > Diagnostic import warnings can be enabled with > > -Wd > > > > Cheers, > > Nick. > > > > -- > > Nick Coghlan | ncoghlan at gmail.com | > > Brisbane, Australia > > >

> > http://www.boredomandlaziness.org > > > > > > ------------------------------ > > > > Message: 2 > > Date: Mon, 26 Jun 2006 03:41:07 -0700 (PDT) > > From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> > > Subject: Re: [Python-Dev] ImportWarning flood > > To: python-dev at python.org > > Message-ID: > > > <20060626104108.89960.qmail at web31510.mail.mud.yahoo.com> > > Content-Type: text/plain; charset="iso-8859-1" > > > > --- "Martin v. L???wis" <martin at v.loewis.de> wrote: > > > So spend some of the money to come up with an > > alternate solution for > > > 2.5b2. With a potential damage of a million > > dollars, it shouldn't be > > > too difficult to provide a patch by tomorrow, === message truncated ===



More information about the Python-Dev mailing list