What's up with site.Quitter?
Fredrik Lundh
fredrik at pythonware.com
Wed Sep 27 01:32:55 EDT 2006
James Stroud wrote:
> Yes, but I was speaking more consistency than convenience (see above for
> what I mean by consistency).
why would having access to a type object for exit/quit help you do
proper syntax coloring, btw? if you want to generate a syntax table,
wouldn't it be better to use things like
issubclass(obj, Exception)
and
callable(obj)
etc. ?
(__builtins__ is an implementation detail, btw; if you want a list of
the builtins, import __builtin__ (no plural) and do dir on that).
</F>
More information about the Python-list
mailing list