Re: How to share apps between projects?

2015-03-21 Thread Zachary McCord
I second the suggestion of a git submodule, as it makes changes to the shared app much more convenient. This is also how I deal with third-party apps that I've forked. There is a small learning curve on git-submodule, but it's worth it. On Saturday, March 21, 2015 at 2:09:33 PM UTC-4, Ezequiel

Re: Catching AttributeError exceptions in widget media

2014-09-04 Thread Zachary McCord
I simply didn't believe it at first, but sure enough, in python 2.7: >>> class Bomb(object): ... def __getattr__(self, id): ... assert False ... >>> bomb = Bomb() >>> bomb.foo Traceback (most recent call last): File "", line 1, in File "", line 3, in __getattr__