mirror of
https://github.com/python/cpython.git
synced 2025-10-06 07:02:33 +00:00
Update pydoc topics and NEWS blurbs for 3.6.3rc1
This commit is contained in:
parent
8afd7ab12d
commit
2f61f6417a
123 changed files with 1276 additions and 310 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Sat Jun 17 04:32:54 2017
|
||||
# Autogenerated by Sphinx on Mon Sep 18 23:00:11 2017
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -8558,7 +8558,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'The potential uses for metaclasses are boundless. Some ideas '
|
||||
'that have\n'
|
||||
'been explored include logging, interface checking, '
|
||||
'been explored include enum, logging, interface checking, '
|
||||
'automatic\n'
|
||||
'delegation, automatic property creation, proxies, '
|
||||
'frameworks, and\n'
|
||||
|
@ -10332,27 +10332,22 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'*******************\n'
|
||||
'\n'
|
||||
'Any object can be tested for truth value, for use in an "if" or\n'
|
||||
'"while" condition or as operand of the Boolean operations below. '
|
||||
'The\n'
|
||||
'following values are considered false:\n'
|
||||
'"while" condition or as operand of the Boolean operations below.\n'
|
||||
'\n'
|
||||
'* "None"\n'
|
||||
'\n'
|
||||
'* "False"\n'
|
||||
'\n'
|
||||
'* zero of any numeric type, for example, "0", "0.0", "0j".\n'
|
||||
'\n'
|
||||
'* any empty sequence, for example, "\'\'", "()", "[]".\n'
|
||||
'\n'
|
||||
'* any empty mapping, for example, "{}".\n'
|
||||
'\n'
|
||||
'* instances of user-defined classes, if the class defines a\n'
|
||||
' "__bool__()" or "__len__()" method, when that method returns the\n'
|
||||
' integer zero or "bool" value "False". [1]\n'
|
||||
'\n'
|
||||
'All other values are considered true --- so objects of many types '
|
||||
'By default, an object is considered true unless its class defines\n'
|
||||
'either a "__bool__()" method that returns "False" or a "__len__()"\n'
|
||||
'method that returns zero, when called with the object. [1] Here '
|
||||
'are\n'
|
||||
'always true.\n'
|
||||
'most of the built-in objects considered false:\n'
|
||||
'\n'
|
||||
'* constants defined to be false: "None" and "False".\n'
|
||||
'\n'
|
||||
'* zero of any numeric type: "0", "0.0", "0j", "Decimal(0)",\n'
|
||||
' "Fraction(0, 1)"\n'
|
||||
'\n'
|
||||
'* empty sequences and collections: "\'\'", "()", "[]", "{}", '
|
||||
'"set()",\n'
|
||||
' "range(0)"\n'
|
||||
'\n'
|
||||
'Operations and built-in functions that have a Boolean result '
|
||||
'always\n'
|
||||
|
@ -12401,7 +12396,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'operations.\n'
|
||||
' Lists also provide the following additional method:\n'
|
||||
'\n'
|
||||
' sort(*, key=None, reverse=None)\n'
|
||||
' sort(*, key=None, reverse=False)\n'
|
||||
'\n'
|
||||
' This method sorts the list in place, using only "<" '
|
||||
'comparisons\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue