Changes between Version 5 and Version 6 of Python


Ignore:
Timestamp:
06/16/06 09:35:22 (18 years ago)
Author:
atzm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python

    v5 v6  
    58581, 2, 3.3, None, False, __main__.Hoge 
    5959}}} 
     60 
     61== raw_input 中に SIGALRM 出すと EOFError == 
     62{{{ 
     63#!python 
     64import signal 
     65signal.signal(signal.SIGALRM, lambda *a: None) 
     66signal.alarm(5) 
     67raw_input() 
     68}}} 
     69 
     70 * 5 秒待つと EOFError. 
     71 * 何とか回避できんもんかなぁ.