gh-41872: Parse docstrings with ast instead of string manipulation#127520
gh-41872: Parse docstrings with ast instead of string manipulation#127520serhiy-storchaka merged 29 commits intopython:mainfrom
Conversation
…se both single quote doc strings, and double quote doc strings
Co-authored-by: Éric <merwok@netwok.org>
fdbb359 to
abccf04
Compare
1de72bb to
272ca67
Compare
|
I have changed the solution, please let me know your thoughts on it? @merwok |
|
Please avoid force pushes, as indicated in the devguide 🙂 |
Co-authored-by: Éric <merwok@netwok.org>
ZeroIntensity
left a comment
There was a problem hiding this comment.
Needs a blurb entry, by the way.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
@serhiy-storchaka Thanks for the suggestions I was in a hurry , left for the day without fixing them . |
Co-authored-by: Éric <merwok@netwok.org>
|
@serhiy-storchaka Thanks for the commit. |
|
Thanks @srinivasreddy for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
… in pydoc (pythonGH-127520) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. (cherry picked from commit 474e419) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-128620 is a backport of this pull request to the 3.13 branch. |
… in pydoc (pythonGH-127520) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. (cherry picked from commit 474e419) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-128621 is a backport of this pull request to the 3.12 branch. |
…e in pydoc (GH-127520) (GH-128620) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. (cherry picked from commit 474e419) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…e in pydoc (GH-127520) (GH-128621) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. (cherry picked from commit 474e419) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
gh-41872: Instead of manual parsing of docstrings, use ast to parse both single quote docstrings and double quote docstrings