1. 06 Mar, 2018 1 kayıt (commit)
  2. 05 Mar, 2018 1 kayıt (commit)
  3. 09 Şub, 2018 1 kayıt (commit)
  4. 27 Ock, 2018 1 kayıt (commit)
  5. 15 Ara, 2017 1 kayıt (commit)
  6. 28 Kas, 2017 1 kayıt (commit)
  7. 15 Kas, 2017 1 kayıt (commit)
  8. 24 Eki, 2017 1 kayıt (commit)
  9. 23 May, 2017 1 kayıt (commit)
    • Thomas Kluyver's avatar
      bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717) · f9169ce6
      Thomas Kluyver yazdı
      Some objects (like test mocks) auto-generate new objects on
      attribute access, which can lead to an infinite loop in
      inspect.unwrap().
      
      Ensuring references are retained to otherwise temporary objects
      and capping the size of the memo dict turns this case into a
      conventional exception instead.
      f9169ce6
  10. 18 May, 2017 1 kayıt (commit)
    • Jon Dufresne's avatar
      bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) · 3972628d
      Jon Dufresne yazdı
      * Replaced list(<generator expression>) with list comprehension
      * Replaced dict(<generator expression>) with dict comprehension
      * Replaced set(<list literal>) with set literal
      * Replaced builtin func(<list comprehension>) with func(<generator
        expression>) when supported (e.g. any(), all(), tuple(), min(), &
        max())
      3972628d
  11. 17 May, 2017 1 kayıt (commit)
  12. 24 Nis, 2017 1 kayıt (commit)
  13. 13 Nis, 2017 1 kayıt (commit)
  14. 03 Ock, 2017 1 kayıt (commit)
  15. 02 Ock, 2017 1 kayıt (commit)
  16. 02 Ara, 2016 1 kayıt (commit)
  17. 09 Kas, 2016 1 kayıt (commit)
  18. 08 Kas, 2016 1 kayıt (commit)
  19. 22 Eki, 2016 1 kayıt (commit)
  20. 09 Eyl, 2016 1 kayıt (commit)
  21. 07 Eyl, 2016 1 kayıt (commit)
  22. 04 Haz, 2016 1 kayıt (commit)
  23. 02 Mar, 2016 1 kayıt (commit)
  24. 11 Ock, 2016 1 kayıt (commit)
  25. 29 Eki, 2015 1 kayıt (commit)
  26. 31 Tem, 2015 1 kayıt (commit)
  27. 24 Tem, 2015 1 kayıt (commit)
    • Meador Inge's avatar
      Issue #24485: Function source inspection fails on closures. · 5b718d7f
      Meador Inge yazdı
      The fix for Issue #21217 introduced a regression that caused
      `inspect.getsource` to return incorrect results on nested
      functions.  The root cause of the regression was due to
      switching the implementation to analyze the underlying
      bytecode instead of the source code.
      
      This commit switches things back to analyzing the source code
      in a more complete way.  The original bug and the regression
      are both fixed by the new source code analysis.
      5b718d7f
  28. 23 Tem, 2015 3 kayıt (commit)
  29. 21 Tem, 2015 1 kayıt (commit)
  30. 18 Tem, 2015 1 kayıt (commit)
  31. 03 Tem, 2015 1 kayıt (commit)
    • Yury Selivanov's avatar
      Issue #24400: Resurrect inspect.isawaitable() · fdbeb2b4
      Yury Selivanov yazdı
      collections.abc.Awaitable and collections.abc.Coroutine no longer
      use __instancecheck__ hook to detect generator-based coroutines.
      
      inspect.isawaitable() can be used to detect generator-based coroutines
      and to distinguish them from regular generator objects.
      fdbeb2b4
  32. 30 Haz, 2015 1 kayıt (commit)
    • Yury Selivanov's avatar
      Issue #24400: Remove inspect.isawaitable(). · a74b5e59
      Yury Selivanov yazdı
      isawaitable() was added before collections.abc.Awaitable; now,
      with Awaitable, it is no longer needed (we don't have ishashable()
      or isiterable() methods in the inspect module either).
      a74b5e59
  33. 22 Haz, 2015 1 kayıt (commit)
    • Yury Selivanov's avatar
      Issue #24400: Introduce a distinct type for 'async def' coroutines. · 5376ba96
      Yury Selivanov yazdı
      Summary of changes:
      
      1. Coroutines now have a distinct, separate from generators
         type at the C level: PyGen_Type, and a new typedef PyCoroObject.
         PyCoroObject shares the initial segment of struct layout with
         PyGenObject, making it possible to reuse existing generators
         machinery.  The new type is exposed as 'types.CoroutineType'.
      
         As a consequence of having a new type, CO_GENERATOR flag is
         no longer applied to coroutines.
      
      2. Having a separate type for coroutines made it possible to add
         an __await__ method to the type.  Although it is not used by the
         interpreter (see details on that below), it makes coroutines
         naturally (without using __instancecheck__) conform to
         collections.abc.Coroutine and collections.abc.Awaitable ABCs.
      
         [The __instancecheck__ is still used for generator-based
         coroutines, as we don't want to add __await__ for generators.]
      
      3. Add new opcode: GET_YIELD_FROM_ITER.  The opcode is needed to
         allow passing native coroutines to the YIELD_FROM opcode.
      
         Before this change, 'yield from o' expression was compiled to:
      
            (o)
            GET_ITER
            LOAD_CONST
            YIELD_FROM
      
         Now, we use GET_YIELD_FROM_ITER instead of GET_ITER.
      
         The reason for adding a new opcode is that GET_ITER is used
         in some contexts (such as 'for .. in' loops) where passing
         a coroutine object is invalid.
      
      4. Add two new introspection functions to the inspec module:
         getcoroutinestate(c) and getcoroutinelocals(c).
      
      5. inspect.iscoroutine(o) is updated to test if 'o' is a native
         coroutine object.  Before this commit it used abc.Coroutine,
         and it was requested to update inspect.isgenerator(o) to use
         abc.Generator; it was decided, however, that inspect functions
         should really be tailored for checking for native types.
      
      6. sys.set_coroutine_wrapper(w) API is updated to work with only
         native coroutines.  Since types.coroutine decorator supports
         any type of callables now, it would be confusing that it does
         not work for all types of coroutines.
      
      7. Exceptions logic in generators C implementation was updated
         to raise clearer messages for coroutines:
      
         Before: TypeError("generator raised StopIteration")
         After: TypeError("coroutine raised StopIteration")
      5376ba96
  34. 30 May, 2015 1 kayıt (commit)
  35. 28 May, 2015 1 kayıt (commit)
  36. 22 May, 2015 2 kayıt (commit)
  37. 21 May, 2015 1 kayıt (commit)