Skip to content

ast.Constant.kind is undocumented #149267

@JelleZijlstra

Description

@JelleZijlstra

Documentation

https://docs.python.org/3.15/library/ast.html shows that Constant is defined as Constant(constant value, string? kind) but the docs for Constant (https://docs.python.org/3.15/library/ast.html#ast.Constant) don't mention kind.

It is set to u for string literals with a u prefix, though oddly enough it's left empty if the string has a U prefix.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions