|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Sat Jun 17 04:32:54 2017 |
| 2 | +# Autogenerated by Sphinx on Mon Sep 18 23:00:11 2017 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
8558 | 8558 | '\n'
|
8559 | 8559 | 'The potential uses for metaclasses are boundless. Some ideas '
|
8560 | 8560 | 'that have\n'
|
8561 |
| - 'been explored include logging, interface checking, ' |
| 8561 | + 'been explored include enum, logging, interface checking, ' |
8562 | 8562 | 'automatic\n'
|
8563 | 8563 | 'delegation, automatic property creation, proxies, '
|
8564 | 8564 | 'frameworks, and\n'
|
@@ -10332,27 +10332,22 @@
|
10332 | 10332 | '*******************\n'
|
10333 | 10333 | '\n'
|
10334 | 10334 | 'Any object can be tested for truth value, for use in an "if" or\n'
|
10335 |
| - '"while" condition or as operand of the Boolean operations below. ' |
10336 |
| - 'The\n' |
10337 |
| - 'following values are considered false:\n' |
10338 |
| - '\n' |
10339 |
| - '* "None"\n' |
10340 |
| - '\n' |
10341 |
| - '* "False"\n' |
| 10335 | + '"while" condition or as operand of the Boolean operations below.\n' |
10342 | 10336 | '\n'
|
10343 |
| - '* zero of any numeric type, for example, "0", "0.0", "0j".\n' |
10344 |
| - '\n' |
10345 |
| - '* any empty sequence, for example, "\'\'", "()", "[]".\n' |
| 10337 | + 'By default, an object is considered true unless its class defines\n' |
| 10338 | + 'either a "__bool__()" method that returns "False" or a "__len__()"\n' |
| 10339 | + 'method that returns zero, when called with the object. [1] Here ' |
| 10340 | + 'are\n' |
| 10341 | + 'most of the built-in objects considered false:\n' |
10346 | 10342 | '\n'
|
10347 |
| - '* any empty mapping, for example, "{}".\n' |
| 10343 | + '* constants defined to be false: "None" and "False".\n' |
10348 | 10344 | '\n'
|
10349 |
| - '* instances of user-defined classes, if the class defines a\n' |
10350 |
| - ' "__bool__()" or "__len__()" method, when that method returns the\n' |
10351 |
| - ' integer zero or "bool" value "False". [1]\n' |
| 10345 | + '* zero of any numeric type: "0", "0.0", "0j", "Decimal(0)",\n' |
| 10346 | + ' "Fraction(0, 1)"\n' |
10352 | 10347 | '\n'
|
10353 |
| - 'All other values are considered true --- so objects of many types ' |
10354 |
| - 'are\n' |
10355 |
| - 'always true.\n' |
| 10348 | + '* empty sequences and collections: "\'\'", "()", "[]", "{}", ' |
| 10349 | + '"set()",\n' |
| 10350 | + ' "range(0)"\n' |
10356 | 10351 | '\n'
|
10357 | 10352 | 'Operations and built-in functions that have a Boolean result '
|
10358 | 10353 | 'always\n'
|
|
12401 | 12396 | 'operations.\n'
|
12402 | 12397 | ' Lists also provide the following additional method:\n'
|
12403 | 12398 | '\n'
|
12404 |
| - ' sort(*, key=None, reverse=None)\n' |
| 12399 | + ' sort(*, key=None, reverse=False)\n' |
12405 | 12400 | '\n'
|
12406 | 12401 | ' This method sorts the list in place, using only "<" '
|
12407 | 12402 | 'comparisons\n'
|
|
0 commit comments