AW: [Python-Dev] exit in __builtins__

Oliver Walczak oliver.walczak at momatec.de
Thu Aug 26 14:30:50 CEST 2004


Yes, it's "only" in site.py:

__builtin__.quit = __builtin__.exit = exit

Allright, I think it makes sense like it is :-)

Thanx
Oliver

-----Ursprüngliche Nachricht-----
Von: Rodrigo B. de Oliveira [mailto:rodrigobamboo at gmail.com] 
Gesendet: Donnerstag, 26. August 2004 14:07
An: Oliver Walczak
Cc: python-dev at python.org
Betreff: Re: [Python-Dev] exit in __builtins__


Hi!

Try to type 'exit' or 'quit' in the interactive shell and you see its
purpose. Pretty clever.

Cheers,
Rodrigo

On Thu, 26 Aug 2004 14:00:40 +0200, Oliver Walczak
<oliver.walczak at momatec.de> wrote:
> Dear list,
> ...
> 
> 
> Is it a bug or a feature? exit as builtin is not documented anywhere and I
> cannot find out where it gets included or attached to the str object in
the
> sources. Any idea?
> 
> Best regards
> Oliver



More information about the Python-Dev mailing list