A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/091225.html below:

how to calculate the size of sys.stdin?

how to calculate the size of sys.stdin? how to calculate the size of sys.stdin?Kalle Svensson kalle at gnupung.net
Wed Apr 11 19:46:04 EDT 2001
Sez Chris Gonnerman:
> ----- Original Message -----
> From: "Kalle Svensson" <kalle at gnupung.net>
> Subject: Re: how to calculate the size of sys.stdin?
> 
> 
> > 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
> check
> > how much you got:
> 
> sys.stdin has size if it is connected to a normal file, or
> to some device nodes (in unixoid OS environments).  Size is
> not available for terminals, pipes, etc.

Whoops!  Of course.  <whack, whack, whack>

Peace,
  Kalle
-- 
Email: kalle at gnupung.net     | You can tune a filesystem, but you
Web: 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-list mailing list

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