Skip to content

Keyword-only args for Python functions are poorly implemented #524

Closed
@pfalcon

Description

@pfalcon

I knew I shouldn't even try them, especially taking into account that I dislike all these novelties. But then CPy stdlib was parsed by pure accident - they seem to start using it heavily.

Each of cases below is a failure:

def f1(a, *, b):
    print(a, b)

f1(1, b=2)

def f2(a, *, b=[]):
    print(a, b)

def f3(a, *, b=1):
    print(a, b)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy