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
dc0e3a89
Commit
dc0e3a89
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
e3d5787a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
25 deletions
+15
-25
Doc/c-api/number.rst
Doc/c-api/number.rst
+2
-2
Doc/library/ctypes.rst
Doc/library/ctypes.rst
+3
-3
Doc/library/httplib.rst
Doc/library/httplib.rst
+1
-1
Doc/library/logging.rst
Doc/library/logging.rst
+1
-11
Doc/library/ssl.rst
Doc/library/ssl.rst
+1
-1
Doc/library/sysconfig.rst
Doc/library/sysconfig.rst
+1
-1
Doc/library/xml.etree.elementtree.rst
Doc/library/xml.etree.elementtree.rst
+1
-1
Doc/whatsnew/2.7.rst
Doc/whatsnew/2.7.rst
+5
-5
No files found.
Doc/c-api/number.rst
View file @
dc0e3a89
...
...
@@ -316,7 +316,7 @@ 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
.
.. versionadded:: 2.5
Doc/library/ctypes.rst
View file @
dc0e3a89
...
...
@@ -1404,7 +1404,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
...
...
@@ -1415,7 +1415,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
...
...
@@ -1631,7 +1631,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/httplib.rst
View file @
dc0e3a89
...
...
@@ -49,7 +49,7 @@ The module provides the following classes:
server. It should be instantiated passing it a host and optional port
number. If no port number is passed, the port is extracted from the host
string if it has the form ``host:port``, else the default HTTP port (80) is
used. When
T
rue, the optional parameter *strict* (which defaults to a false
used. When
t
rue, the optional parameter *strict* (which defaults to a false
value) causes ``BadStatusLine`` to
be raised if the status line can't be parsed as a valid HTTP/1.0 or 1.1
status line. If the optional *timeout* parameter is given, blocking
...
...
Doc/library/logging.rst
View file @
dc0e3a89
...
...
@@ -1026,14 +1026,4 @@ with the :mod:`warnings` module.
package
available
from
this
site
is
suitable
for
use
with
Python
1.5.2
,
2.1
.
x
and
2.2
.
x
,
which
do
not
include
the
:
mod
:`
logging
`
package
in
the
standard
library
.
<<<<<<<
=======
:
lno
:
The
line
number
in
the
file
where
the
logging
call
was
made
.
:
msg
:
The
logging
message
.
:
args
:
The
arguments
for
the
logging
message
.
:
exc_info
:
An
exception
tuple
,
or
``
None
``.
:
func
:
The
name
of
the
function
or
method
which
invoked
the
logging
call
.
:
sinfo
:
A
stack
traceback
such
as
is
provided
by
>>>>>>>
Doc/library/ssl.rst
View file @
dc0e3a89
...
...
@@ -1246,7 +1246,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``
.
.. seealso::
`SSL/TLS & Perfect Forward Secrecy <http://vincent.bernat.im/en/blog/2011-ssl-perfect-forward-secrecy.html>`_
...
...
Doc/library/sysconfig.rst
View file @
dc0e3a89
...
...
@@ -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/xml.etree.elementtree.rst
View file @
dc0e3a89
...
...
@@ -855,7 +855,7 @@ ElementTree Objects
Writes the element tree to a file, as XML. *file* is a file name, or a
file object opened for writing. *encoding* [1]_ is the output encoding
(default is US-ASCII). *xml_declaration* controls if an XML declaration
should be added to the file. Use
False for never, True
for always, ``None``
should be added to the file. Use
``False`` for never, ``True``
for always, ``None``
for only if not US-ASCII or UTF-8 (default is ``None``). *default_namespace*
sets the default XML namespace (for "xmlns"). *method* is either
``"xml"``, ``"html"`` or ``"text"`` (default is ``"xml"``). Returns an
...
...
Doc/whatsnew/2.7.rst
View file @
dc0e3a89
...
...
@@ -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)])
...
...
@@ -1503,7 +1503,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
...
...
@@ -1855,7 +1855,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
...
...
@@ -1962,7 +1962,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`.)
...
...
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