Farm Development

2 stupid things I coded this week

#1


try:
    do_stuff()
except:
    etype, val, tb = sys.exc_info()
    raise etype, "%s (%s)" % (val, "happened in the context of X"), tb

#2


class UsedToBeADict(object):
    foobar = make_foobar('with sugar'),
    bazbar = 1
    fezbar = 2

If you don't see the mistakes already, here are some hints...

Note: HTML tags will be stripped. Hit enter twice for a new paragraph.

Recent Projects

  • JSTestNet

    Like botnet but for JS tests in CI.

  • Nose Nicedots

    Nose plugin that prints nicer dots.

  • Fudge

    Mock objects for testing.

  • Fixture

    Loading and referencing test data.

  • NoseJS

    Nose plugin that runs JavaScript tests for a Python project.

  • Wikir

    converts reST to various Wiki formats.