Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e010fc02
Commit
e010fc02
authored
Dec 17, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
parents
25ec056c
bb2e9c47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Misc/ACKS
Misc/ACKS
+1
-0
Objects/bytearrayobject.c
Objects/bytearrayobject.c
+5
-7
Objects/bytesobject.c
Objects/bytesobject.c
+4
-3
No files found.
Misc/ACKS
View file @
e010fc02
...
...
@@ -84,6 +84,7 @@ Andrew Bennetts
Andy Bensky
Michel Van den Bergh
Julian Berman
Brice Berna
Eric Beser
Steven Bethard
Stephen Bevan
...
...
Objects/bytearrayobject.c
View file @
e010fc02
...
...
@@ -2890,18 +2890,16 @@ bytearray_methods[] = {
PyDoc_STRVAR
(
bytearray_doc
,
"bytearray(iterable_of_ints) -> bytearray
\n
\
bytearray(string, encoding[, errors]) -> bytearray
\n
\
bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray
\n
\
bytearray(memory_view) -> bytearray
\n
\
bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer
\n
\
bytearray(int) -> bytes array of size given by the parameter initialized with null bytes
\n
\
bytearray() -> empty bytes array
\n
\
\n
\
Construct an mutable bytearray object from:
\n
\
- an iterable yielding integers in range(256)
\n
\
- a text string encoded using the specified encoding
\n
\
- a bytes or a b
ytearray
object
\n
\
- a bytes or a b
uffer
object
\n
\
- any object implementing the buffer API.
\n
\
\n
\
bytearray(int) -> bytearray
\n
\
\n
\
Construct a zero-initialized bytearray of the given length."
);
- an integer"
);
static
PyObject
*
bytearray_iter
(
PyObject
*
seq
);
...
...
Objects/bytesobject.c
View file @
e010fc02
...
...
@@ -2732,13 +2732,14 @@ PyDoc_STRVAR(bytes_doc,
"bytes(iterable_of_ints) -> bytes
\n
\
bytes(string, encoding[, errors]) -> bytes
\n
\
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
\n
\
bytes(memory_view) -> bytes
\n
\
bytes(int) -> bytes object of size given by the parameter initialized with null bytes
\n
\
bytes() -> empty bytes object
\n
\
\n
\
Construct an immutable array of bytes from:
\n
\
- an iterable yielding integers in range(256)
\n
\
- a text string encoded using the specified encoding
\n
\
- a
bytes or a buffer object
\n
\
- an
y object implementing the buffer API.
"
);
- a
ny object implementing the buffer API.
\n
\
- an
integer
"
);
static
PyObject
*
bytes_iter
(
PyObject
*
seq
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment