mirror of
https://github.com/python/cpython.git
synced 2025-10-19 07:53:46 +00:00
Compare commits
2 commits
af28efd8b4
...
6b94c7ceeb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6b94c7ceeb | ||
![]() |
9e235ffb21 |
4 changed files with 8 additions and 7 deletions
|
@ -449,9 +449,9 @@ def setcopyright():
|
|||
"""Set 'copyright' and 'credits' in builtins"""
|
||||
builtins.copyright = _sitebuiltins._Printer("copyright", sys.copyright)
|
||||
builtins.credits = _sitebuiltins._Printer("credits", """\
|
||||
Thanks to CWI, CNRI, BeOpen, Zope Corporation, the Python Software
|
||||
Foundation, and a cast of thousands for supporting Python
|
||||
development. See www.python.org for more information.""")
|
||||
Thanks to CWI, CNRI, BeOpen, Zope Corporation, the Python Software
|
||||
Foundation, and a cast of thousands for supporting Python
|
||||
development. See www.python.org for more information.""")
|
||||
files, dirs = [], []
|
||||
# Not all modules are required to have a __file__ attribute. See
|
||||
# PEP 420 for more details.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Dedent :data:`credits` text.
|
|
@ -1537,14 +1537,14 @@ bytearray_removesuffix_impl(PyByteArrayObject *self, Py_buffer *suffix)
|
|||
/*[clinic input]
|
||||
bytearray.resize
|
||||
size: Py_ssize_t
|
||||
New size to resize to..
|
||||
New size to resize to.
|
||||
/
|
||||
Resize the internal buffer of bytearray to len.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
bytearray_resize_impl(PyByteArrayObject *self, Py_ssize_t size)
|
||||
/*[clinic end generated code: output=f73524922990b2d9 input=75fd4d17c4aa47d3]*/
|
||||
/*[clinic end generated code: output=f73524922990b2d9 input=6c9a260ca7f72071]*/
|
||||
{
|
||||
Py_ssize_t start_size = PyByteArray_GET_SIZE(self);
|
||||
int result = PyByteArray_Resize((PyObject *)self, size);
|
||||
|
|
4
Objects/clinic/bytearrayobject.c.h
generated
4
Objects/clinic/bytearrayobject.c.h
generated
|
@ -599,7 +599,7 @@ PyDoc_STRVAR(bytearray_resize__doc__,
|
|||
"Resize the internal buffer of bytearray to len.\n"
|
||||
"\n"
|
||||
" size\n"
|
||||
" New size to resize to..");
|
||||
" New size to resize to.");
|
||||
|
||||
#define BYTEARRAY_RESIZE_METHODDEF \
|
||||
{"resize", (PyCFunction)bytearray_resize, METH_O, bytearray_resize__doc__},
|
||||
|
@ -1796,4 +1796,4 @@ bytearray_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return bytearray_sizeof_impl((PyByteArrayObject *)self);
|
||||
}
|
||||
/*[clinic end generated code: output=be6d28193bc96a2c input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=fdfe41139c91e409 input=a9049054013a1b77]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue