Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4580159
By: pekdemir

Hi,

I have the same problem. I try to debug the following simple code:

#------------------------------------------------------------------------------
#           Name: sleep.py
#         Author: Kevin Harris
#  Last Modified: 02/13/04
#    Description: This Python script demonstrates how to use the sleep()
#                 function.
#------------------------------------------------------------------------------

from time import sleep

print "We'll start off by sleeping 5 seconds"

sleep( 5 )

print "Ok, time to wake up!"

wait_time = input( "How much longer would you like to sleep? " )

while wait_time > 0:
    print "Ok, we'll sleep for " + str(wait_time) + " more seconds..."
    sleep( wait_time )
    wait_time = input( "How much longer would you like to sleep? " )

print "We're done!"


and get following error message:

Traceback (most recent call last):
  File "G:\...\eclipse\plugins\org.python.pydev.debug_1.3.9\pysrc\pydevd.py",
line 784, in <module>
    debugger.run(setup['file'], None, None)
  File "G:\...\eclipse\plugins\org.python.pydev.debug_1.3.9\pysrc\pydevd.py",
line 636, in run
    execfile(file, globals, locals) #execute the script
  File "G:\...\Workplace\python deneme\sleep.py", line 17, in <module>
    wait_time = input( "How much longer would you like to sleep? " )
  File "<string>", line 1
    2

    ^
SyntaxError: unexpected EOF while parsing

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to