This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients Christophe.Devriese, gregory.p.smith, nadeem.vawda, neologix, pitrou
Date 2011-05-21.14:50:27
SpamBayes Score 2.80527e-05
Marked as misclassified No
Message-id <1305989427.99.0.785757675893.issue12107@psf.upfronthosting.co.za>
In-reply-to
Content
$ cat test_sock.py 
import socket
import fcntl


with socket.socket(socket.AF_INET, socket.SOCK_STREAM|socket.SOCK_CLOEXEC) as s:
    print(bool(fcntl.fcntl(s, fcntl.F_GETFD) & fcntl.FD_CLOEXEC))

$ ./python test_sock.py 
True
History
Date User Action Args
2011-05-21 14:50:28neologixsetrecipients: + neologix, gregory.p.smith, pitrou, nadeem.vawda, Christophe.Devriese
2011-05-21 14:50:27neologixsetmessageid: <1305989427.99.0.785757675893.issue12107@psf.upfronthosting.co.za>
2011-05-21 14:50:27neologixlinkissue12107 messages
2011-05-21 14:50:27neologixcreate