Skip to content

gh-130821: Make error messages consistent in Modules/#144737

Open
Cityfishman wants to merge 1 commit intopython:mainfrom
Cityfishman:fix-issue-130821-modules
Open

gh-130821: Make error messages consistent in Modules/#144737
Cityfishman wants to merge 1 commit intopython:mainfrom
Cityfishman:fix-issue-130821-modules

Conversation

@Cityfishman
Copy link

@Cityfishman Cityfishman commented Feb 12, 2026

Update error messages in Modules/ directory to use consistent format with %T formatter for type names, similar to changes made in PR #130835 for Objects/ directory.

Changes:

  • Modules/_abc.c: items() error message
  • Modules/_datetimemodule.c: divmod() error message
  • Modules/_pickle.c: read() error message
  • Modules/_io/bufferedio.c: read() and readall() error messages
  • Modules/_io/iobase.c: read() error message
  • Modules/_io/textio.c: decoder and encoder error messages
  • Modules/_csv.c: iterator error message

Update error messages in Modules/ directory to use consistent format
with %T formatter for type names, similar to changes made in PR python#130835
for Objects/ directory.

Changes:
- Modules/_abc.c: items() error message
- Modules/_datetimemodule.c: divmod() error message
- Modules/_pickle.c: read() error message
- Modules/_io/bufferedio.c: read() and readall() error messages
- Modules/_io/iobase.c: read() error message
- Modules/_io/textio.c: decoder and encoder error messages
- Modules/_csv.c: iterator error message
@python-cla-bot
Copy link

python-cla-bot bot commented Feb 12, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Feb 12, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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.

1 participant