backtrader.utils.py3 module
Python 2/3 Compatibility Module.
This module provides compatibility shims to support both Python 2 and Python 3.
It defines common types and functions that work across Python versions.
- Exports:
PY2: Boolean indicating if running on Python 2.
string_types: Tuple of string types.
integer_types: Tuple of integer types.
range: Python 3 style range function.
zip: Python 3 style zip function.
map: Python 3 style map function.
filter: Python 3 style filter function.
MAXINT: Maximum integer value.
-
backtrader.utils.py3.urlquote(s, *args, **kwargs)[源代码]
-
backtrader.utils.py3.urlopen(*args, **kwargs)[源代码]
-
backtrader.utils.py3.ProxyHandler(*args, **kwargs)[源代码]
-
backtrader.utils.py3.build_opener(*args, **kwargs)[源代码]
-
backtrader.utils.py3.install_opener(*args, **kwargs)[源代码]
-
backtrader.utils.py3.cmp(a, b)[源代码]
-
backtrader.utils.py3.bytes(x)[源代码]
-
backtrader.utils.py3.bstr(x)[源代码]
-
backtrader.utils.py3.iterkeys(d)[源代码]
-
backtrader.utils.py3.itervalues(d)[源代码]
-
backtrader.utils.py3.iteritems(d)[源代码]
-
backtrader.utils.py3.keys(d)[源代码]
-
backtrader.utils.py3.values(d)[源代码]
-
backtrader.utils.py3.items(d)[源代码]
-
backtrader.utils.py3.with_metaclass(meta, *bases)[源代码]
Create a base class with a metaclass.