From: mal at lemburg.com (M.-A. Lemburg)
Date: Fri, 23 Apr 1999 09:43:34 GMT
Subject: Emulating C++ coding style
References: <371F8FB7.92CE674F@pk.highway.ne.jp>
Message-ID: <372040C6.76C8320B@lemburg.com>
X-UID: 325                                                  

Thooney Millennier wrote:
> 
> Hello Everyone!
> 
> 2. stream class
>   e.g. cout << "hello python."<<endl;

Try StringList.py:

	http://starship.skyport.net/~lemburg/StringList.py
or
	http://starship.skyport.net/~lemburg/StringList.py.html

>>> import StringList,sys
>>> cout = StringList.StringList()
>>> endl = '\n'
>>> cout << "hello python" << endl
StringList: ['hello python', '\012']
>>> cout.pack() >> sys.stdout
hello python

-- 
Marc-Andre Lemburg                               Y2000: 252 days left
---------------------------------------------------------------------
          : Python Pages >>> http://starship.skyport.net/~lemburg/  :
           ---------------------------------------------------------





