On 12/22/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Andre Roberge wrote: > > > The various possibilities mentioned in various forums include: > > > > ask() > > ask_user() > > get_string() > > input() # rejected by BDFL > > prompt() > > read() > > user_input() > > get_response() > > why not call it "readline", and define it as > > import sys > > def readline(): > return sys.stdin.readline() > > ? > > if you include the definition in the docstring, you get a nice little > lead-in to a discussion about modules and object access syntax.
+1. This also makes it clearer that a whole line is read in. So if you want to, say, read a single character at a time (a frequent c.l.py question) you'll know you have to do something else. STeVe -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com