[Python-Dev] one more restriction for from __future__ import ...

Jeremy Hylton jeremy@alum.mit.edu
Tue, 27 Feb 2001 19:13:42 -0500 (EST)


>>>>> "GE" == Greg Ewing <greg@cosc.canterbury.ac.nz> writes:

  >> The pass to find future statements exits as soon as it finds
  >> something that isn't a doc string or a future.

  GE> Well, don't do that, then. Have the find_future_statements pass
  GE> keep going and look for *illegal* future statements as well.

  GE> Then, subsequent passes can just ignore any import that looks
  GE> like a future statement, because it will already have been
  GE> either processed or reported as an error.

I like this idea best so far.

Jeremy