[Python-Dev] Summary of Python tracker Issues
ACTIVITY SUMMARY (2013-01-11 - 2013-01-18) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open3829 ( +4) closed 24942 (+54) total 28771 (+58) Open issues with patches: 1668 Issues opened (40) == #15031: Split .pyc parsing from module loading http://bugs.python.org/issue15031 reopened by brett.cannon #16932: urlparse fails at parsing "www.python.org:80/" http://bugs.python.org/issue16932 reopened by georg.brandl #16937: -u (unbuffered I/O) command line option documentation mismatch http://bugs.python.org/issue16937 opened by mjpieters #16938: pydoc confused by __dir__ http://bugs.python.org/issue16938 opened by ronaldoussoren #16942: urllib still doesn't support persistent connections http://bugs.python.org/issue16942 opened by C19 #16945: rewrite CGIHTTPRequestHandler to always use subprocess http://bugs.python.org/issue16945 opened by neologix #16946: subprocess: _close_open_fd_range_safe() does not set close-on- http://bugs.python.org/issue16946 opened by haypo #16948: email.mime.text.MIMEText: QP encoding broken with charset!=ISO http://bugs.python.org/issue16948 opened by jwilk #16953: select module compile errors with broken poll() http://bugs.python.org/issue16953 opened by Jeffrey.Armstrong #16954: Add docstrings for ElementTree module http://bugs.python.org/issue16954 opened by serhiy.storchaka #16956: Allow signed line number deltas in the code object's line num http://bugs.python.org/issue16956 opened by Mark.Shannon #16957: shutil.which() shouldn't look in working directory on unix-y s http://bugs.python.org/issue16957 opened by takluyver #16958: The sqlite3 context manager does not work with isolation_level http://bugs.python.org/issue16958 opened by r.david.murray #16959: rlcompleter doesn't work if __main__ can't be imported http://bugs.python.org/issue16959 opened by Aaron.Meurer #16961: No regression tests for -E and individual environment vars http://bugs.python.org/issue16961 opened by ncoghlan #16962: _posixsubprocess module uses outdated getdents system call http://bugs.python.org/issue16962 opened by riku-voipio #16964: Add 'm' format specifier for mon_grouping etc. http://bugs.python.org/issue16964 opened by skrah #16965: 2to3 should rewrite execfile() to open in 'rb' mode http://bugs.python.org/issue16965 opened by barry #16967: Keyword only argument default values are evaluated before othe http://bugs.python.org/issue16967 opened by Kay.Hayen #16968: Fix test discovery for test_concurrent_futures.py http://bugs.python.org/issue16968 opened by zach.ware #16969: test_urlwithfrag fail http://bugs.python.org/issue16969 opened by Ry #16970: argparse: bad nargs value raises misleading message http://bugs.python.org/issue16970 opened by chris.jerdonek #16971: Refleaks in charmap decoder http://bugs.python.org/issue16971 opened by serhiy.storchaka #16972: Useless function call in site.py http://bugs.python.org/issue16972 opened by x746e #16974: when "python -c command" does a traceback, it open the file "< http://bugs.python.org/issue16974 opened by ericlammerts #16975: Broken error handling in codecs.escape_decode() http://bugs.python.org/issue16975 opened by serhiy.storchaka #16976: Asyncore/asynchat hangs when used with ssl sockets http://bugs.python.org/issue16976 opened by Anthony.Lozano #16977: argparse: mismatch between choices parsing and usage/error mes http://bugs.python.org/issue16977 opened by chris.jerdonek #16978: fix grammar in 'threading' documentation http://bugs.python.org/issue16978 opened by tshepang #16979: Broken error handling in codecs.unicode_escape_decode() http://bugs.python.org/issue16979 opened by serhiy.storchaka #16980: SystemError in codecs.unicode_escape_decode() http://bugs.python.org/issue16980 opened by serhiy.storchaka #16981: ImportError hides real error when there too many open files du http://bugs.python.org/issue16981 opened by jinty #16983: header parsing could apply postel's law to encoded words insid http://bugs.python.org/issue16983 opened by r.david.murray #16985: Docs reference a concrete UTC tzinfo, but none exists http://bugs.python.org/issue16985 opened by jason.coombs #16986: ElementTree incorrectly parses strings with declared encoding http://bugs.python.org/issue16986 opened by serhiy.storchaka #16988: argparse: PARSER option for nargs not documented http://bugs.python.org/issue16988 opened by Robert #16989: allow distutils debug mode to be enabled more easily http://bugs.python.org/issue16989 opened by chris.jerdonek #16991: Add OrderedDict written in C http://bugs.python.org/issue16991 opened by eric.snow #16993: shutil.which() should preserve path case http://bugs.python.org/issue16993 opened by serhiy.storchaka #16994: collections.Counter.least_common http://bugs.python.org/issue16994 opened by d
Re: [Python-Dev] PEP 433: Add cloexec argument to functions creating file descriptors
2013/1/13 Charles-François Natali :
>> .. note::
>>OpenBSD older 5.2 does not close the file descriptor with
>>close-on-exec flag set if ``fork()`` is used before ``exec()``, but
>>it works correctly if ``exec()`` is called without ``fork()``.
>
> That would be *really* surprising, are your sure your test case is correct?
> Otherwise it could be a compilation issue, because I simply can't
> believe OpenBSD would ignore the close-on-exec flag.
I didn't write a C program yet, but you can test the folllowing Python
script. On OpenBSD 4.9 it writes "OS BUG !!!".
--
USE_FORK = True
import fcntl, os, sys
fd = os.open("/etc/passwd", os.O_RDONLY)
flags = fcntl.fcntl(fd, fcntl.F_GETFD)
flags |= fcntl.FD_CLOEXEC
fcntl.fcntl(fd, fcntl.F_SETFD, flags)
code = """
import os, sys
fd = int(sys.argv[1])
try:
os.fstat(fd)
except OSError:
print("fd %s closed by exec (FD_CLOEXEC works)" % fd)
else:
print("fd %s not closed by exec: FD_CLOEXEC doesn't work, OS BUG!!!" % fd)
"""
args = [sys.executable, '-c', code, str(fd)]
if USE_FORK:
pid = os.fork()
if pid:
os.waitpid(pid, 0)
sys.exit(0)
os.execv(args[0], args)
--
It works with USE_FORKS = False.
Victor
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
