Package pydo :: Module utils
[show private | hide private]
[frames | no frames]

Module pydo.utils

utility functions imported by other PyDO modules.
Function Summary
  any(val, iter)
  every(val, iter)
  flatten(*l)
  formatTexp(o, a)
  getall(modlist)
  getuser()
  iflatten(*l)
  moduleize(module, kls, safe)
This can associate a dynamically created class with a module so that it can be pickled properly.
  string_to_obj(s, numframes)
  _import_a_class(fqcn)
  _setize(item)
turns an atom into a frozenset with one element, and a non-atom into a frozenset
  _strip_tablename(colname)
  _tupleize(item)
turns an atom into a tuple with one element, and a non-atom into a tuple

Function Details

moduleize(module, kls, safe=True)

This can associate a dynamically created class with a module so that it can be pickled properly. That doesn't mean it can necessarily be unpickled; the code that created and moduleized the class needs to run before unpickling can succeed.

_setize(item)

turns an atom into a frozenset with one element, and a non-atom into a frozenset

_tupleize(item)

turns an atom into a tuple with one element, and a non-atom into a tuple

Generated by Epydoc 2.0 on Wed Mar 8 10:18:59 2006 http://epydoc.sf.net