[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.227,2.228

Michael Hudson mwh@python.net
24 Aug 2001 14:23:23 -0400

Tim Peters <tim_one@users.sourceforge.net> writes:

> ! 	/* XXX Warn if (supplied_flags & PyCF_MASK_OBSOLETE) != 0? */

I think not.

If, as I *think*, all code objects compiled in 2.2 have

   ob.co_flags & __future__.nested_scopes.compiler_flag

non-zero, then, eg., idle will compile all code typed interactively
(after the first line, anyway) with
__future__.nested_scopes.compiler_flag in the supplied_flags argument
to compile().  This could be wormed around, obviously, but I don't see
the point.