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

PEP 675: Mark malicious code example with red sidebar by hugovk · Pull Request #3574 · python/peps · GitHub

Repository navigation

PEP 675: Mark malicious code example with red sidebar - #3574

Merged
ambv merged 3 commits into
python:mainfrom
hugovk:pep675-mark-malicious
Dec 11, 2023
Merged

ambv merged 3 commits into
python:mainfrom
hugovk:pep675-mark-malicious

Conversation

hugovk commented Dec 9, 2023 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Fixes python/docs-community#22.

As suggested by @encukou in python/docs-community#22, the dangerous "naive" SQL code could do with a red marker.

Regarding accessibility, similar to #3567, we're not relying on colour to convey meaning, it's also there in the text. ✅

Are there any examples in this PEP that could benefit from a red or green (or even yellow) sidebar? Perhaps the "written safely" one immediately after could be green?

Also remove the redundant headers.


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

hugovk requested a review from JelleZijlstra as a code owner December 9, 2023 16:42

Rosuav commented Dec 9, 2023

Copy link
Copy Markdown
Contributor

Nice. This is a great feature to be able to roll out.

JelleZijlstra left a comment

Copy link
Copy Markdown
Member

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

@pradeep90 as an FYI

ghost commented Dec 10, 2023 •
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

hugovk commented Dec 10, 2023

Copy link
Copy Markdown
Member Author

Updated to include some more from @Jamim: hugovk#7

@Jamim Please could you sign the CLA? #3574 (comment)

Screenshots

Jamim commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

Sure! I've signed the CLA.

ambv merged commit 8ce4ba9 into python:main Dec 11, 2023
hugovk deleted the pep675-mark-malicious branch December 12, 2023 05:28
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.

Roles/styles for good/bad code blocks in PEPs

5 participants


Back | FazBrowse Home | New Git URL