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
a22bdd62
Commit
a22bdd62
authored
Oct 19, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19795: Improved more markups of True/False.
parent
4124a0be
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
23 additions
and
23 deletions
+23
-23
Doc/c-api/number.rst
Doc/c-api/number.rst
+2
-2
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+2
-2
Doc/library/asyncio-task.rst
Doc/library/asyncio-task.rst
+2
-2
Doc/library/ctypes.rst
Doc/library/ctypes.rst
+3
-3
Doc/library/functools.rst
Doc/library/functools.rst
+1
-1
Doc/library/io.rst
Doc/library/io.rst
+1
-1
Doc/library/logging.rst
Doc/library/logging.rst
+1
-1
Doc/library/quopri.rst
Doc/library/quopri.rst
+1
-1
Doc/library/ssl.rst
Doc/library/ssl.rst
+1
-1
Doc/library/subprocess.rst
Doc/library/subprocess.rst
+1
-1
Doc/library/sysconfig.rst
Doc/library/sysconfig.rst
+1
-1
Doc/library/threading.rst
Doc/library/threading.rst
+1
-1
Doc/whatsnew/2.7.rst
Doc/whatsnew/2.7.rst
+5
-5
Doc/whatsnew/3.3.rst
Doc/whatsnew/3.3.rst
+1
-1
No files found.
Doc/c-api/number.rst
View file @
a22bdd62
...
...
@@ -278,5 +278,5 @@ Number Protocol
.. c:function:: int PyIndex_Check(PyObject *o)
Returns
True
if *o* is an index integer (has the nb_index slot of the
tp_as_number structure filled in).
Returns
``1``
if *o* is an index integer (has the nb_index slot of the
tp_as_number structure filled in)
, and ``0`` otherwise
.
Doc/library/asyncio-eventloop.rst
View file @
a22bdd62
...
...
@@ -346,7 +346,7 @@ Creating connections
* *reuse_address* tells the kernel to reuse a local socket in
TIME_WAIT state, without waiting for its natural timeout to
expire. If not specified will automatically be set to
True
on
expire. If not specified will automatically be set to
``True``
on
UNIX.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
...
...
@@ -424,7 +424,7 @@ Creating listening connections
* *reuse_address* tells the kernel to reuse a local socket in
TIME_WAIT state, without waiting for its natural timeout to
expire. If not specified will automatically be set to
True
on
expire. If not specified will automatically be set to
``True``
on
UNIX.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
...
...
Doc/library/asyncio-task.rst
View file @
a22bdd62
...
...
@@ -245,7 +245,7 @@ Future
.. method:: done()
Return
True
if the future is done.
Return
``True``
if the future is done.
Done means either that a result / exception are available, or that the
future was cancelled.
...
...
@@ -562,7 +562,7 @@ Task functions
All futures must share the same event loop. If all the tasks are done
successfully, the returned future's result is the list of results (in the
order of the original sequence, not necessarily the order of results
arrival). If *return_exceptions* is
T
rue, exceptions in the tasks are
arrival). If *return_exceptions* is
t
rue, exceptions in the tasks are
treated the same as successful results, and gathered in the result list;
otherwise, the first raised exception will be immediately propagated to the
returned future.
...
...
Doc/library/ctypes.rst
View file @
a22bdd62
...
...
@@ -1358,7 +1358,7 @@ details, consult the :manpage:`dlopen(3)` manpage. On Windows, *mode* is
ignored. On posix systems, RTLD_NOW is always added, and is not
configurable.
The *use_errno* parameter, when set to
T
rue, enables a ctypes mechanism that
The *use_errno* parameter, when set to
t
rue, enables a ctypes mechanism that
allows accessing the system :data:`errno` error number in a safe way.
:mod:`ctypes` maintains a thread-local copy of the systems :data:`errno`
variable; if you call foreign functions created with ``use_errno=True`` then the
...
...
@@ -1369,7 +1369,7 @@ The function :func:`ctypes.get_errno` returns the value of the ctypes private
copy, and the function :func:`ctypes.set_errno` changes the ctypes private copy
to a new value and returns the former value.
The *use_last_error* parameter, when set to
T
rue, enables the same mechanism for
The *use_last_error* parameter, when set to
t
rue, enables the same mechanism for
the Windows error code which is managed by the :func:`GetLastError` and
:func:`SetLastError` Windows API functions; :func:`ctypes.get_last_error` and
:func:`ctypes.set_last_error` are used to request and change the ctypes private
...
...
@@ -1579,7 +1579,7 @@ type and the argument types of the function.
The returned function prototype creates functions that use the standard C
calling convention. The function will release the GIL during the call. If
*use_errno* is set to
T
rue, the ctypes private copy of the system
*use_errno* is set to
t
rue, the ctypes private copy of the system
:data:`errno` variable is exchanged with the real :data:`errno` value before
and after the call; *use_last_error* does the same for the Windows error
code.
...
...
Doc/library/functools.rst
View file @
a22bdd62
...
...
@@ -56,7 +56,7 @@ The :mod:`functools` module defines the following functions:
grow without bound. The LRU feature performs best when *maxsize* is a
power-of-two.
If *typed* is set to
T
rue, function arguments of different types will be
If *typed* is set to
t
rue, function arguments of different types will be
cached separately. For example, ``f(3)`` and ``f(3.0)`` will be treated
as distinct calls with distinct results.
...
...
Doc/library/io.rst
View file @
a22bdd62
...
...
@@ -537,7 +537,7 @@ Raw File I/O
The *name* can be one of two things:
* a character string or :class:`bytes` object representing the path to the
file which will be opened. In this case closefd must be
True
(the default)
file which will be opened. In this case closefd must be
``True``
(the default)
otherwise an error will be raised.
* an integer representing the number of an existing OS-level file descriptor
to which the resulting :class:`FileIO` object will give access. When the
...
...
Doc/library/logging.rst
View file @
a22bdd62
...
...
@@ -318,7 +318,7 @@ is the module's name in the Python package namespace.
looking
for
handlers
in
this
logger
and
its
parents
in
the
logger
hierarchy
.
Returns
``
True
``
if
a
handler
was
found
,
else
``
False
``.
The
method
stops
searching
up
the
hierarchy
whenever
a
logger
with
the
'propagate'
attribute
set
to
F
alse
is
found
-
that
will
be
the
last
logger
which
is
checked
for
the
f
alse
is
found
-
that
will
be
the
last
logger
which
is
checked
for
the
existence
of
handlers
.
..
versionadded
::
3.2
...
...
Doc/library/quopri.rst
View file @
a22bdd62
...
...
@@ -52,7 +52,7 @@ sending a graphics file.
Like :func:`encode`, except that it accepts a source :class:`bytes` and
returns the corresponding encoded :class:`bytes`. By default, it sends a
False
value to *quotetabs* parameter of the :func:`encode` function.
``False``
value to *quotetabs* parameter of the :func:`encode` function.
...
...
Doc/library/ssl.rst
View file @
a22bdd62
...
...
@@ -1387,7 +1387,7 @@ to speed up repeated connections from the same clients.
This setting doesn't apply to client sockets. You can also use the
:data:`OP_SINGLE_ECDH_USE` option to further improve security.
This method is not available if :data:`HAS_ECDH` is
False
.
This method is not available if :data:`HAS_ECDH` is
``False``
.
.. versionadded:: 3.3
...
...
Doc/library/subprocess.rst
View file @
a22bdd62
...
...
@@ -64,7 +64,7 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
is automatically created with ``stdin=PIPE``, and the *stdin* argument may
not be used as well.
If *check* is
T
rue, and the process exits with a non-zero exit code, a
If *check* is
t
rue, and the process exits with a non-zero exit code, a
:exc:`CalledProcessError` exception will be raised. Attributes of that
exception hold the arguments, the exit code, and stdout and stderr if they
were captured.
...
...
Doc/library/sysconfig.rst
View file @
a22bdd62
...
...
@@ -152,7 +152,7 @@ identifier. Python currently uses eight paths:
If *vars* is provided, it must be a dictionary of variables that will
update the dictionary used to expand the paths.
If *expand* is set to
F
alse, the paths will not be expanded.
If *expand* is set to
f
alse, the paths will not be expanded.
If *scheme* is not an existing scheme, :func:`get_paths` will raise a
:exc:`KeyError`.
...
...
Doc/library/threading.rst
View file @
a22bdd62
...
...
@@ -615,7 +615,7 @@ item to the buffer only needs to wake up one consumer thread.
.. method:: wait_for(predicate, timeout=None)
Wait until a condition evaluates to
T
rue. *predicate* should be a
Wait until a condition evaluates to
t
rue. *predicate* should be a
callable which result will be interpreted as a boolean value.
A *timeout* may be provided giving the maximum time to wait.
...
...
Doc/whatsnew/2.7.rst
View file @
a22bdd62
...
...
@@ -245,8 +245,8 @@ Deleting an entry and reinserting it will move it to the end::
[('first', 1), ('third', 3), ('second', 5)]
The :meth:`~collections.OrderedDict.popitem` method has an optional *last*
argument that defaults to
True. If *last* is T
rue, the most recently
added key is returned and removed; if it's
F
alse, the
argument that defaults to
``True``. If *last* is t
rue, the most recently
added key is returned and removed; if it's
f
alse, the
oldest key is selected::
>>> od = OrderedDict([(x,0) for x in range(20)])
...
...
@@ -1518,7 +1518,7 @@ changes, or look through the Subversion logs for all the details.
* The :mod:`SocketServer` module's :class:`~SocketServer.TCPServer` class now
supports socket timeouts and disabling the Nagle algorithm.
The :attr:`~SocketServer.TCPServer.disable_nagle_algorithm` class attribute
defaults to
False; if overridden to be T
rue,
defaults to
``False``; if overridden to be t
rue,
new request connections will have the TCP_NODELAY option set to
prevent buffering many small sends into a single TCP packet.
The :attr:`~SocketServer.BaseServer.timeout` class attribute can hold
...
...
@@ -1879,7 +1879,7 @@ The error messages for :meth:`~unittest.TestCase.assertEqual`,
:meth:`~unittest.TestCase.assertTrue`, and :meth:`~unittest.TestCase.assertFalse`
failures now provide more information. If you set the
:attr:`~unittest.TestCase.longMessage` attribute of your :class:`~unittest.TestCase` classes to
T
rue, both the standard error message and any additional message you
t
rue, both the standard error message and any additional message you
provide will be printed for failures. (Added by Michael Foord; :issue:`5663`.)
The :meth:`~unittest.TestCase.assertRaises` method now
...
...
@@ -1986,7 +1986,7 @@ GvR worked on merging them into Python's version of :mod:`unittest`.
sequence comparison methods do.
:func:`unittest.main` now takes an optional ``exit`` argument. If
F
alse, :func:`~unittest.main` doesn't call :func:`sys.exit`, allowing
f
alse, :func:`~unittest.main` doesn't call :func:`sys.exit`, allowing
:func:`~unittest.main` to be used from the interactive interpreter.
(Contributed by J. Pablo Fernández; :issue:`3379`.)
...
...
Doc/whatsnew/3.3.rst
View file @
a22bdd62
...
...
@@ -1742,7 +1742,7 @@ sched
-----
*
:
meth
:`~
sched
.
scheduler
.
run
`
now
accepts
a
*
blocking
*
parameter
which
when
set
to
F
alse
makes
the
method
execute
the
scheduled
events
due
to
expire
set
to
f
alse
makes
the
method
execute
the
scheduled
events
due
to
expire
soonest
(
if
any
)
and
then
return
immediately
.
This
is
useful
in
case
you
want
to
use
the
:
class
:`~
sched
.
scheduler
`
in
non
-
blocking
applications
.
(
Contributed
by
Giampaolo
Rodol
à
in
:
issue
:`
13449
`.)
...
...
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