Source code for schlichtanders.mywrappers

""" Generic wrappers around standard functions, fixing some things which are useful for my workflow.  """
from __future__ import division
import collections


[docs]class defaultdict(collections.defaultdict): """ just overwrites representation methods of defaultdict type, nothing more """ def __str__(self): return str(dict(self.items())) def __repr__(self): return str(self)
[docs]def str_list(l): return '[' + ','.join(map(str, l)) + ']'