[Python-ideas] PEP 448

Balakrishnan B balakrishnan.erode at gmail.com
Sat Aug 22 04:01:34 CEST 2015


Re-sending after subscribing.

On Fri, Aug 21, 2015 at 9:47 PM, Balakrishnan Balasubramanian
<balakrishnan.erode at gmail.com> wrote:
> I tried out the new python3.5 rc1. I feel there is an inconsistency in
> unpacking generalizations. *iterable is considered error but *iterable,
> is a tuple. Should we make *iterable a list instead? This will be a
> nice shortcut to expand an iterable?
>
>     (p35) [balki at antmin p35]$ python
>     Python 3.5.0rc1 (default, Aug 21 2015, 21:32:18)
>     [GCC 5.2.0] on linux
>     Type "help", "copyright", "credits" or "license" for more
> information.
>     >>> *range(10)
>       File "<stdin>", line 1
>     SyntaxError: can't use starred expression here
>     >>> *range(10),
>     (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
>     >>>
>
> Thanks,
> Bala


More information about the Python-ideas mailing list