FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PEP 7: Remove Python 2.2 advice, add C syntax highlighting and green/red sidebars by hugovk · Pull Request #3702 · python/peps · GitHub

Repository navigation

PEP 7: Remove Python 2.2 advice, add C syntax highlighting and green/red sidebars - #3702

Merged
hugovk merged 6 commits into
python:mainfrom
hugovk:pep7-c-syntax-hightlighting
Mar 29, 2024
Merged

hugovk merged 6 commits into
python:mainfrom
hugovk:pep7-c-syntax-hightlighting

Conversation

hugovk commented Mar 3, 2024 •
edited
Loading

Copy link
Copy Markdown
Member
  • Remove the section "For C code that needs to support versions of Python older than 2.3...". I can add it back if needed.

  • Highlight the example C code with C syntax instead of Python.

  • Like PEP 8 (PEP 8: Add green and red sidbar for good and bad examples #3567), add green and red side borders "good" and "bad" examples. For this, I split this example into two blocks:

      return albatross; /* correct */
      return(albatross); /* incorrect */
  • Format None as None, add a missing full stop. Remove some redundant PEP fields.

Example

Before After

📚 Documentation preview 📚: https://pep-previews--3702.org.readthedocs.build/pep-0007/

hugovk requested review from gvanrossum and warsaw as code owners March 3, 2024 07:53

willingc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Lovely @hugovk

hugovk merged commit 3cdfdd9 into python:main Mar 29, 2024
hugovk deleted the pep7-c-syntax-hightlighting branch March 29, 2024 13:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL