[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: patch: local a,b from t
- From: Peter Shook <peter.shook.engineer@...>
- Date: Wed, 7 Sep 2005 23:04:30 -0400
On 9/7/05, Antero Vipunen <firstname.lastname@example.org> wrote:
> Could you please clean it up? There is irrelevant stuff for
> from some.pkg import name_0, ..., name_n
Here is the bare minimum that uses the keyword 'in' instead of 'from'.
The changes are confined to lparser.c
I really like Python, but I find its import syntax odd. I would
prefer it to read
import x,y,z from some_package
But then that is ambiguous with the simpler
So they ended up with something rather odd.
Also, this patch isn't just for importing variable from modules. It's
a general enhancement to the assignment statement for unpacking named
values from tables.
- Peter Shook