Why this code works in python3, but not python 2:

Maciej Dziardziel fiedzia at gmail.com
Wed Jul 3 23:52:43 EDT 2013


Out of curiosity: Does anyone know why the code below is valid in python3, but not python2:

def foo(*args, bar=1, **kwargs):
    pass


-- 
Maciej Dziardziel



More information about the Python-list mailing list