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
fc8205cb
Commit
fc8205cb
authored
Oct 08, 2018
by
Emanuele Gaifas
Committed by
Carol Willing
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing closing quote and trailing period in str.isidentifier() docstring (GH-9756)
This rectifies commit
ffc5a14d
.
parent
ffc5a14d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Objects/clinic/unicodeobject.c.h
Objects/clinic/unicodeobject.c.h
+2
-2
Objects/unicodeobject.c
Objects/unicodeobject.c
+2
-2
No files found.
Objects/clinic/unicodeobject.c.h
View file @
fc8205cb
...
...
@@ -382,7 +382,7 @@ PyDoc_STRVAR(unicode_isidentifier__doc__,
"Return True if the string is a valid Python identifier, False otherwise.
\n
"
"
\n
"
"Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
\n
"
"such as
\"
def
\"
or
\"
class"
);
"such as
\"
def
\"
or
\"
class
\"
.
"
);
#define UNICODE_ISIDENTIFIER_METHODDEF \
{"isidentifier", (PyCFunction)unicode_isidentifier, METH_NOARGS, unicode_isidentifier__doc__},
...
...
@@ -951,4 +951,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
{
return
unicode_sizeof_impl
(
self
);
}
/*[clinic end generated code: output=
c9476bf19f13c286
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
8bcd992b25733bcc
input=a9049054013a1b77]*/
Objects/unicodeobject.c
View file @
fc8205cb
...
...
@@ -12101,12 +12101,12 @@ str.isidentifier as unicode_isidentifier
Return True if the string is a valid Python identifier, False otherwise.
Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
such as "def" or "class
such as "def" or "class
".
[clinic start generated code]*/
static
PyObject
*
unicode_isidentifier_impl
(
PyObject
*
self
)
/*[clinic end generated code: output=fe585a9666572905 input=2
fb643aafbcf0e1c
]*/
/*[clinic end generated code: output=fe585a9666572905 input=2
d807a104f21c0c5
]*/
{
return
PyBool_FromLong
(
PyUnicode_IsIdentifier
(
self
));
}
...
...
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