Undocumented
Class | FastEncodingBuffer |
a very rudimentary buffer that is faster than StringIO, but doesn't crash on unicode data like cStringIO. |
Class | LRUCache |
A dictionary-like object that stores a limited number of items, discarding lesser used items periodically. |
Class | memoized_instancemethod |
Decorate a method memoize its return value. |
Class | memoized_property |
A read-only @property that is only evaluated once. |
Class | PluginLoader |
Undocumented |
Class | SetLikeDict |
a dictionary that has some setlike methods on it |
Function | parse_encoding |
Deduce the encoding of a Python source file (binary mode) from magic comment. |
Function | read_file |
Undocumented |
Function | read_python_file |
Undocumented |
Function | restore__ast |
Attempt to restore the required classes to the _ast module if it appears to be missing them |
Function | sorted_dict_repr |
repr() a dictionary with the keys in order. |
Function | to_list |
Undocumented |
Function | update_wrapper |
Undocumented |
Function | verify_directory |
create and/or verify a filesystem directory. |
Variable | _PYTHON_MAGIC_COMMENT_re |
Undocumented |
Deduce the encoding of a Python source file (binary mode) from magic comment.
It does this in the same way as the Python interpreter
The fp argument should be a seekable file object in binary mode.