GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.11] gh-102500: Remove mention of bytes shorthand (#104281) by AlexWaygood · Pull Request #104288 · python/cpython

Conversation

@AlexWaygood

@AlexWaygood AlexWaygood commented May 8, 2023 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The bytes shorthand was removed in PEP 688:
https://peps.python.org/pep-0688/#no-special-meaning-for-bytes

The reference to collections.abc.ByteString is also removed, since that object is deprecated (#91896) and has different semantics (#102092)

Although PEP 688 is new in Python 3.12, type checkers are expected to implement the new semantics for type annotations even if users are using an older version of Python, so this docs PR is backported to Python 3.11.

(cherry-picked from commit 1f56795)

  • Issue: Implement PEP 688: Making the buffer protocol accessible in Python #102500

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hauntsaninja @AlexWaygood
pythongh-102500: Remove mention of bytes shorthand (python#104281)
4d49df3
The bytes shorthand was removed in PEP 688:
https://peps.python.org/pep-0688/#no-special-meaning-for-bytes

I also remove the reference to `collections.abc.ByteString`, since that
object is deprecated (python#91896) and has different semantics (python#102092)
@AlexWaygood
AlexWaygood requested review from Fidget-Spinner, JelleZijlstra and gvanrossum as code owners May 8, 2023 14:05
@bedevere-bot bedevere-bot mentioned this pull request May 8, 2023
Implement PEP 688: Making the buffer protocol accessible in Python #102500
Closed
@bedevere-bot bedevere-bot added the awaiting core review label May 8, 2023
@bedevere-bot bedevere-bot mentioned this pull request May 8, 2023
gh-102500: Remove mention of bytes shorthand #104281
Merged
@bedevere-bot bedevere-bot added skip news docs Documentation in the Doc dir labels May 8, 2023
JelleZijlstra
JelleZijlstra approved these changes May 8, 2023
View reviewed changes
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting core review labels May 8, 2023
@AlexWaygood
AlexWaygood merged commit 499b79d into python:3.11 May 8, 2023
@bedevere-bot bedevere-bot removed the awaiting merge label May 8, 2023
@AlexWaygood
AlexWaygood deleted the backport-bytes-docs-pr branch May 8, 2023 14:23
@hauntsaninja hauntsaninja mentioned this pull request May 9, 2023
[3.11] gh-102500: collections.abc.Buffer doesn't exist in 3.11 #104317
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes
@gvanrossum gvanrossum Awaiting requested review from gvanrossum gvanrossum is a code owner
@Fidget-Spinner Fidget-Spinner Awaiting requested review from Fidget-Spinner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@AlexWaygood @JelleZijlstra @bedevere-bot @hauntsaninja
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.