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
9955a373
Commit
9955a373
authored
Oct 07, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various minor typos in documentation and comments
parent
85b8f455
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
12 deletions
+12
-12
Doc/library/collections.rst
Doc/library/collections.rst
+1
-1
Doc/library/test.rst
Doc/library/test.rst
+1
-1
Lib/http/server.py
Lib/http/server.py
+1
-1
Misc/HISTORY
Misc/HISTORY
+1
-1
Misc/NEWS
Misc/NEWS
+1
-1
Modules/_io/stringio.c
Modules/_io/stringio.c
+1
-1
Objects/object.c
Objects/object.c
+1
-1
Objects/typeobject.c
Objects/typeobject.c
+1
-1
PC/VS9.0/kill_python.c
PC/VS9.0/kill_python.c
+1
-1
PCbuild/kill_python.c
PCbuild/kill_python.c
+1
-1
Python/ceval.c
Python/ceval.c
+2
-2
No files found.
Doc/library/collections.rst
View file @
9955a373
...
...
@@ -980,7 +980,7 @@ anywhere a regular dictionary is used.
The :class:`OrderedDict` constructor and :meth:`update` method both accept
keyword arguments, but their order is lost because Python's function call
semantics pass
-
in keyword arguments using a regular unordered dictionary.
semantics pass
in keyword arguments using a regular unordered dictionary.
:class:`OrderedDict` Examples and Recipes
...
...
Doc/library/test.rst
View file @
9955a373
...
...
@@ -160,7 +160,7 @@ Running tests using the command-line interface
The :mod:`test` package can be run as a script to drive Python's regression
test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under
the hood, it uses :mod:`test.regrtest`; the call :program:`python -m
test.regrtest` used in previous Python versions still works
)
. Running the
test.regrtest` used in previous Python versions still works. Running the
script by itself automatically starts running all regression tests in the
:mod:`test` package. It does this by finding all modules in the package whose
name starts with ``test_``, importing them, and executing the function
...
...
Lib/http/server.py
View file @
9955a373
...
...
@@ -881,7 +881,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def
_url_collapse_path
(
path
):
"""
Given a URL path, remove extra '/'s and '.' path elements and collapse
any '..' references and returns a coll
l
apsed path.
any '..' references and returns a collapsed path.
Implements something akin to RFC-2396 5.2 step 6 to parse relative paths.
The utility of this function is limited to is_cgi method and helps
...
...
Misc/HISTORY
View file @
9955a373
...
...
@@ -6718,7 +6718,7 @@ Library
- Issue #7895: platform.mac_ver() no longer crashes after calling os.fork().
- Issue #9323: Fixed a bug in trace.py that resulted in lo
o
sing the name of the
- Issue #9323: Fixed a bug in trace.py that resulted in losing the name of the
script being traced. Patch by Eli Bendersky.
- Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli Bendersky for
Misc/NEWS
View file @
9955a373
...
...
@@ -1131,7 +1131,7 @@ Core and Builtins
engine
friendly
)
error
messages
when
"exec"
and
"print"
are
used
as
statements
.
-
Issue
#
21642
:
I
f
the
conditional
if
-
else
expression
,
allow
an
integer
written
-
Issue
#
21642
:
I
n
the
conditional
if
-
else
expression
,
allow
an
integer
written
with
no
space
between
itself
and
the
``
else
``
keyword
(
e
.
g
.
``
True
if
42
else
False
``)
to
be
valid
syntax
.
...
...
Modules/_io/stringio.c
View file @
9955a373
...
...
@@ -711,7 +711,7 @@ stringio_init(stringio *self, PyObject *args, PyObject *kwds)
/* If newline == "", we don't translate anything.
If newline == "\n" or newline == None, we translate to "\n", which is
a no-op.
(for newline == None, TextIOWrapper translates to os.
sepline
, but it
(for newline == None, TextIOWrapper translates to os.
linesep
, but it
is pointless for StringIO)
*/
if
(
newline
!=
NULL
&&
newline
[
0
]
==
'\r'
)
{
...
...
Objects/object.c
View file @
9955a373
...
...
@@ -459,7 +459,7 @@ PyObject_Repr(PyObject *v)
#ifdef Py_DEBUG
/* PyObject_Repr() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller lo
o
ses its exception */
caller loses its exception */
assert
(
!
PyErr_Occurred
());
#endif
...
...
Objects/typeobject.c
View file @
9955a373
...
...
@@ -876,7 +876,7 @@ type_call(PyTypeObject *type, PyObject *args, PyObject *kwds)
#ifdef Py_DEBUG
/* type_call() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller lo
o
ses its exception */
caller loses its exception */
assert
(
!
PyErr_Occurred
());
#endif
...
...
PC/VS9.0/kill_python.c
View file @
9955a373
...
...
@@ -108,7 +108,7 @@ main(int argc, char **argv)
* modules for all processes (not just the python[_d].exe ones)
* and see if any of our DLLs are loaded (i.e. python34[_d].dll),
* as that would also inhibit our ability to rebuild the solution.
* Not worth lo
osing sleep over though; for now, a simple check
* Not worth lo
sing sleep over though; for now, a simple check
* for just the python executable should be sufficient.
*/
...
...
PCbuild/kill_python.c
View file @
9955a373
...
...
@@ -108,7 +108,7 @@ main(int argc, char **argv)
* modules for all processes (not just the python[_d].exe ones)
* and see if any of our DLLs are loaded (i.e. python34[_d].dll),
* as that would also inhibit our ability to rebuild the solution.
* Not worth lo
osing sleep over though; for now, a simple check
* Not worth lo
sing sleep over though; for now, a simple check
* for just the python executable should be sufficient.
*/
...
...
Python/ceval.c
View file @
9955a373
...
...
@@ -1212,7 +1212,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
#ifdef Py_DEBUG
/* PyEval_EvalFrameEx() must not be called with an exception set,
because it may clear it (directly or indirectly) and so the
caller lo
o
ses its exception */
caller loses its exception */
assert
(
!
PyErr_Occurred
());
#endif
...
...
@@ -4087,7 +4087,7 @@ PyEval_CallObjectWithKeywords(PyObject *func, PyObject *arg, PyObject *kw)
#ifdef Py_DEBUG
/* PyEval_CallObjectWithKeywords() must not be called with an exception
set, because it may clear it (directly or indirectly)
and so the caller lo
o
ses its exception */
and so the caller loses its exception */
assert
(
!
PyErr_Occurred
());
#endif
...
...
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