[Python-ideas] Idea: Deferred Default Arguments?

Grégory Lielens gregory.lielens at gmail.com
Fri Jul 20 07:03:57 EDT 2018


A crazy idea, didn't think much about it yet:

def subfunc(c,a=0,b=1):
  Blabla

def function(c,d=3, from args(subfunc) import a,b):
  Blabla
  return anotherfunc(a+b+c+d,subfunc(c,a,b))
  



More information about the Python-ideas mailing list