[Python-ideas] Augmented assignment syntax for objects.
Erik
python at lucidity.plus.com
Tue Apr 25 19:31:37 EDT 2017
On 25/04/17 22:15, Brice PARENT wrote:
> it may be easier to get something like this
> (I think, as there is no new operator involved) :
No new operator, but still a syntax change, so that doesn't help from
that POV.
>
> def __init__(self, *args, **kwargs):
> self.* = *args
> self.** = **kwargs
What is "self.* = *args" supposed to do? For each positional argument,
what name in the object is it bound to?
E.
More information about the Python-ideas
mailing list