pre-PEP: Suite-Based Keywords

peufeu at free.fr peufeu at free.fr
Sat Apr 16 06:52:54 EDT 2005


> How would you write
>
> if f(x=1):
>     print "yes"
>
> using suite-based keyword args?

	Good point.
	Then we should remove the extra ':' at the end of the function invocation  
:

if f(x=@>):
		value of x
	print "yes"

if f(@**>):
		x: value of x
	print "yes"



More information about the Python-list mailing list