Skip to content

Literal[True] prints as Literal[1] in some cases #83489

Description

@kornicameister
BPO 39308
Nosy @gvanrossum, @ilevkivskyi, @kornicameister
PRs
  • bpo-39308: Make _tp_cache typed #17974
  • Files
  • scratch_1.py: snipped to match comment
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-01-17.16:22:53.307>
    created_at = <Date 2020-01-11.23:35:15.579>
    labels = ['ctypes', 'type-bug', '3.8', '3.9']
    title = 'Literal[True] prints as Literal[1] in some cases'
    updated_at = <Date 2020-01-17.16:22:53.306>
    user = 'https://github.com/kornicameister'

    bugs.python.org fields:

    activity = <Date 2020-01-17.16:22:53.306>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-01-17.16:22:53.307>
    closer = 'gvanrossum'
    components = ['ctypes']
    creation = <Date 2020-01-11.23:35:15.579>
    creator = 'kornicameister'
    dependencies = []
    files = ['48835']
    hgrepos = []
    issue_num = 39308
    keywords = ['patch']
    message_count = 5.0
    messages = ['359822', '359823', '359831', '359864', '360151']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'levkivskyi', 'kornicameister']
    pr_nums = ['17974']
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39308'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Fields

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions