[Tutor] raw_input function

Gerrit Holl gerrit at nl.linux.org
Wed Jan 28 15:27:59 EST 2004


Karl Pfl=E4sterer wrote:
> On 28 Jan 2004, Christopher Spears <- cspears2002 at yahoo.com wrote:
>=20
> > Where can I go to get some general information on how
> > the raw_input function works?
>=20
> I think you have to look in the source code (C).

Or the Python source code:
>>> def py_raw_input(s):
...     sys.stdout.write(s)
...     return sys.stdin.readline()[:-1] # strip of trailing newline

Gerrit.

--=20
192. If a son of a paramour or a prostitute say to his adoptive father
or mother: "You are not my father, or my mother," his tongue shall be cut
off.
          -- 1780 BC, Hammurabi, Code of Law
--=20
PrePEP: Builtin path type
    http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/



More information about the Tutor mailing list