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 — PyUnicode_FromFormat(): add %X format · Issue #95849 · python/cpython

PyUnicode_FromFormat(): add %X format #95849

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
PyUnicode_FromFormat(): add %X format#95849
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

Description

@philg314
philg314
opened on Aug 10, 2022
Issue body actions

Feature or enhancement

Add %X (uppercase hex) format to PyUnicode_FromFormat().

Pitch

%X's omission is not intentional, it was just not needed so far. There are many cases where it would be useful, for example the canonical representation of Unicode code points (f"U+{code:0>4X}").

Previous discussion

https://discuss.python.org/t/pyunicode-fromformat-add-x

Reacted by Petr Viktorin

Activity

  1. philg314
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Aug 10, 2022
  2. serhiy-storchaka commented on Oct 29, 2022

    @serhiy-storchaka
    serhiy-storchaka
    on Oct 29, 2022
    Member
    More actions

    See also more generic #98836.

  3. iritkatriel
    added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Nov 28, 2023
  4. StanFromIreland commented on Aug 17, 2025

    @StanFromIreland
    StanFromIreland
    on Aug 17, 2025
    Member
    More actions

    This has been added, and can be found in the documentation (the table is not ordered alphabetically for some reason, its near the start).

  5. StanFromIreland
    closed this as a duplicateof Extend PyUnicode_FromFormat() #98836 on Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-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.