Serhiy Storchaka
bf7b9ede1a
Issue #25706 : Fixed markup in the documentation.
2015-11-23 16:43:05 +02:00
Martin Panter
2eb819f7a8
Issue #25523 : Merge "a" to "an" fixes from 3.4 into 3.5
2015-11-02 04:04:57 +00:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
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.
2015-11-02 03:37:02 +00:00
Martin Panter
84835ab1cb
Issue #25161 : Merge full stops from 3.4 into 3.5
2015-10-10 10:44:25 +00:00
Martin Panter
d21e0b52f1
Issue #25161 : Add full stops in documentation; patch by Takase Arihiro
2015-10-10 10:36:22 +00:00
Martin Panter
36f22a2820
Issue #24808 : Merge 3.4 into 3.5; adjust new tp_as_async field
2015-08-25 05:25:21 +00:00
Martin Panter
78d5033337
Issue #24808 : Update the documentation of some PyTypeObject fields
...
Patch by Joseph Weston.
2015-08-25 05:06:39 +00:00
Benjamin Peterson
8e205f7b4f
merge 3.4 ( #24883 )
2015-08-17 23:38:46 -07:00
Benjamin Peterson
2053aa1193
'Py_Buffer' should be 'Py_buffer' ( closes #24883 )
2015-08-17 23:38:34 -07:00
Stefan Krah
70e543b266
Issue #23756 : Clarify the terms "contiguous" and "bytes-like object".
...
Patch by Martin Panter.
2015-08-08 14:33:28 +02:00
Zachary Ware
4ffc3d4480
Merge 3.4
2015-07-07 00:00:43 -05:00
Zachary Ware
e36402a830
Fix usage of the default role.
...
The changes to Doc/library/unittest.mock.rst are almost entirely a
selective backport of the 3.5 page.
2015-07-06 23:58:12 -05:00
Zachary Ware
5c676f67d1
Fix suspicious markup
2015-07-06 23:27:15 -05:00
Nick Coghlan
2ab5b092e5
Close #24458 : PEP 489 documentation
...
Patch by Petr Viktorin.
2015-07-03 19:49:15 +10:00
Yury Selivanov
f488fb422a
Issue #19235 : Add new RecursionError exception. Patch by Georg Brandl.
2015-07-03 01:04:23 -04:00
Yury Selivanov
bce294b993
docs.capi: Fix tp_as_async doc
2015-06-23 11:46:09 -04:00
Yury Selivanov
5376ba9630
Issue #24400 : Introduce a distinct type for 'async def' coroutines.
...
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")
2015-06-22 12:19:30 -04:00
Serhiy Storchaka
cd881b850c
Fixed documentation of functions with const char* arguments.
2015-06-21 17:12:16 +03:00
Serhiy Storchaka
03863d2b29
Fixed documentation of functions with const char* arguments.
2015-06-21 17:11:21 +03:00
Serhiy Storchaka
289dd19124
Added the const qualifier for char* argument of Py_EnterRecursiveCall().
2015-06-21 16:27:09 +03:00
Serhiy Storchaka
5fa22fc088
Added the const qualifier for char* argument of Py_EnterRecursiveCall().
2015-06-21 16:26:28 +03:00
Yury Selivanov
6ef059097c
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
2015-05-28 11:21:31 -04:00
Nick Coghlan
d5cacbb1d9
PEP 489: Multi-phase extension module initialization
...
Known limitations of the current implementation:
- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet
The leak is most visible by running:
./python -m test -R3:3 test_importlib
However, you can also see it by running:
./python -X showrefcount
Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.
2015-05-23 22:24:10 +10:00
Yury Selivanov
a18cad543f
Issue 24180: Fixes by Berker Peksag.
2015-05-21 17:02:31 -04:00
Yury Selivanov
f3e40fac10
Issue 24180: Documentation for PEP 492 changes.
2015-05-21 11:50:30 -04:00
R David Murray
812bc1b86b
Merge: #23088 : Clarify null termination of bytes and strings in C API.
2015-05-13 20:32:19 -04:00
R David Murray
0a560a11af
#23088 : Clarify null termination of bytes and strings in C API.
...
Patch by Martin Panter, reviewed by Serhiy Storchaka and R. David Murray.
2015-05-13 20:31:53 -04:00
Serhiy Storchaka
d894027ec1
Fixed a typo.
2015-05-02 19:25:02 +03:00
Serhiy Storchaka
a7db0576ac
Fixed a typo.
2015-05-02 19:24:41 +03:00
Larry Hastings
770ce204ee
Regenerated pydoc-topics and fixed bad/suspicious doc markup for Python 3.5.0a4.
2015-04-19 13:50:12 -07:00
R David Murray
f3cae79883
Merge: #23957 : fix typo.
2015-04-14 16:42:49 -04:00
R David Murray
5be7f1513d
#23957 : fix typo.
2015-04-14 16:42:08 -04:00
Gregory P. Smith
a8b120641b
issue9014: Include more formatting on :c:type:`PyObject` etc.
2015-04-14 11:21:26 -07:00
Gregory P. Smith
0f2f3bc9db
issue9014: Include more formatting on :c:type:`PyObject` etc.
2015-04-14 11:21:05 -07:00
Gregory P. Smith
b8dde4f5c3
issue9014: Properly document PyObject_HEAD and friends post-PEP-3123.
2015-04-14 11:13:14 -07:00
Gregory P. Smith
1b24465c93
issue9014: Properly document PyObject_HEAD and friends post-PEP-3123.
2015-04-14 11:12:53 -07:00
Brett Cannon
f299abdafa
Issue #23731 : Implement PEP 488.
...
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
2015-04-13 14:21:02 -04:00
Larry Hastings
ab792ac704
Doc clarification / edification on the semantics of the 'w*' format unit.
2015-04-13 11:30:56 -04:00
Victor Stinner
926ce70066
Merge 3.4 (marshal doc)
2015-03-18 13:59:02 +01:00
Victor Stinner
6a318d420a
Issue #19428 : Document that PyMarshal_ReadLongFromFile() and
...
PyMarshal_ReadShortFromFile() can fail.
2015-03-18 13:58:49 +01:00
Berker Peksag
32799953b0
Issue #23081 : Document that PySequence_List also accepts iterables.
...
Patch by Lars Buitinck.
2015-03-13 02:55:45 +02:00
Berker Peksag
09bb904fda
Issue #23081 : Document that PySequence_List also accepts iterables.
...
Patch by Lars Buitinck.
2015-03-13 02:56:12 +02:00
Stefan Krah
3a43d06321
Whitespace.
2015-02-01 19:46:31 +01:00
Stefan Krah
3e9bec26f4
Whitespace.
2015-02-01 19:45:14 +01:00
Stefan Krah
a7e9a6a076
Issue #23352 : Merge from 3.4.
2015-02-01 19:42:45 +01:00
Stefan Krah
0dc4e153a2
Issue #23352 : Document that Py_buffer.suboffsets must be NULL if no suboffsets
...
are required.
2015-02-01 19:42:12 +01:00
Serhiy Storchaka
d3faf43f9b
Issue #23181 : More "codepoint" -> "code point".
2015-01-18 11:28:37 +02:00
Georg Brandl
3be472b5f7
Closes #23181 : codepoint -> code point
2015-01-14 08:26:30 +01:00
Benjamin Peterson
610bc6a211
merge 3.4 ( #23221 )
2015-01-13 09:20:31 -05:00
Benjamin Peterson
82f34ada45
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Benjamin Peterson
7a120ecdf4
merge 3.4 ( #23110 )
2014-12-24 10:51:10 -06:00
Benjamin Peterson
b33bb89b1a
doucment that Py_SetPath copies its argument ( closes #23110 )
2014-12-24 10:49:11 -06:00
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
2014-12-05 22:25:22 +02:00
Serhiy Storchaka
92bf919ed0
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
2014-12-05 22:26:10 +02:00
Berker Peksag
87f6c2212e
Issue #19676 : Tweak documentation a bit.
...
* Updated version info to 3.5
* Fixed a markup error
* Added a versionadded directive to namereplace_errors documentation
2014-11-25 18:59:20 +02:00
Serhiy Storchaka
166ebc4e5d
Issue #19676 : Added the "namereplace" error handler.
2014-11-25 13:57:17 +02:00
Georg Brandl
e21a531ef1
merge with 3.4
2014-10-31 10:39:29 +01:00
Georg Brandl
a4c8c47961
#22613 : remaining corrections in extending/reference docs (thanks Jacques Ducasse)
2014-10-31 10:38:49 +01:00
Georg Brandl
93a56cdc37
Doc: fix default role usage (except in unittest mock docs)
2014-10-30 22:25:41 +01:00
Georg Brandl
35aa10be6c
merge with 3.4
2014-10-11 15:04:20 +02:00
Georg Brandl
e8ea355b72
Closes #21687 : delimiter in Py_SetPath is platform dependent
2014-10-11 14:36:02 +02:00
Victor Stinner
8786ea36d0
(Merge 3.4) Closes #22580 : Fix documentation of PyUnicode_Tailmatch()
...
The result type is Py_ssize_t (and not int).
2014-10-09 11:11:49 +02:00
Victor Stinner
13d3aa502d
Closes #22580 : Fix documentation of PyUnicode_Tailmatch()
...
The result type is Py_ssize_t (and not int).
2014-10-09 11:11:25 +02:00
Georg Brandl
92b47a4d0f
merge with 3.4
2014-10-06 14:38:58 +02:00
Georg Brandl
f6d6dc2e36
Clean up the docs of PyObject_IsSubclass and PyObject_IsInstance, and mention that they call the PEP 3119 methods.
2014-10-06 14:38:53 +02:00
Georg Brandl
4ae7839e19
merge with 3.4
2014-10-06 14:15:13 +02:00
Georg Brandl
a920b6d762
Closes #22507 : document that PyType_IsSubtype does not call __subclasscheck__.
2014-10-06 14:15:06 +02:00
Georg Brandl
b65ff1d4f3
merge with 3.4
2014-10-06 12:58:36 +02:00
Georg Brandl
97435166aa
Closes #22565 : fix argument types of PyErr_WarnEx.
2014-10-06 12:58:00 +02:00
Benjamin Peterson
1fe8ada4e5
merge 3.4 ( #18494 )
2014-10-05 21:20:51 -04:00
Benjamin Peterson
1c262a6c75
PyObject not PyType ( closes #18494 )
2014-10-05 21:20:36 -04:00
Georg Brandl
31e34fe7a3
merge with 3.4
2014-10-05 16:38:25 +02:00
Georg Brandl
340c749a3a
Closes #19477 : remove outdated documentation of tp_print type object slot.
2014-10-05 16:38:02 +02:00
Antoine Pitrou
550ff723a0
Reorganize C API docs of the exception API
2014-09-30 21:56:10 +02:00
Antoine Pitrou
0676a406bf
Issue #18711 : Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting a `va_list` argument.
2014-09-30 21:16:27 +02:00
Victor Stinner
25e014bd91
Issue #18395 , #22108 : Update embedded Python examples to decode correctly
...
command line parameters: use Py_DecodeLocale() and PyUnicode_DecodeFSDefault().
2014-08-01 12:28:49 +02:00
Victor Stinner
f6a271ae98
Issue #18395 : Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename
...
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these
functions.
2014-08-01 12:28:48 +02:00
Victor Stinner
115171086a
Issue #22018 : On Windows, signal.set_wakeup_fd() now also supports sockets.
...
A side effect is that Python depends to the WinSock library.
2014-07-29 23:31:34 +02:00
Victor Stinner
1d8948e023
Backout 42ced0d023cd: oops, i didn't want to push this changeset :-/
2014-07-24 22:51:05 +02:00
Victor Stinner
d18ccd19f0
tets
2014-07-24 21:58:53 +02:00
Benjamin Peterson
0172b115db
merge 3.4 ( #17210 )
2014-07-19 16:35:08 -07:00
Benjamin Peterson
102488b644
args doesn't need to be a tuple ( closes #17210 )
2014-07-19 16:34:33 -07:00
Andrew Svetlov
a6237d822a
Merge 3.4
2014-07-03 16:07:57 +03:00
Andrew Svetlov
0d50af45b6
Update docs about tp_richcompare
2014-07-03 16:07:17 +03:00
Stefan Krah
d95224ceaf
Merge 3.4.
2014-06-30 00:16:09 +02:00
Stefan Krah
bb458dbe59
Issue #21778 : Clarify use of flags if PyBuffer_FillInfo() is used inside a
...
getbufferproc().
2014-06-30 00:15:45 +02:00
Jesus Cea
7232986239
MERGE: Closes #21441 : Reorder elements in documentation to match actual order in the code
2014-06-25 05:38:40 +02:00
Jesus Cea
ca5c7153de
MERGE: Closes #21441 : Reorder elements in documentation to match actual order in the code
2014-06-25 05:38:06 +02:00
Jesus Cea
e8ef8b7a20
Closes #21441 : Reorder elements in documentation to match actual order in the code
2014-06-25 05:37:17 +02:00
Zachary Ware
83500dc7a5
Merge quote quashing.
2014-06-06 09:14:33 -05:00
Zachary Ware
780b585fbc
Quash extraneous quote.
2014-06-06 09:13:18 -05:00
Victor Stinner
d8f0d922d5
Issue #21233 : Rename the C structure "PyMemAllocator" to "PyMemAllocatorEx" to
...
make sure that the code using it will be adapted for the new "calloc" field
(instead of crashing).
2014-06-02 21:57:10 +02:00
Eric Snow
b7f1be309e
Merge from 3.4 (for #21226 ).
2014-05-12 18:25:00 -06:00
Eric Snow
08197a4616
Issue #21226 : Set all attrs in PyImport_ExecCodeModuleObject.
2014-05-12 17:54:55 -06:00
Victor Stinner
db067af12a
Issue #21233 : Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
...
PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now
using ``calloc()`` instead of ``malloc()`` for large objects which is faster
and use less memory (until the bytearray buffer is filled with data).
2014-05-02 22:31:14 +02:00
Antoine Pitrou
63aeb71909
Issue #9307 : document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by Yury V. Zaytsev.
2014-04-29 01:39:26 +02:00
Antoine Pitrou
f9f54a2f5f
Issue #9307 : document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by Yury V. Zaytsev.
2014-04-29 01:39:03 +02:00
Benjamin Peterson
d51374ed78
PEP 465: a dedicated infix operator for matrix multiplication ( closes #21176 )
2014-04-09 23:55:56 -04:00
Benjamin Peterson
ce0700ae7a
PySequence_Fast generally returns a list not a tuple ( closes #16395 )
2014-04-08 10:48:36 -04:00
Benjamin Peterson
f0f7844f38
the name of the slot of nb_multiply not nb_mul
2014-04-08 10:44:30 -04:00