Lines Matching refs:Python
1 #include "Python.h"
5 "Optimized C implementation for the Python pickle module.");
81 /* Protocol 3 (Python 3.x) */
141 /* Import mappings for compatibility with Python 2.x */
571 the name of globals for Python 2.x. */
599 decoding strings pickled using Python
610 the name of globals pickled by Python 2.x. */
632 A custom hashtable mapping void* to Python ints. This is used by the pickler
1943 to the repr, for compatibility with Python 2.x. */
2018 Here we use a hack to be compatible with Python 2. Since in Python
2022 Python 2 *and* the appropriate 'bytes' object when unpickled
2023 using Python 3. Again this is a hack and we don't need to do this
3193 PyObject *code_obj; /* extension code as Python object */
3302 /* Since Python 3.0 now supports non-ASCII identifiers, we encode
3306 on Python 2.x. */
4149 protocol is 3; a backward-incompatible protocol designed for Python 3.
4153 version of Python needed to read the pickle produced.
4161 to map the new Python 3 names to the old module names used in Python
4162 2, so that the pickle data stream is readable with Python 2.
4558 XXX: It would be nice to able to avoid Python function call overhead, by
4617 * it as a Python int object. */
4769 compatibility with Python 3.0.0, we don't actually *require*
4901 /* Leave the Python 2.x strings as bytes if the *encoding* given to the
4940 /* Convert Python 2.x strings to bytes if the *encoding* given to the
5235 identifiers are permitted in Python 3.0, since the INST opcode is only
5236 supported by older protocols on Python 2.x. */
5653 PyObject *py_code; /* code as a Python int */
5695 /* Since the extension registry is manipulable via Python code,
6407 /* Try to map the old names used in Python 2.x to the new ones used in
6408 Python 3.x. We do this only with old pickle protocols and when the
6602 generated by Python 2. If *fix_imports* is True, pickle will try to
6603 map the old Python 2 names to the new names used in Python 3. The
6605 instances pickled by Python 2; these default to 'ASCII' and 'strict',
7021 protocol is 3; a backward-incompatible protocol designed for Python 3.
7025 version of Python needed to read the pickle produced.
7033 to map the new Python 3 names to the old module names used in Python
7034 2, so that the pickle data stream is readable with Python 2.
7080 protocol is 3; a backward-incompatible protocol designed for Python 3.
7084 version of Python needed to read the pickle produced.
7087 try to map the new Python 3 names to the old module names used in
7088 Python 2, so that the pickle data stream is readable with Python 2.
7144 generated by Python 2. If *fix_imports* is True, pickle will try to
7145 map the old Python 2 names to the new names used in Python 3. The
7147 instances pickled by Python 2; these default to 'ASCII' and 'strict',
7198 generated by Python 2. If *fix_imports* is True, pickle will try to
7199 map the old Python 2 names to the new names used in Python 3. The
7201 instances pickled by Python 2; these default to 'ASCII' and 'strict',