From: David Mitchell Date: 2005-06-16T08:53:23+09:00 Subject: Re: Funniest Thing Evar! How about this for an explanation: $ irb > def quit > puts 'No way' > end => nil > quit Quits IRB. (So does calling quit()) $ python >>> def quit(): ... print "No way" ... >>> quit() No way >>> Small, and pointless reason, but perhaps this has something to do with it. David Mitchell (Solidly on the ruby side of the fence). Bill Kelly wrote: > From: "Nikolai Weibull" > >>% python >>Python 2.3.5 (#1, Apr 28 2005, 14:11:32) >>[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, >>ssp-3.3.5.20050130-1, pie- on linux2 >>Type "help", "copyright", "credits" or "license" for more information. >> >>>>>quit >>>>>'Use Ctrl-D (i.e. EOF) to exit.' >>>>> >> >>% >> >>Man, seriously. That’s so fucking funny. Can’t we make irb do >>something similar? I really hate that irb quits on me when I write >>“quit” at the prompt. I’d much rather have it exit on me on ^D only. I >>especially like how they take the time to explain that ^D is EOF, > > > I never understood that. :) Let's find out what a lot of users naturally > want to do, and add code to inform them they're wrong, rather than > do what the user wanted. > > That was one of my very first experiences with Python a few years > back, and I quickly concluded the culture of There Really Is Only One > Way To Do It was probably not for me... > > > Regards, > > Bill > > > >