IPython Documentation

Table Of Contents

Previous topic

utils.process

Next topic

utils.strdispatch

This Page

utils.py3compat

Module: utils.py3compat

Compatibility tricks for Python 3. Mainly to do with unicode.

Functions

IPython.utils.py3compat.cast_bytes(s, encoding=None)
IPython.utils.py3compat.cast_unicode(s, encoding=None)
IPython.utils.py3compat.decode(s, encoding=None)
IPython.utils.py3compat.encode(u, encoding=None)
IPython.utils.py3compat.no_code(x, encoding=None)