]> granicus.if.org Git - python/commitdiff
Issue #18756: Improve error reporting in os.urandom() when the failure is due to...
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 16 Aug 2013 18:49:32 +0000 (20:49 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 16 Aug 2013 18:49:32 +0000 (20:49 +0200)
1  2 
Lib/test/test_os.py
Misc/NEWS
Python/random.c

Simple merge
diff --cc Misc/NEWS
index d849b51760d999e1b9e59614c4aee4454427d9b1,36860b1efb6af97b233a39b40ffaeee55d436ca6..31f7b618f0047a78b0c64e74d0150f9d3c5d05ce
+++ b/Misc/NEWS
@@@ -10,71 -12,10 +10,75 @@@ Projected Release date: 2013-09-0
  Core and Builtins
  -----------------
  
 +- Issue #18722: Remove uses of the "register" keyword in C code.
 +
  - Issue #18667: Add missing "HAVE_FCHOWNAT" symbol to posix._have_functions.
  
 +- Issue #16499: Add command line option for isolated mode.
 +
 +- Issue #15301: Parsing fd, uid, and gid parameters for builtins
 +  in Modules/posixmodule.c is now far more robust.
 +
  - Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc()
 -  fails.
 +  fail.
 +
 +- Issue #17934: Add a clear() method to frame objects, to help clean up
 +  expensive details (local variables) and break reference cycles.
 +
 +Library
 +-------
 +
++- Issue #18756: Improve error reporting in os.urandom() when the failure
++  is due to something else than /dev/urandom not existing (for example,
++  exhausting the file descriptor limit).
++
 +- Issue #18673: Add O_TMPFILE to os module. O_TMPFILE requires Linux kernel
 +  3.11 or newer. It's only defined on system with 3.11 uapi headers, too.
 +
 +- Issue #18532: Change the builtin hash algorithms' names to lower case names
 +  as promised by hashlib's documentation.
 +
 +- Issue #18405: Improve the entropy of crypt.mksalt().
 +
 +- Issue #12015: The tempfile module now uses a suffix of 8 random characters
 +  instead of 6, to reduce the risk of filename collision. The entropy was
 +  reduced when uppercase letters were removed from the charset used to generate
 +  random characters.
 +
 +- Issue #18585: Add :func:`textwrap.shorten` to collapse and truncate a
 +  piece of text to a given length.
 +
 +- Issue #18598: Tweak exception message for importlib.import_module() to
 +  include the module name when a key argument is missing.
 +
 +- Issue #18676: Change 'positive' to 'non-negative' in queue.py put and get
 +  docstrings and ValueError messages. Patch by Zhongyue Luo
 +
 +- Fix refcounting issue with extension types in tkinter.
 +
 +- Issue #8112: xlmrpc.server's DocXMLRPCServer server no longer raises an error
 +  if methods have annotations; it now correctly displays the annotations.
 +
 +- Issue #18600: Added policy argument to email.message.Message.as_string,
 +  and as_bytes and __bytes__ methods to Message.
 +
 +- Issue #18671: Output more information when logging exceptions occur.
 +
 +- Issue #18621: Prevent the site module's patched builtins from keeping
 +  too many references alive for too long.
 +
 +- Issue #4885: Add weakref support to mmap objects.  Patch by Valerie Lambert.
 +
 +- Issue #8860: Fixed rounding in timedelta constructor.
 +
 +
 +What's New in Python 3.4.0 Alpha 1?
 +===================================
 +
 +Release date: 2013-08-03
 +
 +Core and Builtins
 +-----------------
  
  - Issue #16741: Fix an error reporting in int().
  
diff --cc Python/random.c
Simple merge