C++ style Stream Operators
dsh8290 at rit.edu
Thu Feb 8 17:03:03 EST 2001
As of Python 2.0 you can use this :
a_file = open( "filename" , "w" )
print >> a_file , "something to output"
On Thu, Feb 08, 2001 at 03:41:42PM -0600, Jim wrote:
| I'd like to use C++style stream i/o operators, such as "file_object <<
| some_stuff" in my python code.
| IS this sort of operator setup and what modules would I need to take
| advantage of them if so?
More information about the Python-list