CPython
The reference implementation of the Python language.
Friendly. Welcomes AI-assisted work.
CPython allows AI-assisted issues and pull requests, but the person submitting must review the output, remain responsible for it, and be able to explain it in their own words. Disclosure in PR descriptions is appreciated but not required, and AI use alone is not grounds for closing a contribution.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Friendly
- Contributor takes full responsibility
- A human must review the output
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- Friendly
- Contributor takes full responsibility
- A human must review the output
- AI-written textPull request descriptions, issue comments and summaries written by AI.
- Friendly
- Contributor takes full responsibility
- A human must review the output
What is allowed and what is not
Code contributions
Autocomplete · Allowed with conditions
AI-assisted code completions are allowed if the author reviews them and can explain them; disclosure is optional.
- Review AI output first: Review AI output in detail before opening a PR
- Take full responsibility: Be able to explain the change in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Small fixes · Allowed with conditions
AI-assisted small code changes are allowed if the author reviews them and can explain them; disclosure is optional.
- Review AI output first: Review AI output in detail before opening a PR
- Take full responsibility: Be able to explain the change in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Large or generated changes · Allowed with conditions
AI-assisted changes of any size are permitted if the author reviews them and can explain them; no AI-specific size limit is stated.
- Review AI output first: Review AI output in detail before opening a PR
- Take full responsibility: Be able to explain the change in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Mechanical changes · Allowed with conditions
AI-assisted mechanical edits are allowed if the author reviews them and can explain them; disclosure is optional.
- Review AI output first: Review AI output in detail before opening a PR
- Take full responsibility: Be able to explain the change in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Tests · Allowed with conditions
AI help with tests is allowed if the author reviews the output, guides the model with Python’s testing principles, and can explain the tests.
- Review AI output first: Review all AI output; pay close attention to AI-generated testing recommendations and guide the model with Python’s testing principles
- Take full responsibility: Be able to explain the tests in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
9 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Pay close attention to AI generated recommendations for testing changes.
Guidelines for using AI tools Provide input about Python’s testing principles when guiding an AI model.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Build and CI · Allowed with conditions
AI-assisted infrastructure code is allowed if the author reviews it and can explain it; disclosure is optional.
- Review AI output first: Review AI output in detail before opening a PR
- Take full responsibility: Be able to explain the change in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Documentation · Allowed with conditions
AI-assisted documentation changes are allowed if the author reviews them and can explain them; disclosure is optional.
- Review AI output first: Review AI output in detail before opening a PR
- Take full responsibility: Be able to explain the change in your own words
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Research and learning · Allowed
Using AI to understand code or supplement your knowledge of code, tests and documentation is explicitly listed as acceptable.
2 quotes
Gaining understanding of existing code
Guidelines for using AI tools Supplementing contributor knowledge for code, tests, and documentation
Guidelines for using AI tools Other code contributions rule · Allowed with conditions
A person submitting an issue or PR remains responsible for its content even when AI tools were used, and must be able to explain the work in their own words.
3 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Other code contributions rule · Not allowed
Contributors must not alter or bypass existing tests or remove desired functionality just to make a failing test pass.
Quote
It is not acceptable to alter or bypass existing tests, or remove desired functionality, in order to make a failing test pass. Such changes are not a real fix.
Guidelines for using AI tools
Not covered by the policy (5)
Translating the software, Images and media, Checking own work, AI as author, Autonomous agents.
Issues & bug reports
AI-written reports · Allowed with conditions
AI may help draft issues, but the filer must review the text and be able to explain it in their own words.
- Review AI output first: Review AI output before filing the issue, including proposed title and description
- Take full responsibility: The person filing the issue must be able to explain it in their own words
6 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools
Not covered by the policy (3)
Finding bugs with AI, Security reports, Bots filing issues.
AI-written text
Pull request descriptions · Allowed with conditions
AI may help write PR titles and descriptions, but a person must review them and be able to explain the change; disclosure is optional.
- Review AI output first: Review AI-generated PR titles and descriptions before opening the pull request
- Take full responsibility: The submitter remains responsible for the PR content and must be able to explain it
- Disclose AI use: Disclosure of AI use in the PR description is appreciated, not required (recommended, not required)
7 quotes
The person submitting an issue or PR is responsible for its content, regardless of whether AI tools were used in its creation.
Guidelines for using AI tools Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.
Guidelines for using AI tools Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.
Guidelines for using AI tools We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.
Guidelines for using AI tools Disclosure of the use of AI tools in the PR description is appreciated, while not required.
Guidelines for using AI tools Be prepared to explain how the tool was used and what changes it made.
Guidelines for using AI tools Always review the output before opening a pull request or issue, including proposed PR or issue titles and descriptions.
Guidelines for using AI tools Comments · Allowed
AI assistance with writing comments, especially in a non-native language, is explicitly listed as acceptable.
Quote
Assistance with writing comments, especially in a non-native language
Guidelines for using AI tools Answering reviewers · Not allowed
When an issue or PR is labeled AI-needs-explanation, the contributor must reply in their own words; AI-written answers do not meet that requirement.
Quote
AI-needs-explanation: the issue or PR stays open. Reply in your own words: explain what the change does or what the issue is about, and describe how you checked that it is correct.
Guidelines for using AI tools
Not covered by the policy (8)
Commit messages, Reviewing others' work, Forum and list posts, Translating own text, Proofreading, Quoting AI output, Summarizing discussions, Bots posting.
General
Using AI tools is not on its own a reason for an issue or PR to be labeled or closed.
“Using AI tools is not a reason on its own for an issue or PR to be labeled or closed.” (Guidelines for using AI tools)
Contributors are expected to apply discretion, good judgment and critical thinking when using generative AI tools.
“Generative AI tools can produce output quickly, but discretion, good judgment, and critical thinking are the foundation of all good contributions.” (Guidelines for using AI tools)
Unproductive issues or PRs may be closed without explanation, and contributors who repeatedly open them may be blocked, whether or not AI was used.
“Maintainers may close issues and PRs that are not useful or productive, without explanation, regardless of whether AI tools were used or not.” (Guidelines for using AI tools)
“If a contributor repeatedly opens unproductive issues or PRs, they may be blocked from contributing to the project because it is disruptive and disrespectful of the maintainers time.” (Guidelines for using AI tools)
If an issue or PR is labeled AI-needs-explanation, it stays open while the contributor replies in their own words to explain the change and how they checked it.
“AI-needs-explanation: the issue or PR stays open. Reply in your own words: explain what the change does or what the issue is about, and describe how you checked that it is correct.” (Guidelines for using AI tools)
If an issue or PR is labeled AI-guidelines-not-met, it is closed; the contributor may reply to explain or ask questions.
“AI-guidelines-not-met: the issue or PR is closed. If you think we misunderstood your contribution, reply on the issue or PR. You are welcome to explain your approach or ask questions about these guidelines.” (Guidelines for using AI tools)
Sources
- Guidelines for using AI toolsdevguide.python.org/getting-started/ai-tools/Snapshot 9 Nov 2026