[Python-Dev] APIs for internal flags

Guido van Rossum guido@beopen.com
Wed, 12 Jul 2000 07:19:14 -0500

> > Anybody interested in designing an API here?  Some requirements would
> > be platform independence, extensibility, and necessarily the ability
> > to work even in an environment without command line flags (since it
> > still has the corresponding internal flags).

> For starters, here's what mx.Tools defines:
>      sys.verbosity([level]) 
>      sys.debugging([level]) 
>      sys.optimization([level]) 

+1 on the concept.  All the other routines in sys seem to have 'set'
or 'get' in their name (e.g. get/setdefaultencoding).  Maybe we should
conform to that?  You could argue over names, e.g. get/setverbosity,
get/setdebuglevel, get/setoptlevel.

Are there any other flags that you might want to know about?

-i,-c,-x	irrelevant
-S		possibly
-t		yes

--Guido van Rossum (home page: http://dinsdale.python.org/~guido/)