Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #8255: py domain: number in defarg is changed to decimal #8278

Merged
merged 2 commits into from
Oct 5, 2020

Commits on Oct 4, 2020

  1. pycode: ast.unparse() construct number literals using source code

    Developers can write number literals in several ways. For example,
    decimal (1234), hexadecimal (0x1234), octal decimal (0o1234) and so on.
    But, AST module don't mind how the numbers written in the code. As a
    result, ast.unparse() could not reproduce the original form of number
    literals.
    
    This allows to construct number literals as possible using original
    source code.
    
    Note: This is only available in Python 3.8+.
    tk0miya committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    0b32e72 View commit details
    Browse the repository at this point in the history
  2. Fix sphinx-doc#8255: py domain: number in defarg is changed to decimal

    Number literals in default argument value is converted to decimal form
    unexpectedly by AST module.  This fixes the signature parsing code to
    recosntruct it correctly.
    
    Note: This is only available in Python 3.8+.
    tk0miya committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    cc941db View commit details
    Browse the repository at this point in the history