[Python-3000] Pre-PEP: Simple input built-in in Python 3000 (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Fri Dec 22 16:44:41 CET 2006
- Previous message: [Python-3000] Pre-PEP: Simple input built-in in Python 3000
- Next message: [Python-3000] Pre-PEP: Simple input built-in in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andre Roberge wrote:
The various possibilities mentioned in various forums include:
ask() askuser() getstring() input() # rejected by BDFL prompt() read() userinput() getresponse()
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.
- Previous message: [Python-3000] Pre-PEP: Simple input built-in in Python 3000
- Next message: [Python-3000] Pre-PEP: Simple input built-in in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]