You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ dpython
[2013/03/19 05:40:35] {diesel} WARNING:Starting diesel <hand-rolled select.epoll>
Python 2.7.1+ (r271:86832, Sep 27 2012, 21:12:17)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import diesel
>>> diesel.wait('for-something')
^C[2013/03/19 05:40:57] {diesel} WARNING:-- KeyboardInterrupt raised.. exiting main loop --
[2013/03/19 05:40:57] {diesel} INFO:Ending diesel application
$
This doesn't happen in the standard Python interpreter when a blocking operation is in progress. It just interrupts the operation and you can continue on your merry way.
$ python
Python 2.7.1+ (r271:86832, Sep 27 2012, 21:12:17)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.sleep(10)
^CTraceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyboardInterrupt
>>>
The text was updated successfully, but these errors were encountered:
This doesn't happen in the standard Python interpreter when a blocking operation is in progress. It just interrupts the operation and you can continue on your merry way.
The text was updated successfully, but these errors were encountered: