@contextlib.contextmanager
def delay_doc_updates(cls):
 _delayed_docs_classes.add(cls)
 (yield)
 _delayed_docs_classes.discard(cls)
 _update__doc__(cls, u'read')
 _update__doc__(cls, u'write')

@ contextlib . contextmanager def delay_doc_updates ( cls ) : _delayed_docs_classes . add ( cls ) ( yield ) _delayed_docs_classes . discard ( cls ) _update__doc__ ( cls , u'read' ) _update__doc__ ( cls , u'write' )
contextmanager to disable documentation updates when registering reader and writer .