Created
June 15, 2012 08:32
-
-
Save sergey-miryanov/2935416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Future (object) : | |
def __init__ (self, *args, **kwargs) : | |
super (Future, self).__init__ (*args, **kwargs) | |
def __nonzero__ (self) : | |
return bool (self._data ()) | |
def __len__ (self) : | |
return len (self._data ()) | |
def __setitem__ (self, key, value) : | |
return self._data ().__setitem__ (key, value) | |
def __getitem__ (self, key) : | |
return self._data ().__getitem__ (key) | |
def __str__ (self) : | |
return self._data ().__str__ () | |
def __repr__ (self) : | |
return self._data ().__repr__ () | |
def _data (self) : | |
pass # load data | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment