classification
Title: Emphasize buffering issues when sys.stdin is used
Type: enhancement Stage: needs patch
Components: Documentation Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: for line in sys.stdin: doesn't notice EOF the first time
View: 1633941
Superseder:
Assigned To: docs@python Nosy List: BreamoreBoy, docs@python, draghuram
Priority: normal Keywords: patch

Created on 2007-01-24 17:28 by draghuram, last changed 2010-08-08 10:45 by BreamoreBoy.

Messages (2)
msg61055 - (view) Author: Raghuram Devarakonda (draghuram) Date: 2007-01-24 17:28
Hi,

Please look at the bug:

http://sourceforge.net/tracker/index.php?func=detail&aid=1633941&group_id=5470&atid=105470

As I commented there, I don't think any fix is needed but it appears to me that mentioning this case in docs wouldn't hurt. Something like this can be added to next() description at:

http://docs.python.org/lib/bltin-file-objects.html

"Please consider buffering issues while using ``for line in sys.stdin`` when the input is being interactively entered".

msg113248 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-08-08 10:45
Please note update to #1633941
History
Date User Action Args
2010-08-08 10:45:37BreamoreBoysetnosy: + BreamoreBoy
messages: + msg113248
2010-08-07 18:34:32terry.reedysetstage: needs patch
versions: - Python 2.6
2010-07-10 06:28:17terry.reedysetversions: + Python 3.1, Python 2.7, Python 3.2, - Python 3.0
nosy: + docs@python

assignee: docs@python
keywords: + patch
stage: test needed -> (no value)
2009-03-30 19:05:01ajaksu2setdependencies: + for line in sys.stdin: doesn't notice EOF the first time
type: enhancement
stage: test needed
versions: + Python 3.0
2007-01-24 17:28:18draghuramcreate