Message63552
| Author |
twouters |
| Recipients |
belopolsky, gvanrossum, twouters |
| Date |
2008年03月15日.16:14:24 |
| SpamBayes Score |
0.3194955 |
| Marked as misclassified |
No |
| Message-id |
<9e804ac0803150914s4057e405v89ee099d1f1493e9@mail.gmail.com> |
| In-reply-to |
<1205597534.13.0.0917258826527.issue2292@psf.upfronthosting.co.za> |
| Content |
On Sat, Mar 15, 2008 at 9:12 AM, Guido van Rossum <report@bugs.python.org>
wrote:
>
> Guido van Rossum <guido@python.org> added the comment:
>
> Didn't you say it does sets too? Does this work?
> a = [1, 2, 3]
> {1, *a, 0, 4} # {0, 1, 2, 3, 4}
Yes.
>
>
> How about dicts?
> kwds = {'z': 0, 'w': 12}
> {'x': 1, 'y': 2, **kwds} # {'x': 1, 'y': 2, 'z': 0, 'w': 12}
Not yet.
>
>
> Also, now that we support
>
> [*a, b, c]
>
> shouldn't we also support
>
> foo(*a, b, c)
>
Sure. (And also 'foo(*a, *b, *c)'?) But have you taken a look lately at the
function definition grammar? I need some time to sort it out :) |
| Files |
| File name |
Uploaded |
|
unnamed
|
twouters,
2008年03月15日.16:14:24
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年03月15日 16:14:26 | twouters | set | spambayes_score: 0.319495 -> 0.3194955 recipients:
+ twouters, gvanrossum, belopolsky |
| 2008年03月15日 16:14:25 | twouters | link | issue2292 messages |
| 2008年03月15日 16:14:25 | twouters | create |
|