]> granicus.if.org Git - python/commitdiff
(Merge 3.4) Closes #22258: Fix the the internal function set_inheritable() on
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 Sep 2014 09:49:48 +0000 (11:49 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 2 Sep 2014 09:49:48 +0000 (11:49 +0200)
Illumos.  This platform exposes the function ioctl(FIOCLEX), but calling it
fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
now falls back to the slower fcntl() (F_GETFD and then F_SETFD).

1  2 
Misc/NEWS
Python/fileutils.c

diff --cc Misc/NEWS
index d0e3d7293a30bb9ae397c6e756fc409ec43d912d,9d35acf413c21bc3f536b253b3004cf50e0a6d5b..71ab268c7360271ec8f86147c59807fc5598b1e3
+++ b/Misc/NEWS
@@@ -10,38 -10,11 +10,43 @@@ Release date: TB
  Core and Builtins
  -----------------
  
+ - Issue #22258: Fix the the internal function set_inheritable() on Illumos.
+   This platform exposes the function ``ioctl(FIOCLEX)``, but calling it fails
+   with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
+   now falls back to the slower ``fcntl()`` (``F_GETFD`` and then ``F_SETFD``).
 +- Issue #21389: Displaying the __qualname__ of the underlying function in the
 +  repr of a bound method.
 +
 +- Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM
 +  and returns -1 (error) on integer overflow.
 +
 +- Issue #20184: Argument Clinic based signature introspection added for
 +  30 of the builtin functions.
 +
 +- Issue #22116: C functions and methods (of the 'builtin_function_or_method'
 +  type) can now be weakref'ed.  Patch by Wei Wu.
 +
 +- Issue #22077: Improve index error messages for bytearrays, bytes, lists,
 +  and tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
 +  Original patch by Claudiu Popa.
 +
 +- Issue #20179: Apply Argument Clinic to bytes and bytearray.
 +  Patch by Tal Einat.
 +
 +- Issue #22082: Clear interned strings in slotdefs.
 +
 +- Upgrade Unicode database to Unicode 7.0.0.
 +
 +- Issue #21897: Fix a crash with the f_locals attribute with closure
 +  variables when frame.clear() has been called.
 +
 +- Issue #21205: Add a new ``__qualname__`` attribute to generator, the
 +  qualified name, and use it in the representation of a generator
 +  (``repr(gen)``). The default name of the generator (``__name__`` attribute)
 +  is now get from the function instead of the code. Use ``gen.gi_code.co_name``
 +  to get the name of the code.
 +
  - Issue #21669: With the aid of heuristics in SyntaxError.__init__, the
    parser now attempts to generate more meaningful (or at least more search
    engine friendly) error messages when "exec" and "print" are used as
Simple merge