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-143700: Document secrets.DEFAULT_ENTROPY#144447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@kovan
Copy link

@kovankovan commentedFeb 3, 2026
edited by github-actionsbot
Loading

Summary

  • Add documentation forsecrets.DEFAULT_ENTROPY constant
  • Document it as an opaque value that may change at any time
  • Encourage users to explicitly passnbytes if they need a specific amount of entropy

Closes#143700

Test plan

  • Verified against source code (Lib/secrets.py:31)
  • make check in Doc/ directory passed

🤖 Generated withClaude Code


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

Add documentation for the DEFAULT_ENTROPY constant in the secretsmodule. Document it as an opaque value that may change at any time,encouraging users to explicitly pass nbytes if they need a specificamount of entropy.Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@picnixz
Copy link
Member

When an issue is already assigned, it is customary to not take over the PR. I wanted to do it myself and I will do so when I find time. So sorry but I'm going to close this PR because I want to use an alternative wording and you have enough open PRs which will need review (so please do not open more, TiA).

@picnixzpicnixz closed thisFeb 3, 2026
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.

Document secrets.DEFAULT_ENTROPY as an opaque value

2 participants

@kovan@picnixz

[8]ページ先頭

©2009-2026 Movatter.jp