Various utilities and code snippets I have written for various occasions.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
unsorted
COPYING
README.markdown
Y_combinator.py
a.yml
a_an_checker
b.yml
c.yml
chain.1.py
chain.py
chainaa.py
compare_dicts.py
dupkeydict.py
hier.py
lazy_attributes.py
memoize_and_partialfuncs.py
modpath
piecewise_function.py
put_str.py
pydit
registry.py
splitsnippets.py
unittest_skeleton.py

README.markdown

An Index of Useful or Interesting Snippets in this Repository

  • Y_combinator.py a python implementation of the Y combinator
  • compare_dicts.py a python function for comparing dictionaries
  • lazy_attributes.py a python class for lazy loading attributes
  • memoize_and_partialfuncs.py a python implementation of memoization and piecewise definition of functions
  • piecewise_function.py a better implementation of piecewise functions
  • registry.py an implementation of a registry pattern that allows the registered objects to be registered either by a "with" statement or a function call
  • pydit open a file specified by python module name (e.g. twisted.web.http) in vim
  • modpath print the path to a python module on stdout
  • a_an_checker check English text for proper usage of a/an

All code is under the Apache Licence 2.0