本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008
一图看懂 six 模块:最常见的 POSIX 系统调用, 资料整理+笔记(大全)
- 摘要
- 模块图
- 类关系图
- 模块全展开
- 【six】
- 统计
- 常量
- int
- bool
- str
- tuple
- list
- 模块
- 24 functools
- 25 itertools
- 26 operator
- 27 sys
- 28 types
- 29 six.moves
- 函数
- 30 spec_from_loader(name, loader, *, origin=None, is_package=None)
- 31 _add_doc(func, doc)
- 32 _import_module(name)
- 33 add_move(move)
- 34 remove_move(name)
- 35 get_unbound_function(unbound)
- 36 create_unbound_method(func, cls)
- 37 iterkeys(d, **kw)
- 38 itervalues(d, **kw)
- 39 iteritems(d, **kw)
- 40 iterlists(d, **kw)
- 41 b(s)
- 42 u(s)
- 43 assertCountEqual(self, *args, **kwargs)
- 44 assertRaisesRegex(self, *args, **kwargs)
- 45 assertRegex(self, *args, **kwargs)
- 46 assertNotRegex(self, *args, **kwargs)
- 47 reraise(tp, value, tb=None)
- 48 raise_from(value, from_value)
- 49 wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',))
- 50 with_metaclass(meta, *bases)
- 51 add_metaclass(metaclass)
- 52 ensure_binary(s, encoding='utf-8', errors='strict')
- 53 ensure_str(s, encoding='utf-8', errors='strict')
- 54 ensure_text(s, encoding='utf-8', errors='strict')
- 55 python_2_unicode_compatible(klass)
- 类
- 56 str
- 57 bytes
- 58 six._LazyDescr
- 59 six.MovedModule
- 60 six._LazyModule
- 61 six.MovedAttribute
- 62 six._SixMetaPathImporter
- method
- 1 create_module(self, spec)
- 2 exec_module(self, module)
- 3 find_module(self, fullname, path=None)
- 4 find_spec(self, fullname, path, target=None)
- 5 get_code(self, fullname)
- 6 get_source()
- 7 is_package(self, fullname)
- 8 load_module(self, fullname)
- 63 six._MovedItems
- method
- 1 BaseHTTPServer()
- 2 CGIHTTPServer()
- 3 SimpleHTTPServer()
- 4 StringIO()
- 5 UserDict()
- 6 UserList()
- 7 UserString()
- 8 cPickle()
- 9 cStringIO()
- 10 collections_abc()
- 11 configparser()
- 12 copyreg()
- 13 dbm_gnu()
- 14 dbm_ndbm()
- 15 email_mime_base()
- 16 email_mime_image()
- 17 email_mime_multipart()
- 18 email_mime_nonmultipart()
- 19 email_mime_text()
- 20 filter()
- 21 filterfalse()
- 22 getcwd()
- 23 getcwdb()
- 24 getoutput()
- 25 html_entities()
- 26 html_parser()
- 27 http_client()
- 28 http_cookiejar()
- 29 http_cookies()
- 30 input()
- 31 intern()
- 32 map()
- 33 queue()
- 34 range()
- 35 reduce()
- 36 reload_module()
- 37 reprlib()
- 38 shlex_quote()
- 39 socketserver()
- 40 tkinter()
- 41 tkinter_colorchooser()
- 42 tkinter_commondialog()
- 43 tkinter_constants()
- 44 tkinter_dialog()
- 45 tkinter_dnd()
- 46 tkinter_filedialog()
- 47 tkinter_font()
- 48 tkinter_messagebox()
- 49 tkinter_scrolledtext()
- 50 tkinter_simpledialog()
- 51 tkinter_tix()
- 52 tkinter_tkfiledialog()
- 53 tkinter_tksimpledialog()
- 54 tkinter_ttk()
- 55 urllib()
- 56 urllib_error()
- 57 urllib_parse()
- 58 urllib_robotparser()
- 59 winreg()
- 60 xmlrpc_client()
- 61 xmlrpc_server()
- 62 xrange()
- 63 zip()
- 64 zip_longest()
- 64 six.Module_six_moves_urllib_parse
- method
- 1 ParseResult()
- 2 SplitResult()
- 3 parse_qs()
- 4 parse_qsl()
- 5 quote()
- 6 quote_plus()
- 7 splitquery()
- 8 splittag()
- 9 splituser()
- 10 splitvalue()
- 11 unquote()
- 12 unquote_plus()
- 13 unquote_to_bytes()
- 14 urldefrag()
- 15 urlencode()
- 16 urljoin()
- 17 urlparse()
- 18 urlsplit()
- 19 urlunparse()
- 20 urlunsplit()
- 21 uses_fragment()
- 22 uses_netloc()
- 23 uses_params()
- 24 uses_query()
- 25 uses_relative()
- 65 six.Module_six_moves_urllib_error
- method
- 1 ContentTooShortError()
- 2 HTTPError()
- 3 URLError()
- 66 six.Module_six_moves_urllib_request
- method
- 1 AbstractBasicAuthHandler()
- 2 AbstractDigestAuthHandler()
- 3 BaseHandler()
- 4 CacheFTPHandler()
- 5 FTPHandler()
- 6 FancyURLopener()
- 7 FileHandler()
- 8 HTTPBasicAuthHandler()
- 9 HTTPCookieProcessor()
- 10 HTTPDefaultErrorHandler()
- 11 HTTPDigestAuthHandler()
- 12 HTTPErrorProcessor()
- 13 HTTPHandler()
- 14 HTTPPasswordMgr()
- 15 HTTPPasswordMgrWithDefaultRealm()
- 16 HTTPRedirectHandler()
- 17 HTTPSHandler()
- 18 OpenerDirector()
- 19 ProxyBasicAuthHandler()
- 20 ProxyDigestAuthHandler()
- 21 ProxyHandler()
- 22 Request()
- 23 URLopener()
- 24 UnknownHandler()
- 25 build_opener()
- 26 getproxies()
- 27 install_opener()
- 28 parse_http_list()
- 29 parse_keqv_list()
- 30 pathname2url()
- 31 proxy_bypass()
- 32 url2pathname()
- 33 urlcleanup()
- 34 urlopen()
- 35 urlretrieve()
- 67 six.Module_six_moves_urllib_response
- method
- 1 addbase()
- 2 addclosehook()
- 3 addinfo()
- 4 addinfourl()
- 68 six.Module_six_moves_urllib_robotparser
- method
- 1 RobotFileParser()
- 69 six.Module_six_moves_urllib
- data
- 70 method(function, instance)
- 71 object
- 72 _io.StringIO
- 73 _io.BytesIO
- 内嵌函数或方法
- 私有或局部
- 剩余
- 【functools】
- 【itertools】
- 【operator】
- 【sys】
- 【types】
摘要
全文介绍系统内置 six 模块、函数、类及类的方法和属性。
它通过代码抓取并经AI智能翻译和人工校对。
是一部不可多得的权威字典类工具书。它是系列集的一部分。后续陆续发布、敬请关注。【原创:AhcaoZhu大侠】
模块图
six
◆functools
◆itertools
◆operator
◆sys
◆types
类关系图
◆object
◆coroutine
◆getset_descriptor
◆module
six.Module_six_moves_urllib
six._LazyModule
six.Module_six_moves_urllib_error
six.Module_six_moves_urllib_parse
six.Module_six_moves_urllib_request
six.Module_six_moves_urllib_response
six.Module_six_moves_urllib_robotparser
six._MovedItems
six._LazyDescr
six.MovedAttribute
six.MovedModule
six._SixMetaPathImporter
模块全展开
【six】
six, fullname=six, file=six.py
用于编写在Python 2和3上运行的代码的实用程序
统计
序号 | 类别 | 数量 |
---|---|---|
1 | int | 1 |
2 | bool | 3 |
4 | str | 17 |
5 | tuple | 3 |
6 | list | 7 |
8 | dict | 1 |
9 | module | 6 |
10 | class | 18 |
11 | function | 26 |
12 | builtin_function_or_method | 9 |
13 | residual | 14 |
14 | system | 11 |
15 | private | 23 |
16 | all | 105 |
常量
int
1 MAXSIZE 9223372036854775807
bool
2 PY2 False
3 PY3 True
4 PY34 True
str
5 _meth_func func
6 _meth_self self
7 _func_closure closure
8 _func_code code
9 _func_defaults defaults
10 _func_globals globals
11 _assertCountEqual assertCountEqual
12 _assertRaisesRegex assertRaisesRegex
13 _assertRegex assertRegex
14 _assertNotRegex assertNotRegex
tuple
15 string_types (<class ‘str’>,)
16 integer_types (<class ‘int’>,)
17 class_types (<class ‘type’>,)
list
18 _moved_attributes [<six.MovedAttribute object at 0x00000224E0686EC8>, <six.MovedAttribute object at 0x00000224E0686F08>, <six.MovedAttribu…
19 _urllib_parse_moved_attributes [<six.MovedAttribute object at 0x00000224E0692108>, <six.MovedAttribute object at 0x00000224E0692148>, <six.MovedAttribu…
20 _urllib_error_moved_attributes [<six.MovedAttribute object at 0x00000224E06927C8>, <six.MovedAttribute object at 0x00000224E0692808>, <six.MovedAttribu…
21 _urllib_request_moved_attributes [<six.MovedAttribute object at 0x00000224E0692908>, <six.MovedAttribute object at 0x00000224E0692948>, <six.MovedAttribu…
22 _urllib_response_moved_attributes [<six.MovedAttribute object at 0x00000224E0697248>, <six.MovedAttribute object at 0x00000224E0697288>, <six.MovedAttribu…
23 _urllib_robotparser_moved_attributes [<six.MovedAttribute object at 0x00000224E06973C8>]
模块
24 functools
functools, fullname=functools, file=functools.py
25 itertools
itertools, fullname=itertools
26 operator
operator, fullname=operator, file=operator.py
27 sys
sys, fullname=sys
28 types
types, fullname=types, file=types.py
定义不能作为内置函数直接访问的内置类型的名称。
29 six.moves
moves, fullname=six.moves
延迟加载移动对象
函数
30 spec_from_loader(name, loader, *, origin=None, is_package=None)
spec_from_loader(name, loader, *, origin=None, is_package=None), module=_frozen_importlib, line:433 at ozen importlib._bootstrap>
返回基于各种加载器方法的模块规范。
31 _add_doc(func, doc)
_add_doc(func, doc), module=six, line:80 at site-packages\six.py
向函数添加文档。
32 _import_module(name)
_import_module(name), module=six, line:85 at site-packages\six.py
导入模块,返回最后一个点(.)后面的模块。
33 add_move(move)
add_move(move), module=six, line:510 at site-packages\six.py
添加一个条目物品到six.moves。
34 remove_move(name)
remove_move(name), module=six, line:515 at site-packages\six.py
从six.moves移除条目。
35 get_unbound_function(unbound)
get_unbound_function(unbound), module=six, line:560 at site-packages\six.py
将函数从可能未绑定的函数中取出
36 create_unbound_method(func, cls)
create_unbound_method(func, cls), module=six, line:565 at site-packages\six.py
37 iterkeys(d, **kw)
iterkeys(d, **kw), module=six, line:598 at site-packages\six.py
返回字典键的迭代器。
38 itervalues(d, **kw)
itervalues(d, **kw), module=six, line:601 at site-packages\six.py
返回字典值上的迭代器。
39 iteritems(d, **kw)
iteritems(d, **kw), module=six, line:604 at site-packages\six.py
返回字典(key, value) 对上的迭代器。
40 iterlists(d, **kw)
iterlists(d, **kw), module=six, line:607 at site-packages\six.py
返回字典(key, [values])对上的迭代器。
41 b(s)
b(s), module=six, line:643 at site-packages\six.py
字节的文字
42 u(s)
u(s), module=six, line:646 at site-packages\six.py
文本文字
43 assertCountEqual(self, *args, **kwargs)
assertCountEqual(self, *args, **kwargs), module=six, line:694 at site-packages\six.py
44 assertRaisesRegex(self, *args, **kwargs)
assertRaisesRegex(self, *args, **kwargs), module=six, line:698 at site-packages\six.py
45 assertRegex(self, *args, **kwargs)
assertRegex(self, *args, **kwargs), module=six, line:702 at site-packages\six.py
46 assertNotRegex(self, *args, **kwargs)
assertNotRegex(self, *args, **kwargs), module=six, line:706 at site-packages\six.py
47 reraise(tp, value, tb=None)
reraise(tp, value, tb=None), module=six, line:713 at site-packages\six.py
重新引发异常。
48 raise_from(value, from_value)
raise_from(value, from_value), module=six, line:1 at ring>
49 wraps(wrapped, assigned=(‘module’, ‘name’, ‘qualname’, ‘doc’, ‘annotations’), updated=(‘dict’,))
wraps(wrapped, assigned=(‘module’, ‘name’, ‘qualname’, ‘doc’, ‘annotations’), updated=(‘dict’,)), module=functools, line:67 at functools.py
将update_wrapper()应用于包装器函数的decorator工厂返回一个调用update_wrapper()的decorator,
并将被装饰的函数作为包装器参数,将wraps()的参数作为剩余参数。
默认参数与update_wrapper()相同。
这是一个方便的函数,可以简化将partial()应用于update_wrapper()的过程。
50 with_metaclass(meta, *bases)
with_metaclass(meta, *bases), module=six, line:856 at site-packages\six.py
用元类创建一个基类。
51 add_metaclass(metaclass)
add_metaclass(metaclass), module=six, line:880 at site-packages\six.py
类装饰器,用于创建带有元类的类。
52 ensure_binary(s, encoding=‘utf-8’, errors=‘strict’)
ensure_binary(s, encoding=‘utf-8’, errors=‘strict’), module=six, line:898 at site-packages\six.py
将 **s** 逼近到 six.binary_type。
对于Python 2:
- `unicode` -> encoded to `str`
- `str` -> `str`
对于Python 3:
- `str` -> encoded to `bytes`
- `bytes` -> `bytes`
53 ensure_str(s, encoding=‘utf-8’, errors=‘strict’)
ensure_str(s, encoding=‘utf-8’, errors=‘strict’), module=six, line:916 at site-packages\six.py
将 *s* 逼近 `str`。
对于 Python 2:
- `unicode` -> encoded to `str`
- `str` -> `str`
对于 Python 3:
- `str` -> `str`
- `bytes` -> decoded to `str`
54 ensure_text(s, encoding=‘utf-8’, errors=‘strict’)
ensure_text(s, encoding=‘utf-8’, errors=‘strict’), module=six, line:939 at site-packages\six.py
将 *s* 逼近到 six.text_type。
对于 Python 2:
- `unicode` -> `unicode`
- `str` -> `unicode`
对于 Python 3:
- `str` -> `str`
- `bytes` -> decoded to `str`
55 python_2_unicode_compatible(klass)
python_2_unicode_compatible(klass), module=six, line:958 at site-packages\six.py
在Python 2中定义 __unicode__ 和 __str__ 方法的类装饰器。
在Python 3下,它什么也不做。
要用单一代码库支持Python 2和Python 3,请定义一个返回文本的 __str__ 方法,并将此装饰器应用于该类。
类
56 str
str, str, module=builtins, line:0 at
57 bytes
bytes, bytes, module=builtins, line:0 at
58 six._LazyDescr
_LazyDescr, six._LazyDescr, module=six, line:91 at site-packages\six.py
59 six.MovedModule
MovedModule, six.MovedModule, module=six, line:108 at site-packages\six.py
60 six._LazyModule
_LazyModule, six._LazyModule, module=six, line:129 at site-packages\six.py
61 six.MovedAttribute
MovedAttribute, six.MovedAttribute, module=six, line:144 at site-packages\six.py
62 six._SixMetaPathImporter
_SixMetaPathImporter, six._SixMetaPathImporter, module=six, line:169 at site-packages\six.py
导入six.moves的元路径导入器及其子模块。
这个类实现了一个PEP302查找器和加载器。
它应该与Python 2.5和所有现有的Python3版本兼容。
method
1 create_module(self, spec)
kind=method class=_SixMetaPathImporter objtype=function line:236 at …\lib\site-packages\six.py
2 exec_module(self, module)
kind=method class=_SixMetaPathImporter objtype=function line:239 at …\lib\site-packages\six.py
3 find_module(self, fullname, path=None)
kind=method class=_SixMetaPathImporter objtype=function line:189 at …\lib\site-packages\six.py
4 find_spec(self, fullname, path, target=None)
kind=method class=_SixMetaPathImporter objtype=function line:194 at …\lib\site-packages\six.py
5 get_code(self, fullname)
kind=method class=_SixMetaPathImporter objtype=function line:228 at …\lib\site-packages\six.py
如果实现了该包,则返回无
6 get_source()
kind=method class=_SixMetaPathImporter objtype=function
如果实现了该包is_package,则返回无
7 is_package(self, fullname)
kind=method class=_SixMetaPathImporter objtype=function line:219 at …\lib\site-packages\six.py
如果命名模块是包,则返回true。
我们需要使用此方法在Python 3.4中获得正确的规范对象(参见PEP451)
8 load_module(self, fullname)
kind=method class=_SixMetaPathImporter objtype=function line:205 at …\lib\site-packages\six.py
63 six._MovedItems
_MovedItems, six._MovedItems, module=six, line:245 at site-packages\six.py
延迟加载移动对象
method
1 BaseHTTPServer()
kind=method class=_MovedItems objtype=MovedModule
2 CGIHTTPServer()
kind=method class=_MovedItems objtype=MovedModule
3 SimpleHTTPServer()
kind=method class=_MovedItems objtype=MovedModule
4 StringIO()
kind=method class=_MovedItems objtype=MovedAttribute
5 UserDict()
kind=method class=_MovedItems objtype=MovedAttribute
6 UserList()
kind=method class=_MovedItems objtype=MovedAttribute
7 UserString()
kind=method class=_MovedItems objtype=MovedAttribute
8 cPickle()
kind=method class=_MovedItems objtype=MovedModule
9 cStringIO()
kind=method class=_MovedItems objtype=MovedAttribute
10 collections_abc()
kind=method class=_MovedItems objtype=MovedModule
11 configparser()
kind=method class=_MovedItems objtype=MovedModule
12 copyreg()
kind=method class=_MovedItems objtype=MovedModule
13 dbm_gnu()
kind=method class=_MovedItems objtype=MovedModule
14 dbm_ndbm()
kind=method class=_MovedItems objtype=MovedModule
15 email_mime_base()
kind=method class=_MovedItems objtype=MovedModule
16 email_mime_image()
kind=method class=_MovedItems objtype=MovedModule
17 email_mime_multipart()
kind=method class=_MovedItems objtype=MovedModule
18 email_mime_nonmultipart()
kind=method class=_MovedItems objtype=MovedModule
19 email_mime_text()
kind=method class=_MovedItems objtype=MovedModule
20 filter()
kind=method class=_MovedItems objtype=MovedAttribute
21 filterfalse()
kind=method class=_MovedItems objtype=MovedAttribute
22 getcwd()
kind=method class=_MovedItems objtype=MovedAttribute
23 getcwdb()
kind=method class=_MovedItems objtype=MovedAttribute
24 getoutput()
kind=method class=_MovedItems objtype=MovedAttribute
25 html_entities()
kind=method class=_MovedItems objtype=MovedModule
26 html_parser()
kind=method class=_MovedItems objtype=MovedModule
27 http_client()
kind=method class=_MovedItems objtype=MovedModule
28 http_cookiejar()
kind=method class=_MovedItems objtype=MovedModule
29 http_cookies()
kind=method class=_MovedItems objtype=MovedModule
30 input()
kind=method class=_MovedItems objtype=MovedAttribute
31 intern()
kind=method class=_MovedItems objtype=MovedAttribute
32 map()
kind=method class=_MovedItems objtype=MovedAttribute
33 queue()
kind=method class=_MovedItems objtype=MovedModule
34 range()
kind=method class=_MovedItems objtype=MovedAttribute
35 reduce()
kind=method class=_MovedItems objtype=MovedAttribute
36 reload_module()
kind=method class=_MovedItems objtype=MovedAttribute
37 reprlib()
kind=method class=_MovedItems objtype=MovedModule
38 shlex_quote()
kind=method class=_MovedItems objtype=MovedAttribute
39 socketserver()
kind=method class=_MovedItems objtype=MovedModule
40 tkinter()
kind=method class=_MovedItems objtype=MovedModule
41 tkinter_colorchooser()
kind=method class=_MovedItems objtype=MovedModule
42 tkinter_commondialog()
kind=method class=_MovedItems objtype=MovedModule
43 tkinter_constants()
kind=method class=_MovedItems objtype=MovedModule
44 tkinter_dialog()
kind=method class=_MovedItems objtype=MovedModule
45 tkinter_dnd()
kind=method class=_MovedItems objtype=MovedModule
46 tkinter_filedialog()
kind=method class=_MovedItems objtype=MovedModule
47 tkinter_font()
kind=method class=_MovedItems objtype=MovedModule
48 tkinter_messagebox()
kind=method class=_MovedItems objtype=MovedModule
49 tkinter_scrolledtext()
kind=method class=_MovedItems objtype=MovedModule
50 tkinter_simpledialog()
kind=method class=_MovedItems objtype=MovedModule
51 tkinter_tix()
kind=method class=_MovedItems objtype=MovedModule
52 tkinter_tkfiledialog()
kind=method class=_MovedItems objtype=MovedModule
53 tkinter_tksimpledialog()
kind=method class=_MovedItems objtype=MovedModule
54 tkinter_ttk()
kind=method class=_MovedItems objtype=MovedModule
55 urllib()
kind=method class=_MovedItems objtype=MovedModule
56 urllib_error()
kind=method class=_MovedItems objtype=MovedModule
57 urllib_parse()
kind=method class=_MovedItems objtype=MovedModule
58 urllib_robotparser()
kind=method class=_MovedItems objtype=MovedModule
59 winreg()
kind=method class=_MovedItems objtype=MovedModule
60 xmlrpc_client()
kind=method class=_MovedItems objtype=MovedModule
61 xmlrpc_server()
kind=method class=_MovedItems objtype=MovedModule
62 xrange()
kind=method class=_MovedItems objtype=MovedAttribute
63 zip()
kind=method class=_MovedItems objtype=MovedAttribute
64 zip_longest()
kind=method class=_MovedItems objtype=MovedAttribute
64 six.Module_six_moves_urllib_parse
Module_six_moves_urllib_parse, six.Module_six_moves_urllib_parse, module=six, line:340 at site-packages\six.py
在 six.moves.urllib_parse 解析中延迟加载移动对象
method
1 ParseResult()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
2 SplitResult()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
3 parse_qs()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
4 parse_qsl()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
5 quote()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
6 quote_plus()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
7 splitquery()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
8 splittag()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
9 splituser()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
10 splitvalue()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
11 unquote()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
12 unquote_plus()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
13 unquote_to_bytes()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
14 urldefrag()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
15 urlencode()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
16 urljoin()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
17 urlparse()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
18 urlsplit()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
19 urlunparse()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
20 urlunsplit()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
21 uses_fragment()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
22 uses_netloc()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
23 uses_params()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
24 uses_query()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
25 uses_relative()
kind=method class=Module_six_moves_urllib_parse objtype=MovedAttribute
65 six.Module_six_moves_urllib_error
Module_six_moves_urllib_error, six.Module_six_moves_urllib_error, module=six, line:382 at site-packages\six.py
在 six.moves.urllib_error 错误中延迟加载移动对象
method
1 ContentTooShortError()
kind=method class=Module_six_moves_urllib_error objtype=MovedAttribute
2 HTTPError()
kind=method class=Module_six_moves_urllib_error objtype=MovedAttribute
3 URLError()
kind=method class=Module_six_moves_urllib_error objtype=MovedAttribute
66 six.Module_six_moves_urllib_request
Module_six_moves_urllib_request, six.Module_six_moves_urllib_request, module=six, line:402 at site-packages\six.py
在 six.moves.urllib_request 请求中延迟加载移动对象
method
1 AbstractBasicAuthHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
2 AbstractDigestAuthHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
3 BaseHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
4 CacheFTPHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
5 FTPHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
6 FancyURLopener()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
7 FileHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
8 HTTPBasicAuthHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
9 HTTPCookieProcessor()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
10 HTTPDefaultErrorHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
11 HTTPDigestAuthHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
12 HTTPErrorProcessor()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
13 HTTPHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
14 HTTPPasswordMgr()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
15 HTTPPasswordMgrWithDefaultRealm()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
16 HTTPRedirectHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
17 HTTPSHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
18 OpenerDirector()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
19 ProxyBasicAuthHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
20 ProxyDigestAuthHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
21 ProxyHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
22 Request()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
23 URLopener()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
24 UnknownHandler()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
25 build_opener()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
26 getproxies()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
27 install_opener()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
28 parse_http_list()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
29 parse_keqv_list()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
30 pathname2url()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
31 proxy_bypass()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
32 url2pathname()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
33 urlcleanup()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
34 urlopen()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
35 urlretrieve()
kind=method class=Module_six_moves_urllib_request objtype=MovedAttribute
67 six.Module_six_moves_urllib_response
Module_six_moves_urllib_response, six.Module_six_moves_urllib_response, module=six, line:454 at site-packages\six.py
在 six.moves.urllib_response 响应中延迟加载移动对象
method
1 addbase()
kind=method class=Module_six_moves_urllib_response objtype=MovedAttribute
2 addclosehook()
kind=method class=Module_six_moves_urllib_response objtype=MovedAttribute
3 addinfo()
kind=method class=Module_six_moves_urllib_response objtype=MovedAttribute
4 addinfourl()
kind=method class=Module_six_moves_urllib_response objtype=MovedAttribute
68 six.Module_six_moves_urllib_robotparser
Module_six_moves_urllib_robotparser, six.Module_six_moves_urllib_robotparser, module=six, line:475 at site-packages\six.py
在 six.moves.urllib_robotparser 中延迟加载移动对象
method
1 RobotFileParser()
kind=method class=Module_six_moves_urllib_robotparser objtype=MovedAttribute
69 six.Module_six_moves_urllib
Module_six_moves_urllib, six.Module_six_moves_urllib, module=six, line:340 at site-packages\six.py
创建一个类似于Python 3命名空间的 six.moves.urllib 命名空间
data
1 error=<module ‘six.moves.urllib.error’> kind:data type:Module_six_moves_urllib_error class:<class ‘six.Module_six_moves_urllib’>
2 parse=<module ‘six.moves.urllib_parse’> kind:data type:Module_six_moves_urllib_parse class:<class ‘six.Module_six_moves_urllib’>
3 request=<module ‘six.moves.urllib.request’> kind:data type:Module_six_moves_urllib_request class:<class ‘six.Module_six_moves_urllib’>
4 response=<module ‘six.moves.urllib.response’> kind:data type:Module_six_moves_urllib_response class:<class ‘six.Module_six_moves_urllib’>
5 robotparser=<module ‘six.moves.urllib.robotparser’> kind:data type:Module_six_moves_urllib_robotparser class:<class ‘six.Module_six_moves_urllib’>
70 method(function, instance)
method, method, module=builtins, line:0 at
创建绑定实例方法对象。
71 object
object, object, module=builtins, line:0 at
最基本的类型
72 _io.StringIO
StringIO, _io.StringIO, module=_io, line:0 at
使用内存缓冲区的文本I/O实现。初始值参数设置对象的值。newline参数类似于TextIOWrapper的构造函数。
73 _io.BytesIO
BytesIO, _io.BytesIO, module=_io, line:0 at
使用内存字节缓冲区的缓冲I/O实现。
内嵌函数或方法
74 advance_iterator
75 next
76 callable
77 unichr
78 int2byte <built-in method pack of Struct object at 0x00000224E06977F0>
79 indexbytes
80 iterbytes
81 exec_
82 print_
私有或局部
83 _add_doc <function _add_doc at 0x00000224E0620B88>
84 _import_module <function _import_module at 0x00000224E0687CA8>
85 _LazyDescr <class ‘six._LazyDescr’>
86 _LazyModule <class ‘six._LazyModule’>
87 _SixMetaPathImporter <class ‘six._SixMetaPathImporter’>
88 _importer <six._SixMetaPathImporter object at 0x00000224E0686E88>
89 _MovedItems <class ‘six._MovedItems’>
90 _moved_attributes [<six.MovedAttribute object at 0x00000224E0686EC8>, <six.MovedAttribute object at 0x00000224E0686F08>, <six.MovedAttribu…
91 _urllib_parse_moved_attributes [<six.MovedAttribute object at 0x00000224E0692108>, <six.MovedAttribute object at 0x00000224E0692148>, <six.MovedAttribu…
92 _urllib_error_moved_attributes [<six.MovedAttribute object at 0x00000224E06927C8>, <six.MovedAttribute object at 0x00000224E0692808>, <six.MovedAttribu…
93 _urllib_request_moved_attributes [<six.MovedAttribute object at 0x00000224E0692908>, <six.MovedAttribute object at 0x00000224E0692948>, <six.MovedAttribu…
94 _urllib_response_moved_attributes [<six.MovedAttribute object at 0x00000224E0697248>, <six.MovedAttribute object at 0x00000224E0697288>, <six.MovedAttribu…
95 _urllib_robotparser_moved_attributes [<six.MovedAttribute object at 0x00000224E06973C8>]
96 _meth_func func
97 _meth_self self
98 _func_closure closure
99 _func_code code
100 _func_defaults defaults
101 _func_globals globals
102 _assertCountEqual assertCountEqual
103 _assertRaisesRegex assertRaisesRegex
104 _assertRegex assertRegex
105 _assertNotRegex assertNotRegex
剩余
106 loader <_frozen_importlib_external.SourceFileLoader object at 0x00000224E0640148>
107 spec ModuleSpec(name=‘six’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x00000224E0640148>, origin=‘…\lib\site-packages\six.py’, submodule_search_locations=[])
108 absolute_import _Feature((2, 5, 0, ‘alpha’, 1), (3, 0, 0, ‘alpha’, 0), 16384)
109 _importer <six._SixMetaPathImporter object at 0x00000224E0686E88>
110 get_method_function operator.attrgetter(‘func’)
111 get_method_self operator.attrgetter(‘self’)
112 get_function_closure operator.attrgetter(‘closure’)
113 get_function_code operator.attrgetter(‘code’)
114 get_function_defaults operator.attrgetter(‘defaults’)
115 get_function_globals operator.attrgetter(‘globals’)
116 viewkeys operator.methodcaller(‘keys’)
117 viewvalues operator.methodcaller(‘values’)
118 viewitems operator.methodcaller(‘items’)
119 byte2int operator.itemgetter(0)
【functools】
functools, fullname=functools, file=functools.py
【itertools】
itertools, fullname=itertools
【operator】
operator, fullname=operator, file=operator.py
【sys】
sys, fullname=sys
【types】
types, fullname=types, file=types.py