|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -# Autogenerated by Sphinx on Thu Aug 29 23:57:58 2019 |
| 2 | +# Autogenerated by Sphinx on Tue Oct 1 14:53:09 2019 |
3 | 3 | topics = {'assert': 'The "assert" statement\n' |
4 | 4 | '**********************\n' |
5 | 5 | '\n' |
|
5375 | 5375 | 'the result |\n' |
5376 | 5376 | ' | | formatted with presentation type "\'e\'" ' |
5377 | 5377 | 'and precision "p-1" |\n' |
5378 | | - ' | | would have exponent "exp". Then if "-4 <= ' |
5379 | | - 'exp < p", the |\n' |
5380 | | - ' | | number is formatted with presentation type ' |
5381 | | - '"\'f\'" and |\n' |
5382 | | - ' | | precision "p-1-exp". Otherwise, the ' |
5383 | | - 'number is formatted |\n' |
5384 | | - ' | | with presentation type "\'e\'" and ' |
5385 | | - 'precision "p-1". In both |\n' |
5386 | | - ' | | cases insignificant trailing zeros are ' |
5387 | | - 'removed from the |\n' |
| 5378 | + ' | | would have exponent "exp". Then, if "m <= ' |
| 5379 | + 'exp < p", where |\n' |
| 5380 | + ' | | "m" is -4 for floats and -6 for ' |
| 5381 | + '"Decimals", the number is |\n' |
| 5382 | + ' | | formatted with presentation type "\'f\'" ' |
| 5383 | + 'and precision |\n' |
| 5384 | + ' | | "p-1-exp". Otherwise, the number is ' |
| 5385 | + 'formatted with |\n' |
| 5386 | + ' | | presentation type "\'e\'" and precision ' |
| 5387 | + '"p-1". In both cases |\n' |
| 5388 | + ' | | insignificant trailing zeros are removed ' |
| 5389 | + 'from the |\n' |
5388 | 5390 | ' | | significand, and the decimal point is also ' |
5389 | 5391 | 'removed if |\n' |
5390 | 5392 | ' | | there are no remaining digits following ' |
5391 | | - 'it. Positive and |\n' |
5392 | | - ' | | negative infinity, positive and negative ' |
5393 | | - 'zero, and nans, |\n' |
5394 | | - ' | | are formatted as "inf", "-inf", "0", "-0" ' |
5395 | | - 'and "nan" |\n' |
5396 | | - ' | | respectively, regardless of the ' |
5397 | | - 'precision. A precision of |\n' |
5398 | | - ' | | "0" is treated as equivalent to a ' |
5399 | | - 'precision of "1". The |\n' |
5400 | | - ' | | default precision is ' |
5401 | | - '"6". |\n' |
| 5393 | + 'it, unless the |\n' |
| 5394 | + ' | | "\'#\'" option is used. Positive and ' |
| 5395 | + 'negative infinity, |\n' |
| 5396 | + ' | | positive and negative zero, and nans, are ' |
| 5397 | + 'formatted as |\n' |
| 5398 | + ' | | "inf", "-inf", "0", "-0" and "nan" ' |
| 5399 | + 'respectively, |\n' |
| 5400 | + ' | | regardless of the precision. A precision ' |
| 5401 | + 'of "0" is |\n' |
| 5402 | + ' | | treated as equivalent to a precision of ' |
| 5403 | + '"1". The default |\n' |
| 5404 | + ' | | precision is ' |
| 5405 | + '"6". |\n' |
5402 | 5406 | ' ' |
5403 | 5407 | '+-----------+------------------------------------------------------------+\n' |
5404 | 5408 | ' | "\'G\'" | General format. Same as "\'g\'" except ' |
|
7048 | 7052 | '| Operator | ' |
7049 | 7053 | 'Description |\n' |
7050 | 7054 | '|=================================================|=======================================|\n' |
| 7055 | + '| ":=" | ' |
| 7056 | + 'Assignment expression |\n' |
| 7057 | + '+-------------------------------------------------+---------------------------------------+\n' |
7051 | 7058 | '| "lambda" | ' |
7052 | 7059 | 'Lambda expression |\n' |
7053 | 7060 | '+-------------------------------------------------+---------------------------------------+\n' |
|
7104 | 7111 | '| "x(arguments...)", "x.attribute" | ' |
7105 | 7112 | 'attribute reference |\n' |
7106 | 7113 | '+-------------------------------------------------+---------------------------------------+\n' |
7107 | | - '| "(expressions...)", "[expressions...]", "{key: | ' |
7108 | | - 'Binding or tuple display, list |\n' |
7109 | | - '| value...}", "{expressions...}" | ' |
7110 | | - 'display, dictionary display, set |\n' |
| 7114 | + '| "(expressions...)", "[expressions...]", "{key: | ' |
| 7115 | + 'Binding or parenthesized expression, |\n' |
| 7116 | + '| value...}", "{expressions...}" | list ' |
| 7117 | + 'display, dictionary display, set |\n' |
7111 | 7118 | '| | ' |
7112 | 7119 | 'display |\n' |
7113 | 7120 | '+-------------------------------------------------+---------------------------------------+\n' |
|
7475 | 7482 | ' estimated length for the object (which may be greater ' |
7476 | 7483 | 'or less than\n' |
7477 | 7484 | ' the actual length). The length must be an integer ">=" ' |
7478 | | - '0. This\n' |
| 7485 | + '0. The\n' |
| 7486 | + ' return value may also be "NotImplemented", which is ' |
| 7487 | + 'treated the\n' |
| 7488 | + ' same as if the "__length_hint__" method didn’t exist at ' |
| 7489 | + 'all. This\n' |
7479 | 7490 | ' method is purely an optimization and is never required ' |
7480 | 7491 | 'for\n' |
7481 | 7492 | ' correctness.\n' |
|
9199 | 9210 | ' estimated length for the object (which may be greater or ' |
9200 | 9211 | 'less than\n' |
9201 | 9212 | ' the actual length). The length must be an integer ">=" 0. ' |
9202 | | - 'This\n' |
| 9213 | + 'The\n' |
| 9214 | + ' return value may also be "NotImplemented", which is ' |
| 9215 | + 'treated the\n' |
| 9216 | + ' same as if the "__length_hint__" method didn’t exist at ' |
| 9217 | + 'all. This\n' |
9203 | 9218 | ' method is purely an optimization and is never required ' |
9204 | 9219 | 'for\n' |
9205 | 9220 | ' correctness.\n' |
|
12149 | 12164 | 'therefore,\n' |
12150 | 12165 | ' custom mapping types should support too):\n' |
12151 | 12166 | '\n' |
| 12167 | + ' list(d)\n' |
| 12168 | + '\n' |
| 12169 | + ' Return a list of all the keys used in the dictionary ' |
| 12170 | + '*d*.\n' |
| 12171 | + '\n' |
12152 | 12172 | ' len(d)\n' |
12153 | 12173 | '\n' |
12154 | 12174 | ' Return the number of items in the dictionary *d*.\n' |
@@ -12317,11 +12337,21 @@ |
12317 | 12337 | 'the\n' |
12318 | 12338 | ' documentation of view objects.\n' |
12319 | 12339 | '\n' |
| 12340 | + ' An equality comparison between one "dict.values()" ' |
| 12341 | + 'view and\n' |
| 12342 | + ' another will always return "False". This also applies ' |
| 12343 | + 'when\n' |
| 12344 | + ' comparing "dict.values()" to itself:\n' |
| 12345 | + '\n' |
| 12346 | + " >>> d = {'a': 1}\n" |
| 12347 | + ' >>> d.values() == d.values()\n' |
| 12348 | + ' False\n' |
| 12349 | + '\n' |
12320 | 12350 | ' Dictionaries compare equal if and only if they have the ' |
12321 | 12351 | 'same "(key,\n' |
12322 | | - ' value)" pairs. Order comparisons (‘<’, ‘<=’, ‘>=’, ‘>’) ' |
12323 | | - 'raise\n' |
12324 | | - ' "TypeError".\n' |
| 12352 | + ' value)" pairs (regardless of ordering). Order comparisons ' |
| 12353 | + '(‘<’,\n' |
| 12354 | + ' ‘<=’, ‘>=’, ‘>’) raise "TypeError".\n' |
12325 | 12355 | '\n' |
12326 | 12356 | ' Dictionaries preserve insertion order. Note that ' |
12327 | 12357 | 'updating a key\n' |
|
0 commit comments