Skip to content

Python 3 None #7

@mfitzp

Description

@mfitzp

The AST source parser has issues when running under Python 3 code I think due to the fact that None is now a keyword in Python3. This means it doesn't "see" the None and returns a syntax error. e.g. the following:

parser.add_argument('-o', '--outfile', dest='outfile', default=None, type=str, help='Filename for output')

...gives a syntax error for missing value...

parser.add_argument('-o', '--outfile', dest='outfile', default=, type=str, help='Filename for output')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions