Movatterモバイル変換


[0]ホーム

URL:


how to calculate the size of sys.stdin?

Kalle Svenssonkalle at gnupung.net
Wed Apr 11 18:47:20 EDT 2001


Sez Graham Guttocks:> Is there a way to calculate the size (in bytes) of sys.stdin?No, sys.stdin has no size.  What you can do is read from sys.stdin and checkhow much you got:input = sys.stdin.read()size = len(input)Peace,  Kalle-- Email:kalle at gnupung.net     | You can tune a filesystem, but youWeb:http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD [ Not signed due to lossage.  Blame Microsoft Outlook Express. ]


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp