[issue27779] Sync-up docstrings in C version of the the decimal module

2021-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: 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

[issue27779] Sync-up docstrings in C version of the the decimal module

2021-11-30 Thread Irit Katriel
Change by Irit Katriel : -- assignee: skrah -> keywords: +easy -patch type: -> enhancement versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2020-05-27 Thread Furkan Onder
Furkan Onder added the comment: Patches are prepared but not continued. It can be merge by small additions to the patches. -- nosy: +furkanonder ___ Python tracker ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-12-01 Thread Lisa Roach
Lisa Roach added the comment: This (should) be the patch with the python docstrings copied over to the C version. -- Added file: http://bugs.python.org/file45728/docstrings.patch ___ Python tracker

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-11-03 Thread Stefan Krah
Changes by Stefan Krah : -- keywords: -easy, patch ___ Python tracker ___ ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-11-03 Thread Stefan Krah
Changes by Stefan Krah : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-11-03 Thread Stefan Krah
Stefan Krah added the comment: Okay great. I think it's probably best to produce an initial patch with the verbatim Python docstrings (you can of course address the comments that I already made), then we mark the passages that are clearly not valid for _decimal or outdated for _pydecimal,

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-11-01 Thread Lisa Roach
Lisa Roach added the comment: Thanks for taking a look Stefan! I agree, it is definitely not as easy as it sounds. Your review and comments are helpful, I will make adjustments to the docstrings. If you want, I can continue to try to sync-up the docstrings and submit them for you and

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-10-23 Thread Stefan Krah
Stefan Krah added the comment: Lisa, thanks for the patch. I've left some comments -- some docstrings in the Python version are outdated, some not quite correct, some are not very clear (to me). I don't know how to proceed. Initially I thought it would be as easy as just taking over all

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-10-18 Thread Stefan Krah
Stefan Krah added the comment: Raymond: "code area" meant literally that -- all code under Modules/_decimal/* is by myself. It is well understood that you and many people (e.g. Mark Dickinson) have a stake in Decimal. This however does not warrant reassigning an issue in which I had already

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-10-17 Thread Lisa Roach
Lisa Roach added the comment: Anyone get the chance to look over this yet? -- ___ Python tracker ___ ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-09 Thread Lisa Roach
Lisa Roach added the comment: I just noticed some trailing whitespace in the patch, ignore them for now and they'll be removed in the next patch. -- ___ Python tracker

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-09 Thread Lisa Roach
Lisa Roach added the comment: Hi Stefan and Raymond, Here's my start on the patch, I wanted to get your opinions on the direction before I go too far. I've been comparing the two sets of docstrings, and trying to synchronize them in the clearest way that most closely matches the decimal

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Lisa is not a committer. The assignment means that she is working on the patch. BTW, the decimal package has long been my area as well (writing a C implementation does not give you exclusive decision making over the docstrings.) --

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-05 Thread Stefan Krah
Stefan Krah added the comment: Sorry, Raymond, this is my code area. I said I'll review a patch. -- assignee: lisroach -> skrah ___ Python tracker ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: skrah -> lisroach ___ Python tracker ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-02 Thread Stefan Krah
Stefan Krah added the comment: "hand written signatures" refers to the signatures that Argument Clinic would generate if it were used (but I don't want that). So this is an example of a hand written signature: "is_infinite($self, /)\n--\n\n\" I still wonder if people wouldn't be served

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-01 Thread Lisa Roach
Lisa Roach added the comment: I will start working on the patch for this! Thanks for pointing me this way, Raymond. -- nosy: +lisroach ___ Python tracker

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Historically, we've kept the docstrings 100% intact between the C and Python versions, even if they are big (see heapq.__doc__) for example. If there are differences in the "hand written" versions. I would like to have them compared on a case by case basis

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-08-16 Thread Stefan Krah
Stefan Krah added the comment: I found the docstrings a bit too verbose (the power() docstring takes up more than a page), but I'm happy to add it and review a patch. The patch authors need to take the hand written function signatures into account. -- assignee: docs@python -> skrah

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-08-16 Thread Raymond Hettinger
New submission from Raymond Hettinger: The pure python version of decimal has extensive docstrings with text and explanatory examples drawn directly from the decimal arithmetic specification. Those should all be copied to the C version as well. This will improve usability for interactive