Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder". | Senthil Kumaran | 2016-09-07 | 1 | -4/+4 |
| | |||||
* | Issue #27782: Fix m_methods handling in multiphase init | Nick Coghlan | 2016-08-21 | 1 | -1/+1 |
| | | | | | | | | Multi-phase extension module import now correctly allows the ``m_methods`` field to be used to add module level functions to instances of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang. | ||||
* | Issue #12946: Document that PyModule_GetDict can fail in some cases | Berker Peksag | 2016-08-19 | 1 | -4/+7 |
| | |||||
* | Issue #24637: Document that locals can be any mapping object | Berker Peksag | 2016-08-13 | 1 | -8/+9 |
| | | | | | | | This behavior is already tested in test_general_eval in Lib/test/test_builtin.py Patch by Matthew Keeter. | ||||
* | Issue #24278: Explain how argument parsing output buffers are managed | Martin Panter | 2016-08-03 | 1 | -14/+19 |
| | |||||
* | Issue #27481: Docummented that ValueError is now raised instead of TypeError | Serhiy Storchaka | 2016-07-12 | 2 | -6/+22 |
| | | | | in case of embedded null characters/bytes. Patch by Xiang Zhang. | ||||
* | Add versionadded to PyDict_SetDefault documentation | Berker Peksag | 2016-07-05 | 1 | -0/+1 |
| | | | | It was added for Python 3.4 in a0b750ea3397. | ||||
* | Issue #24314: Fix doc links for general attributes like __name__, __dict__ | Martin Panter | 2016-06-18 | 2 | -4/+4 |
| | |||||
* | Issue #15657: Delete incorrect statement from PyMethodDef documentation | Berker Peksag | 2016-06-12 | 1 | -3/+2 |
| | |||||
* | [Issue 15476] Make "code object" its own entry in the index | Tommy Beadle | 2016-06-02 | 1 | -4/+2 |
| | |||||
* | note that Py_VISIT handles NULL (closes #27183) | Benjamin Peterson | 2016-06-02 | 1 | -3/+4 |
| | |||||
* | Issue #27125: Remove duplicated words from documentation and comments | Martin Panter | 2016-05-30 | 1 | -1/+1 |
| | |||||
* | Issue #25533: Update documentation regarding the frozen modules table | Martin Panter | 2016-05-15 | 1 | -1/+1 |
| | | | | | * "ctypes" documentation was using Python 2 bytes-str equivalence. * PyImport_FrozenModules is a pointer to const as of Python 3.4 | ||||
* | improve PyFunction_New docs (closes #26986) | Benjamin Peterson | 2016-05-10 | 1 | -2/+3 |
| | | | | Patch from Xiang Zhang. | ||||
* | Issue #26736: Used HTTPS for external links in the documentation if possible. | Serhiy Storchaka | 2016-05-07 | 1 | -1/+1 |
| | |||||
* | Issue #18353: Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst | Berker Peksag | 2016-04-24 | 1 | -2/+1 |
| | | | | Patch by Corey Brune. | ||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 2 | -5/+5 |
| | |||||
* | Issue #26760: Minimally document PyFrameObject | Brett Cannon | 2016-04-15 | 1 | -1/+7 |
| | |||||
* | Issue #15984: Correct PyUnicode_FromObject() and _FromEncodedObject() docs | Martin Panter | 2016-04-15 | 1 | -5/+7 |
| | |||||
* | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 5 | -8/+8 |
| | | | | This affects documentation, code comments, and a debugging messages. | ||||
* | Issue #26516: Enhance Python mem allocators doc | Victor Stinner | 2016-03-09 | 1 | -43/+77 |
| | | | | | | | * add link to PYTHONMALLOCSTATS env var * add parameters to PyMem macros like PyMem_MALLOC() * fix PyMem_SetupDebugHooks(): add Calloc functions * add some newlines for readability | ||||
* | Issue #22836: Keep exception reports sensible despite errors | Martin Panter | 2016-02-28 | 1 | -2/+2 |
| | |||||
* | Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar | Martin Panter | 2016-02-10 | 2 | -2/+2 |
| | | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear. | ||||
* | Issue #26198: Fixed error messages for some argument parsing errors. | Serhiy Storchaka | 2016-02-07 | 1 | -1/+2 |
| | | | | | Fixed the documented about buffer overflow error for "es#" and "et#" format units. | ||||
* | Add a link to PEP 384 in stable.rst | Berker Peksag | 2016-01-28 | 1 | -1/+1 |
| | |||||
* | issue25909 - Correct the documentation of PyMapping_Items, PyMapping_Keys and | Senthil Kumaran | 2016-01-21 | 1 | -7/+7 |
| | | | | | | PyMapping_Values in Include/abstract.h and Doc/c-api/mapping.rst. Patch contributed by Sonali Gupta. | ||||
* | Issue #12484: Remove a mention of Py_InitModule() and ↵ | Brett Cannon | 2015-12-27 | 1 | -5/+0 |
| | | | | | | | _PyImport_FixupExtension(). Thanks to Alejandro Santos for the bug report and Anish Shah for the patch. | ||||
* | Issue #25701: Document C API functions that both set and delete objects | Martin Panter | 2015-12-08 | 3 | -19/+40 |
| | | | | | | Also document that the separate functions that delete objects are preferred; using PyObject_SetAttr(), _SetAttrString(), and PySequence_SetItem() to delete is deprecated. | ||||
* | Issue #25706: Fixed markup in the documentation. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+1 |
|\ | |||||
| * | Issue #25706: Fixed markup in the documentation. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+1 |
| | | |||||
* | | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar. | ||||
* | | Issue #25161: Merge full stops from 3.4 into 3.5 | Martin Panter | 2015-10-10 | 3 | -3/+3 |
|\ \ | |/ | |||||
| * | Issue #25161: Add full stops in documentation; patch by Takase Arihiro | Martin Panter | 2015-10-10 | 3 | -3/+3 |
| | | |||||
* | | Issue #24808: Merge 3.4 into 3.5; adjust new tp_as_async field | Martin Panter | 2015-08-25 | 1 | -5/+5 |
|\ \ | |/ | |||||
| * | Issue #24808: Update the documentation of some PyTypeObject fields | Martin Panter | 2015-08-25 | 1 | -5/+5 |
| | | | | | | | | Patch by Joseph Weston. | ||||
* | | merge 3.4 (#24883) | Benjamin Peterson | 2015-08-18 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | 'Py_Buffer' should be 'Py_buffer' (closes #24883) | Benjamin Peterson | 2015-08-18 | 1 | -4/+4 |
| | | |||||
* | | Issue #23756: Clarify the terms "contiguous" and "bytes-like object". | Stefan Krah | 2015-08-08 | 2 | -7/+10 |
| | | | | | | | | Patch by Martin Panter. | ||||
* | | Merge 3.4 | Zachary Ware | 2015-07-07 | 1 | -3/+4 |
|\ \ | |/ | |||||
| * | Fix usage of the default role. | Zachary Ware | 2015-07-07 | 1 | -3/+4 |
| | | | | | | | | | | The changes to Doc/library/unittest.mock.rst are almost entirely a selective backport of the 3.5 page. | ||||
| * | Fix suspicious markup | Zachary Ware | 2015-07-07 | 1 | -1/+1 |
| | | |||||
* | | Close #24458: PEP 489 documentation | Nick Coghlan | 2015-07-03 | 2 | -77/+245 |
| | | | | | | | | Patch by Petr Viktorin. | ||||
* | | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. | Yury Selivanov | 2015-07-03 | 1 | -3/+9 |
| | | |||||
* | | docs.capi: Fix tp_as_async doc | Yury Selivanov | 2015-06-23 | 1 | -1/+1 |
| | | |||||
* | | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 3 | -7/+48 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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") | ||||
* | | Fixed documentation of functions with const char* arguments. | Serhiy Storchaka | 2015-06-21 | 8 | -14/+14 |
|\ \ | |/ | |||||
| * | Fixed documentation of functions with const char* arguments. | Serhiy Storchaka | 2015-06-21 | 8 | -14/+14 |
| | | |||||
* | | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Added the const qualifier for char* argument of Py_EnterRecursiveCall(). | Serhiy Storchaka | 2015-06-21 | 1 | -1/+1 |
| | |