Message407424
One way to do is to dynamically update the docstrings on import. Something like this:
for name in dir(_decimal.Decimal):
if name.startswith('_'):
continue
py_method = getattr(_decimal.Decimal, name)
py_doc = py_method.__doc__
if py_doc is None:
continue
c_method = getattr(_pydecimal.Decimal, name, None)
if c_method is None:
continue
c_doc = c_method.__doc__
if c_doc is None or len(c_doc) < len(py_doc):
c_method.__doc__ = py_doc |
|
Date |
User |
Action |
Args |
2021-12-01 03:21:20 | rhettinger | set | recipients:
+ rhettinger, skrah, docs@python, lisroach, furkanonder |
2021-12-01 03:21:20 | rhettinger | set | messageid: <1638328880.28.0.754183600167.issue27779@roundup.psfhosted.org> |
2021-12-01 03:21:20 | rhettinger | link | issue27779 messages |
2021-12-01 03:21:20 | rhettinger | create | |
|