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 feature: `ext` must start with `.` in `mimetypes.add_type` · Issue #149720 · python/cpython

Remove deprecated feature: ext must start with . in mimetypes.add_type #149720

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove deprecated feature: ext must start with . in mimetypes.add_type#149720
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 12, 2026
Issue body actions

Feature or enhancement

See #75223

cpython/Lib/mimetypes.py

Lines 95 to 103 in f5fb491

if ext and not ext.startswith('.'):
from warnings import _deprecated
_deprecated(
"Undotted extensions",
"Using undotted extensions is deprecated and "
"will raise a ValueError in Python {remove}",
remove=(3, 16),
)

Linked PRs

  • gh-149720: Remove support for undotted ext in mimetypes.MimeType.add_type #149721
  • gh-149720: Fix docs for mimetypes.MimeType.add_type method #149731

Activity

  1. sobolevn
    self-assigned this
    on May 12, 2026
  2. 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 12, 2026
  3. sobolevn
    added a commit that references this issue on May 12, 2026

    gh-149720: Remove support for undotted `ext` in `mimetypes.MimeType.a…

    0534774
  4. StanFromIreland
    marked mimetypes.add_type should complain when you give it an undotted ext #75223 as a duplicate of this issue on May 12, 2026
  5. StanFromIreland
    closed this as completedon May 12, 2026
  6. sobolevn
    added a commit that references this issue on May 13, 2026

    gh-149720: Fix docs for `mimetypes.MimeType.add_type` method (#149731)

    31d1a72
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

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — 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.