- 23 Tem, 2015 1 kayıt (commit)
-
-
Yury Selivanov yazdı
-
- 03 Tem, 2015 2 kayıt (commit)
-
-
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.
-
Yury Selivanov yazdı
-
- 24 Haz, 2015 2 kayıt (commit)
-
-
Yury Selivanov yazdı
Also, make 'wrapped' and 'isgen' private.
-
Yury Selivanov yazdı
-
- 22 Haz, 2015 1 kayıt (commit)
-
-
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")
-
- 29 May, 2015 2 kayıt (commit)
-
-
Yury Selivanov yazdı
-
Yury Selivanov yazdı
-
- 22 May, 2015 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
-
- 12 May, 2015 1 kayıt (commit)
-
-
Yury Selivanov yazdı
-
- 13 Nis, 2015 1 kayıt (commit)
-
-
Zachary Ware yazdı
I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
-
- 16 Nis, 2014 1 kayıt (commit)
-
-
Eric V. Smith yazdı
Close issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff.
-
- 15 Nis, 2014 2 kayıt (commit)
-
-
Vinay Sajip yazdı
-
Eric V. Smith yazdı
Closed issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff.
-
- 17 Mar, 2014 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 23 Şub, 2014 1 kayıt (commit)
-
-
Antoine Pitrou yazdı
Issue #20637: Key-sharing now also works for instance dictionaries of subclasses. Patch by Peter Ingebretson.
-
- 17 Şub, 2013 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 16 Şub, 2013 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 17 Eki, 2012 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 27 Eyl, 2012 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 03 Haz, 2012 1 kayıt (commit)
-
-
Barry Warsaw yazdı
Issue 14673: Add sys.implementation
-
- 19 May, 2012 1 kayıt (commit)
-
-
Nick Coghlan yazdı
-
- 15 Nis, 2012 1 kayıt (commit)
-
-
Victor Stinner yazdı
-
- 25 Kas, 2010 1 kayıt (commit)
-
-
Eric Smith yazdı
Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.
-
- 25 Agu, 2010 3 kayıt (commit)
-
-
Benjamin Peterson yazdı
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84320 | benjamin.peterson | 2010-08-25 18:13:17 -0500 (Wed, 25 Aug 2010) | 1 line basicsize and itemsize are Py_ssize_t #9688 ........
-
Benjamin Peterson yazdı
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84320 | benjamin.peterson | 2010-08-25 18:13:17 -0500 (Wed, 25 Aug 2010) | 1 line basicsize and itemsize are Py_ssize_t #9688 ........
-
Benjamin Peterson yazdı
-
- 02 Agu, 2010 1 kayıt (commit)
-
-
Ezio Melotti yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79165 | florent.xicluna | 2010-03-21 03:14:24 +0200 (Sun, 21 Mar 2010) | 2 lines #7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper. ........
-
- 21 Mar, 2010 1 kayıt (commit)
-
-
Florent Xicluna yazdı
-
- 14 Mar, 2010 1 kayıt (commit)
-
-
Georg Brandl yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
-
- 23 Şub, 2010 3 kayıt (commit)
-
-
Eric Smith yazdı
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78350 | eric.smith | 2010-02-22 19:22:24 -0500 (Mon, 22 Feb 2010) | 9 lines Merged revisions 78349 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78349 | eric.smith | 2010-02-22 19:11:16 -0500 (Mon, 22 Feb 2010) | 1 line Issue #6902: Fix problem with built-in types format incorrectly with 0 padding. ........ ................
-
Eric Smith yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78349 | eric.smith | 2010-02-22 19:11:16 -0500 (Mon, 22 Feb 2010) | 1 line Issue #6902: Fix problem with built-in types format incorrectly with 0 padding. ........
-
Eric Smith yazdı
-
- 07 Şub, 2010 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 24 Ock, 2010 1 kayıt (commit)
-
-
Ezio Melotti yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
-
- 23 Ock, 2010 1 kayıt (commit)
-
-
Ezio Melotti yazdı
-
- 19 Ock, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
A patch from Dave Malcolm.
-
- 08 Ock, 2010 2 kayıt (commit)
-
-
Senthil Kumaran yazdı
mistake. ( It may come in for sure tough)
-
Senthil Kumaran yazdı
-
- 05 Ara, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
references to long in py3k. Patch provided by flox.
-