Skip to content

positional args after kwargs doesn't throw SyntaxError #466

@lurch

Description

@lurch

If I call

def testfun(arg1=1,arg2=2):
    print(arg1,arg2)

as testfun(arg1='one','two') in CPython3.3 it throws SyntaxError: non-keyword arg after keyword arg.
But doing the same in micropython instead throws TypeError: function does not take keyword arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions