Augmented Assignement (was: Re: PEP scepticism)

Courageous jkraska1 at san.rr.com
Sun Jul 1 18:40:12 EDT 2001


>Correctness: Consider the following function:
>
>def f(x):
>  x += (1, 2, 3)
>  print x

What do you think of:

def f(x):
	x = x + (1,2,3)
	print x

?

C//





More information about the Python-list mailing list