1. 06 Nis, 2018 2 kayıt (commit)
  2. 05 Nis, 2018 6 kayıt (commit)
  3. 04 Nis, 2018 5 kayıt (commit)
  4. 03 Nis, 2018 4 kayıt (commit)
  5. 02 Nis, 2018 3 kayıt (commit)
  6. 01 Nis, 2018 1 kayıt (commit)
  7. 31 Mar, 2018 2 kayıt (commit)
  8. 30 Mar, 2018 2 kayıt (commit)
  9. 29 Mar, 2018 2 kayıt (commit)
  10. 28 Mar, 2018 9 kayıt (commit)
  11. 27 Mar, 2018 3 kayıt (commit)
  12. 26 Mar, 2018 1 kayıt (commit)
    • Ivan Levkivskyi's avatar
      bpo-32873: Treat type variables and special typing forms as immutable by copy and pickle (GH-6216) · 83494037
      Ivan Levkivskyi yazdı
      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