It depends on the Python version. In 3.3, for example, look into Modules/_io/fileio.c Eli On Tue, Jun 19, 2012 at 2:39 PM, gmspro <gmspro at yahoo.com> wrote: > Hi, >> I'm working on this bug to fix it. http://bugs.python.org/issue15068 >> >>> from sys import stdin > >>> str=stdin.read() > hello > hello world > CTRL+D > CTRL+D >> Can anyone tell me where is stdin.read() function defined? > Or where is sys.stdin defined? > Or which function is called for str=stdin.read() ? >> Thanks >>> _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/eliben%40gmail.com >>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120619/d20ca9d9/attachment.html>