Files changed (4)
# Attrib: Eli Bendersky, http://stackoverflow.com/questions/1305532/convert-python-dict-to-object/1305663#1305663
"""Refreshes the data in the resultset with fresh API data. Note that this doesn't work with extended resultsets."""
"""Creates a partial description of the API object, with the proviso that the full set of data can be fetched later."""
question = property(lambda self: self._question if self._question is not None else self.site.question(self.question_id))
owner = property(lambda self: self._owner if self._owner is not None else self.site.user(self.owner_id))
self.recipients = StackExchangeLazySequence(User, None, site, json.badges_recipients_url, self._up('recipients'))
self.rate_limit = (int(info.getheader('X-RateLimit-Current')), int(info.getheader('X-RateLimit-Max')))
"""Retrieves an object representing a question with the ID `nid`. Note that an answer ID can not be specified -
unlike on the actual site, you will receive an error rather than a redirect to the actual question."""
"""Returns the set of all the badges which can be awarded on the site, excluding those which are awarded for specific tags."""
"""Returns the set of all the tag-based badges: those which are awarded for performance on a specific tag."""