realtime output to console

This is the place for queries that don't fit in any of the other categories.

realtime output to console

Postby nmskarthik » Tue Apr 23, 2013 5:04 am

Hi,

I am new to Python and I would like to know is there a way to get the realtime output in the console.

Ex: In TCL if we are executing a 100 line code,will get the output of each line in console, incase of Python it is compiling the complete code and throwing the error after longtime.

Provide your input to get the realtime output of each line in console instead of print command.

With Regards,
karthik.N
nmskarthik
 
Posts: 2
Joined: Tue Apr 23, 2013 4:55 am

Re: realtime output to console

Postby setrofim » Tue Apr 23, 2013 7:28 am

What exactly are you trying to do? The print statement (or function in Python 3) is what you would typically use to get "real time" output. Post your code.
setrofim
 
Posts: 288
Joined: Mon Mar 04, 2013 7:52 pm


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 6 guests

cron