Quoth Graham Guttocks <graham_guttocks at yahoo.co.nz>: | Is there a way to calculate the size (in bytes) of sys.stdin? I tried | to use the "stat" module to accomplish this, but os.stat() seems to | only accept the name of a file. (i.e, the following doesn't work): | | import os,stat | size = os.stat(sys.stdin.read())[stat.ST_SIZE] os.fstat(sys.stdin.fileno()) This makes sense only when stdin happens to be a disk file, of course. I don't understand why you would try sys.stdin.read() in the above example, so I don't know if this helps or not, but you'll know if you try it. Donn Cave, donn at u.washington.edu
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4