Skip to content

Instantly share code, notes, and snippets.

View rizar's full-sized avatar

Dzmitry Bahdanau rizar

  • ServiceNow Research
View GitHub Profile
@rizar
rizar / main.py
Last active August 29, 2015 14:07
How to handle undefined parameteres without decorators
class UnDef():
pass
UNDEF = UnDef()
class Block(object):
def __getattribute__(self, name):
value = object.__getattribute__(self, name)
if value == UNDEF: