Closed fmagin closed 4 years ago
This and possible related changes for better integration into IPython might be helpful or a full solution for https://github.com/urschrei/pyzotero/issues/92
Hi Florian, this seems like a convenient and useful addition. Thanks!
This is just a little convenience feature that sets
__wrapped__
on functions that are annotated withtcache
,retrieve
andbackoff_check
. Probably only useful forretrieve
functions, but might as well be consistent. This means thatzot.items.__wrapped__
contains<function pyzotero.zotero.Zotero.items(self, **kwargs)>
which allows IPython to show the documentation of this function instead of thewrapped_f
function defined insideretrieve
.Not sure if anyone ever really uses this API with IPython but at least for interactive exploring and playing around it is quite helpful.