[Python-checkins] CVS: python/dist/src/Doc/ref ref6.tex,1.50,1.51

Jeremy Hylton jeremy@zope.com
Mon, 1 Apr 2002 16:52:21 -0500


>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

  >> ! The \keyword{from} form with \samp{*} may only occur in a
  >> module ! scope.  If the wild card form of import --- \samp{import
  >> *} --- is ! used in a function and the function contains or is a
  >> nested block with ! free variables, the compiler will raise a
  >> \exception{SyntaxError}.  !  \kwindex{from} \stindex{from}

  GvR> Hm...  Maybe this is a situation where appropriate use of
  GvR> should and shall would be clearer?

I take it you mean: "The from form with * should only occur in a
module scope."

That sounds fine to me, although it leaves me wondering: "What does
should mean?"  Does it mean that my code may break in the future?  Or
does it mean that if Guido ever runs into my mom, he'll tell her I'm
breaking the rules.

Jeremy