[Python-Dev] 2.5 issues need resolving in a few days

Thomas Wouters thomas at python.org
Fri Jun 9 16:41:22 CEST 2006


On 6/9/06, Aahz <aahz at pythoncraft.com> wrote:
>
> On Fri, Jun 09, 2006, Paul Moore wrote:
> > On 6/9/06, Aahz <aahz at pythoncraft.com> wrote:
> >>
> >> There was also discussion of a change to the way "quit" works in
> >> interactive mode.  I see no record of it, so I guess that's not going
> in,
> >> either.
> >
> > It's already in 2.5a2, if I'm thinking of the same thing you are...
>
> Okay, I guess I mis-remembered what had been agreed to.  Should this go
> into What's New?  This also disagrees with Misc/NEWS:
>
> - Patch #1446372: quit and exit can now be called from the interactive
>   interpreter to exit.
>
> Here are my tests:
>
> : python
> Python 2.4 (#1, Jan 17 2005, 14:59:14)
> [GCC 3.3.3 (NetBSD nb3 20040520)] on netbsd2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> quit
> 'Use Ctrl-D (i.e. EOF) to exit.'
>
> > ./python
> Python 2.5a2 (trunk:46583, May 31 2006, 20:56:06)
> [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> quit
> Use quit() or Ctrl-D (i.e. EOF) to exit


Note the magic word, "called":

 centurion:~/python/python/trunk > python2.4
Python 2.4.4c0 (#2, Jun  8 2006, 01:12:27)
[GCC 4.1.2 20060604 (prerelease) (Debian 4.1.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'str' object is not callable
>>>

centurion:~/python/python/trunk > ./python
Python 2.5a2 (trunk:46753, Jun  8 2006, 17:46:46)
[GCC 4.1.2 20060604 (prerelease) (Debian 4.1.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
centurion:~/python/python/trunk >



-- 
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20060609/e0477598/attachment-0001.html 


More information about the Python-Dev mailing list