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 — Remove deprecated `strm` argument handling from `logging` · Issue #149598 · python/cpython

Remove deprecated strm argument handling from logging #149598

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove deprecated strm argument handling from logging#149598
Copy link
Assignees
sobolevn
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Description

@sobolevn
sobolevn
opened on May 9, 2026
Issue body actions

Feature or enhancement

Refs #115032
Refs #115314

It is scheduled to be removed in 3.16
Source:

cpython/Lib/logging/config.py

Lines 868 to 889 in 46a2c11

# When deprecation ends for using the 'strm' parameter, remove the
# "except TypeError ..."
try:
result = factory(**kwargs)
except TypeError as te:
if "'stream'" not in str(te):
raise
#The argument name changed from strm to stream
#Retry with old name.
#This is so that code can be used with older Python versions
#(e.g. by Django)
kwargs['strm'] = kwargs.pop('stream')
result = factory(**kwargs)
import warnings
warnings.warn(
"Support for custom logging handlers with the 'strm' argument "
"is deprecated and scheduled for removal in Python 3.16. "
"Define handlers with the 'stream' argument instead.",
DeprecationWarning,
stacklevel=2,
)

Linked PRs

  • gh-149598: Remove strm argument support from logging handlers #149599

Activity

  1. sobolevn
    self-assigned this
    on May 9, 2026
  2. sobolevn
    added this to Logging issues 🪵on May 9, 2026
  3. sobolevn
    added
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 9, 2026
  4. sobolevn
    added a commit that references this issue on May 11, 2026

    gh-149598: Remove `strm` argument support from `logging` handlers (#1…

    c1dbd51
  5. sobolevn
    closed this as completedon May 11, 2026
  6. github-project-automation
    moved this to Done in Logging issues 🪵on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement

Projects

  • Logging issues 🪵
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

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.