For threading.Thread
, there are two methods which seems to have same functionality :
is_alive
andisAlive
For threading.Event
, there is below method :
is_set
andisSet
Similarly threading
module , again these methods are available
currentThread
andcurrent_thread
active_count
andactiveCount
So, question is, though it seems, both the methods have same functionality, why there are two methods available?
Also, which one is preferable ?