object.enable() anti-pattern
André Malo
ndparker at gmail.com
Sat May 11 11:33:51 EDT 2013
* Serhiy Storchaka wrote:
> Another example is running a subprocess in Unix-like systems.
>
> fork()
> open/close file descriptors, set limits, etc
> exec*()
For running a subprocess, only fork() is needed. For starting another
executable, only exec() is needed. For running the new executable in a
subprocess fork() and exec() are needed. I think, that's a bad example.
These APIs are actually well-designed.
nd
--
Gefunden auf einer "Webdesigner"-Seite:
> Programmierung in HTML, XML, WML, CGI, FLASH <
# André Malo # http://pub.perlig.de/ #
More information about the Python-list
mailing list