On Thu, Sep 23, 2010 at 12:00:24PM +0200, Dagfinn Ilmari Mannsåker wrote: > Michael G Schwern <schw...@pobox.com> writes: > > > You're in good company. > > > > $ python > > Python 2.5.4 (r254:67916, Feb 11 2010, 00:50:55) > > [GCC 4.2.1 (Apple Inc. build 5646)] on darwin > > Type "help", "copyright", "credits" or "license" for more information. > >>>> exit > > Use exit() or Ctrl-D (i.e. EOF) to exit > >>>> quit > > Use quit() or Ctrl-D (i.e. EOF) to exit > > > > Wait, it gets better. > > > > Type "help", "copyright", "credits" or "license" for more information. > >>>> help > > Type help() for interactive help, or help(object) for help about object. > >>>> license > > Type license() to see the full license text > > > > So... don't do what you just told me to. Oh, but "credits" and "copyright" > > work fine. > > This is because the python prompt is just a REPL and they are just > objects that stringify to the text and do their thing when called as a > function. The reason license needs to be called as a function is that > it's so long it needs a pager. Would you prefer objects that had magic > side effects on stringification, like this?
No, I'm going to guess that he (like me) would expect it to say: Type "help", "copyright", "credits" or "license()" for more information. if thats what it wants you to type. Nicholas Clark