Skip to content

docs: fix 'falsey' -> 'falsy' and modernize stale docs.python.org URLs#1184

Open
MukundaKatta wants to merge 1 commit intorealpython:masterfrom
MukundaKatta:codex/fix-falsy-and-python-doc-urls
Open

docs: fix 'falsey' -> 'falsy' and modernize stale docs.python.org URLs#1184
MukundaKatta wants to merge 1 commit intorealpython:masterfrom
MukundaKatta:codex/fix-falsy-and-python-doc-urls

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

Partial fix for #1182 (the wording typo + stale docs.python.org URLs; the Filtering a list `while i in a` example is intentionally not touched — it's a separate rewrite the maintainer can steer).

  • `docs/writing/style.rst`: `'attr is falsey!'` -> `'attr is falsy!'` (the Python community / PEP / stdlib wording is "falsy").
  • Upgrade unversioned `http://docs.python.org/...\` links (and one `docs.python.org/2/` argparse link) to `https://docs.python.org/3/...\`:
    • `style.rst` — Truth Value Testing, list comprehensions, generator expressions
    • `structure.rst` — packages tutorial
    • `cli.rst` — argparse (was explicitly pinned to Python 2)
    • `learning.rst` — Tutorial and Language Reference

Refs #1182

Testing

Docs-only change. 8 lines touched across 4 files, line endings preserved.

- docs/writing/style.rst: 'falsey' -> 'falsy' in the truth-value-testing example.
- Upgrade several unversioned 'http://docs.python.org/...' links (and one
  explicit Python 2 argparse link) to 'https://docs.python.org/3/...':
    - style.rst: Truth Value Testing, list-comprehensions, generator expressions
    - structure.rst: packages tutorial
    - cli.rst: argparse (was pinned to Python 2)
    - learning.rst: Tutorial and Language Reference

Leaves the 'while i in a' example untouched — that's a separate fix.

Refs realpython#1182
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.

1 participant