1. 05 Apr, 2018 6 commits
  2. 04 Apr, 2018 5 commits
  3. 03 Apr, 2018 4 commits
  4. 02 Apr, 2018 3 commits
  5. 01 Apr, 2018 1 commit
  6. 31 Mar, 2018 2 commits
  7. 30 Mar, 2018 2 commits
  8. 29 Mar, 2018 2 commits
  9. 28 Mar, 2018 9 commits
  10. 27 Mar, 2018 3 commits
  11. 26 Mar, 2018 3 commits
    • Ivan Levkivskyi's avatar
      bpo-32873: Treat type variables and special typing forms as immutable by copy and pickle (GH-6216) · 83494037
      Ivan Levkivskyi authored
      This also fixes python/typing#512
      This also fixes python/typing#511
      
      As was discussed in both issues, some typing forms deserve to be treated
      as immutable by copy and pickle modules, so that:
      * copy(X) is X
      * deepcopy(X) is X
      * loads(dumps(X)) is X  # pickled by reference
      
      This PR adds such behaviour to:
      * Type variables
      * Special forms like Union, Any, ClassVar
      * Unsubscripted generic aliases to containers like List, Mapping, Iterable
      
      This not only resolves inconsistencies mentioned in the issues, but also
      improves backwards compatibility with previous versions of Python
      (including 3.6).
      
      Note that this requires some dances with __module__ for type variables
      (similar to NamedTuple) because the class TypeVar itself is define in typing,
      while type variables should get module where they were defined.
      
      https://bugs.python.org/issue32873
      83494037
    • Alexey Izbyshev's avatar
      bpo-32844: Fix a subprocess misredirection of a low fd (GH5689) · 0e7144b0
      Alexey Izbyshev authored
      bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr.
      
      When redirecting, subprocess attempts to achieve the following state:
      each fd to be redirected to is less than or equal to the fd
      it is redirected from, which is necessary because redirection
      occurs in the ascending order of destination descriptors.
      It fails to do so in a couple of corner cases,
      for example, if 1 is redirected to 2 and 0 is closed in the parent.
      0e7144b0
    • Eric V. Smith's avatar
      bpo-33141: Have dataclasses.Field pass through __set_name__ to any default argument. (GH-6260) · de7a2f04
      Eric V. Smith authored
      This is part of PEP 487 and the descriptor protocol.
      de7a2f04