object.enable() anti-pattern

Roy Smith roy at panix.com
Fri May 10 13:32:50 EDT 2013


In article <pan.2013.05.10.16.59.31.512000 at nowhere.com>,
 Nobody <nobody at nowhere.com> wrote:

> However: there are situations where it is useful to be able to separate
> the simple task of creating an object from more invasive actions such as
> system calls. Particularly in multi-threaded or real-time code (although
> the latter is a non-starter in Python for many other reasons).

Sure.  I can serialize a path name.  I can't serialize an open file 
descriptor.



More information about the Python-list mailing list