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
573b1fd7
Commit
573b1fd7
authored
Aug 16, 2012
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix str docstring
parent
6f430e49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Objects/unicodeobject.c
Objects/unicodeobject.c
+8
-4
No files found.
Objects/unicodeobject.c
View file @
573b1fd7
...
...
@@ -9963,11 +9963,15 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}
PyDoc_STRVAR
(
unicode_doc
,
"str(
string
[, encoding[, errors]]) -> str
\n
\
"str(
object
[, encoding[, errors]]) -> str
\n
\
\n
\
Create a new string object from the given encoded string.
\n
\
encoding defaults to the current default string encoding.
\n
\
errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'."
);
Create a new string object from the given object. If encoding or
\n
\
errors is specified, then the object must expose a data buffer
\n
\
that will be decoded using the given encoding and error handler.
\n
\
Otherwise, returns the result of object.__str__() (if defined)
\n
\
or repr(object).
\n
\
encoding defaults to sys.getdefaultencoding().
\n
\
errors defaults to 'strict'."
);
static
PyObject
*
unicode_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