[Tutor] Re: setting EOF symbol

Derrick 'dman' Hudson dman@dman.ddts.net
Sat Mar 22 00:23:02 2003


--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 14, 2003 at 10:42:22PM -0800, Pijus Virketis wrote:

| while lr:
| 	print(lr.readline())

For those who didn't notice, this is a C++-idiom.  In C++, an istream
will evaluate to false when no more data can be read from it.

-D

--=20
In my Father's house are many rooms; if it were not so, I would have
told you.  I am going there to prepare a place for you.  And if I go and
prepare a place for you, I will come and take you to be with me that you
also may be where I am.
        John 14:2-3
=20
http://dman.ddts.net/~dman/

--PNTmBPCT7hxwcZjr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj5782sACgkQO8l8XBKTpRRCDACglS82JMyx/ZNraXLkom0TPzXs
Z9AAnRLXTffJdxhe/eBD2qSzcS+zVJpw
=TqYJ
-----END PGP SIGNATURE-----

--PNTmBPCT7hxwcZjr--