A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-August/127729.html below:

[Python-Dev] PEP 446: Open issues/questions

[Python-Dev] PEP 446: Open issues/questions [Python-Dev] PEP 446: Open issues/questionsVictor Stinner victor.stinner at gmail.com
Fri Aug 2 02:21:19 CEST 2013
2013/7/30 Victor Stinner <victor.stinner at gmail.com>:
> I would be nice to have a "pass_handles" on Windows.

I'm not sure that it's possible to implement this atomically. It's
probably better to leave the application to choose how the inheritance
is defined.

Example:

for handle in handles:
    os.set_inheritable(handle, True)
subprocess.call(...)
for handle in handles:
    os.set_inheritable(handle, False)

This example is safe if the application has a single thread (if a
single thread spawn new programs). Making handles non-inheritable
again may be useless.

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4