Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-145694: Update tutorial indentation guidance for PyREPL auto-indent#145725

Open
mvanhorn wants to merge 1 commit intopython:mainfrom
mvanhorn:osc/145694-fix-tutorial-indentation
Open

gh-145694: Update tutorial indentation guidance for PyREPL auto-indent#145725
mvanhorn wants to merge 1 commit intopython:mainfrom
mvanhorn:osc/145694-fix-tutorial-indentation

Conversation

@mvanhorn
Copy link

@mvanhornmvanhorn commentedMar 10, 2026
edited by github-actionsbot
Loading

Fixes#145694

Summary

The tutorial page "An Informal Introduction to Python" stated that users must manually type tabs/spaces for indentation at the interactive prompt. Since Python 3.13, the default PyREPL auto-indents after compound statement headers likeif andwhile, making this guidance misleading.

Updated the text to mention that the default REPL auto-indents, while noting the basic REPL (PYTHON_BASIC_REPL) and older versions still require manual indentation.

Test plan

  • Docs text is accurate for both default and basic REPL
  • ReferencesPYTHON_BASIC_REPL envvar correctly using:envvar: role

This contribution was developed with AI assistance (Claude Code).


📚 Documentation preview 📚:https://cpython-previews--145725.org.readthedocs.build/

…-indentThe tutorial stated users must manually type tabs/spaces at the interactiveprompt, which is no longer accurate since the PyREPL in Python 3.13+auto-indents after compound statement headers. Updated to mention boththe default REPL behavior and the basic REPL fallback.Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Docs: problem with page "3. An Informal Introduction to Python"

1 participant

@mvanhorn

[8]ページ先頭

©2009-2026 Movatter.jp