| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,20 +64,20 @@ Socket addresses are represented as follows: | |||
| 64 | 64 | tuple, and the fields depend on the address type. The general tuple form is | |
| 65 | 65 | ``(addr_type, v1, v2, v3 [, scope])``, where: | |
| 66 | 66 | ||
| 67 | - - *addr_type* is one of TIPC_ADDR_NAMESEQ, TIPC_ADDR_NAME, or | ||
| 68 | - TIPC_ADDR_ID. | ||
| 69 | - - *scope* is one of TIPC_ZONE_SCOPE, TIPC_CLUSTER_SCOPE, and | ||
| 70 | - TIPC_NODE_SCOPE. | ||
| 71 | - - If *addr_type* is TIPC_ADDR_NAME, then *v1* is the server type, *v2* is | ||
| 67 | + - *addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, | ||
| 68 | + or :const:`TIPC_ADDR_ID`. | ||
| 69 | + - *scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and | ||
| 70 | + :const:`TIPC_NODE_SCOPE`. | ||
| 71 | + - If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, *v2* is | ||
| 72 | 72 | the port identifier, and *v3* should be 0. | |
| 73 | 73 | ||
| 74 | - If *addr_type* is TIPC_ADDR_NAMESEQ, then *v1* is the server type, *v2* | ||
| 74 | + If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, *v2* | ||
| 75 | 75 | is the lower port number, and *v3* is the upper port number. | |
| 76 | 76 | ||
| 77 | - If *addr_type* is TIPC_ADDR_ID, then *v1* is the node, *v2* is the | ||
| 77 | + If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the | ||
| 78 | 78 | reference, and *v3* should be set to 0. | |
| 79 | 79 | ||
| 80 | - If *addr_type* is TIPC_ADDR_ID, then *v1* is the node, *v2* is the | ||
| 80 | + If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the | ||
| 81 | 81 | reference, and *v3* should be set to 0. | |
| 82 | 82 | ||
| 83 | 83 | - A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -130,7 +130,7 @@ identifier. Python currently uses eight paths: | |||
| 130 | 130 | one may call this function and get the default value. | |
| 131 | 131 | ||
| 132 | 132 | If *scheme* is provided, it must be a value from the list returned by | |
| 133 | - :func:`get_path_names`. Otherwise, the default scheme for the current | ||
| 133 | + :func:`get_scheme_names`. Otherwise, the default scheme for the current | ||
| 134 | 134 | platform is used. | |
| 135 | 135 | ||
| 136 | 136 | If *vars* is provided, it must be a dictionary of variables that will update | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -482,7 +482,7 @@ def getmodule(object, _filename=None): | |||
| 482 | 482 | return sys.modules.get(modulesbyfile[file]) | |
| 483 | 483 | # Update the filename to module name cache and check yet again | |
| 484 | 484 | # Copy sys.modules in order to cope with changes while iterating | |
| 485 | - for modname, module in sys.modules.items(): | ||
| 485 | + for modname, module in list(sys.modules.items()): | ||
| 486 | 486 | if ismodule(module) and hasattr(module, '__file__'): | |
| 487 | 487 | f = module.__file__ | |
| 488 | 488 | if f == _filesbymodname.get(modname, None): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | To update the symbols in this file, 'cd' to the top directory of | |
| 8 | 8 | the python source tree after building the interpreter and run: | |
| 9 | 9 | ||
| 10 | - python Lib/keyword.py | ||
| 10 | + ./python Lib/keyword.py | ||
| 11 | 11 | """ | |
| 12 | 12 | ||
| 13 | 13 | __all__ = ["iskeyword", "kwlist"] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1598,8 +1598,7 @@ def getpreferredencoding(do_setlocale = True): | |||
| 1598 | 1598 | # to include every locale up to Windows Vista. | |
| 1599 | 1599 | # | |
| 1600 | 1600 | # NOTE: this mapping is incomplete. If your language is missing, please | |
| 1601 | - # submit a bug report to Python bug manager, which you can find via: | ||
| 1602 | - # http://www.python.org/dev/ | ||
| 1601 | + # submit a bug report to the Python bug tracker at http://bugs.python.org/ | ||
| 1603 | 1602 | # Make sure you include the missing language identifier and the suggested | |
| 1604 | 1603 | # locale code. | |
| 1605 | 1604 | # | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | # To update the symbols in this file, 'cd' to the top directory of | |
| 8 | 8 | # the python source tree after building the interpreter and run: | |
| 9 | 9 | # | |
| 10 | - # python Lib/symbol.py | ||
| 10 | + # ./python Lib/symbol.py | ||
| 11 | 11 | ||
| 12 | 12 | #--start constants-- | |
| 13 | 13 | single_input = 256 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -177,6 +177,7 @@ | |||
| 177 | 177 | import platform | |
| 178 | 178 | import random | |
| 179 | 179 | import re | |
| 180 | + import shutil | ||
| 180 | 181 | import signal | |
| 181 | 182 | import sys | |
| 182 | 183 | import sysconfig | |
@@ -1042,6 +1043,23 @@ def restore_asyncore_socket_map(self, saved_map): | |||
| 1042 | 1043 | asyncore.close_all(ignore_all=True) | |
| 1043 | 1044 | asyncore.socket_map.update(saved_map) | |
| 1044 | 1045 | ||
| 1046 | + def get_shutil_archive_formats(self): | ||
| 1047 | + # we could call get_archives_formats() but that only returns the | ||
| 1048 | + # registry keys; we want to check the values too (the functions that | ||
| 1049 | + # are registered) | ||
| 1050 | + return shutil._ARCHIVE_FORMATS, shutil._ARCHIVE_FORMATS.copy() | ||
| 1051 | + def restore_shutil_archive_formats(self, saved): | ||
| 1052 | + shutil._ARCHIVE_FORMATS = saved[0] | ||
| 1053 | + shutil._ARCHIVE_FORMATS.clear() | ||
| 1054 | + shutil._ARCHIVE_FORMATS.update(saved[1]) | ||
| 1055 | + | ||
| 1056 | + def get_shutil_unpack_formats(self): | ||
| 1057 | + return shutil._UNPACK_FORMATS, shutil._UNPACK_FORMATS.copy() | ||
| 1058 | + def restore_shutil_unpack_formats(self, saved): | ||
| 1059 | + shutil._UNPACK_FORMATS = saved[0] | ||
| 1060 | + shutil._UNPACK_FORMATS.clear() | ||
| 1061 | + shutil._UNPACK_FORMATS.update(saved[1]) | ||
| 1062 | + | ||
| 1045 | 1063 | def get_logging__handlers(self): | |
| 1046 | 1064 | # _handlers is a WeakValueDictionary | |
| 1047 | 1065 | return id(logging._handlers), logging._handlers, logging._handlers.copy() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | # To update the symbols in this file, 'cd' to the top directory of | |
| 8 | 8 | # the python source tree after building the interpreter and run: | |
| 9 | 9 | # | |
| 10 | - # python Lib/token.py | ||
| 10 | + # ./python Lib/token.py | ||
| 11 | 11 | ||
| 12 | 12 | #--start constants-- | |
| 13 | 13 | ENDMARKER = 0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -978,6 +978,7 @@ Frank J. Tobin | |||
| 978 | 978 | Bennett Todd | |
| 979 | 979 | R Lindsay Todd | |
| 980 | 980 | Eugene Toder | |
| 981 | + Erik Tollerud | ||
| 981 | 982 | Matias Torchinsky | |
| 982 | 983 | Sandro Tosi | |
| 983 | 984 | Richard Townsend | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -399,6 +399,9 @@ Core and Builtins | |||
| 399 | 399 | Library | |
| 400 | 400 | ------- | |
| 401 | 401 | ||
| 402 | + - Issue #13487: Make inspect.getmodule robust against changes done to | ||
| 403 | + sys.modules while it is iterating over it. | ||
| 404 | + | ||
| 402 | 405 | - Issue #12618: Fix a bug that prevented py_compile from creating byte | |
| 403 | 406 | compiled files in the current directory. Initial patch by Sjoerd de Vries. | |
| 404 | 407 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments