spir wrote:
class Out(file):
def __init__(self, filename, toconsole=True, numberlines=True):
file.__init__(self, filename, 'r')
print self
# debug output to console
self.toconsole = toconsole
# line numberi
Dave Kuhlman dixit:
> On Fri, Dec 04, 2009 at 01:13:42PM +0530, Prasad Mehendale wrote:
> > I am a beginner. I want to save the output data of the following programme
> > in
> > a file through the programme. Please suggest me the way. I am using Python
> > 2.3.3 on mandrake linux 10 and using
On Fri, Dec 04, 2009 at 01:13:42PM +0530, Prasad Mehendale wrote:
> I am a beginner. I want to save the output data of the following programme in
> a file through the programme. Please suggest me the way. I am using Python
> 2.3.3 on mandrake linux 10 and using "Idle" to save the output to a file
Prasad Mehendale dixit:
> I am a beginner. I want to save the output data of the following programme in
> a file through the programme. Please suggest me the way. I am using Python
> 2.3.3 on mandrake linux 10 and using "Idle" to save the output to a file
> presently.
> Thanks in advance.
Yo
"Senthil Kumaran" wrote
Instead of
print '(Pole*RPM) product for various values of conductors/slot is: \n',
polerpm
You will do
msg = '(Pole*RPM) product for various values of conductors/slot is: \n',
polerpm
You would need to do a bit more since polerpm will not automatically be
appen
"Prasad Mehendale" wrote
I am a beginner. I want to save the output data of the following programme
in
a file through the programme.
The easiest way is to use file redirection at run-time
$ python foo.py > results.txt
This will work on Linux/MacOS/Windows
The alternatives are
1) open a f
On Fri, Dec 04, 2009 at 01:13:42PM +0530, Prasad Mehendale wrote:
> I am a beginner. I want to save the output data of the following programme in
> a file through the programme. Please suggest me the way. I am using Python
> 2.3.3 on mandrake linux 10 and using "Idle" to save the output to a file
I am a beginner. I want to save the output data of the following programme in
a file through the programme. Please suggest me the way. I am using Python
2.3.3 on mandrake linux 10 and using "Idle" to save the output to a file
presently.
Thanks in advance.
#programme to calculate various parame