Visitar URL original
gh-92711 by aydaultani · Pull Request #92712 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260620234053/https://github.com/python/cpython/pull/92712
Skip to content
/ cpython Public

gh-92711#92712

Closed
aydaultani wants to merge 2 commits into
python:mainfrom
aydaultani:fix-issue-92711
Closed

gh-92711#92712
aydaultani wants to merge 2 commits into
python:mainfrom
aydaultani:fix-issue-92711

Conversation

@aydaultani

@aydaultani aydaultani commented May 12, 2022 •

Copy link
Copy Markdown

92711

gh-92711: Added double_hash_hex function
def double_hash_hex(nbytes=None):
    return token_hex(token_hex(nbytes))

@ghost

ghost commented May 12, 2022 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot

Copy link
Copy Markdown

Every change to Python requires a NEWS entry.

Please, add it using the blurb_it Web app or the blurb command-line tool.

@aydaultani aydaultani changed the title fix-issue-92711 gh-92711 May 12, 2022
@sweeneyde

Copy link
Copy Markdown
Member

The code does not run:

>>> token_hex(token_hex(10))
Traceback (most recent call last):
  ...
TypeError: 'str' object cannot be interpreted as an integer

@sweeneyde sweeneyde closed this May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants