User Tools

Site Tools


python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python [2025/10/08 13:51] carlpython [2026/01/12 10:13] (current) carl
Line 36: Line 36:
  
  
 +Multiprocessing skips the ''atexit'' hooks, meaning it's not possible to do process-wide cleanup work.  They are silently skipped.
  
 ==== Problems with Descriptors ====  ==== Problems with Descriptors ==== 
Line 51: Line 52:
  
 In this, if a or b have side-effects on evaluation, like throwing an exception, the order in which a and b are invoked matters. In this, if a or b have side-effects on evaluation, like throwing an exception, the order in which a and b are invoked matters.
 +
 +
 +==== Futures ====
 +
 +  * Futures don't have a getstate() method.  This means trying to find out the running/finished/cancel/pending states of a future are racy.   The lock (condition) on the future is also private, so it's not safe to lock and query each of the state methods.
python.1759956696.txt.gz · Last modified: by carl