Pythonification of the asterisk-based collection packing/unpacking syntax
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Tue Dec 20 00:47:44 EST 2011
On Mon, 19 Dec 2011 19:35:20 -0800, alex23 wrote:
> Eelco <hoogendoorn.ee... at gmail.com> wrote:
>> Having two seperate symbols seperated by whitespace, as in @list args
>> strikes me as a terrible break of normal python lexical rules.
>
> You mean like 'is not'? And the upcoming 'yield from'?
Also "not in".
Space-delimited tokens are hardly rare in Python, e.g.:
import module as name
for x in sequence
if flag
elif condition
while condition
with obj
del name
Nevertheless, I think the suggested syntax "@list args" is awful.
--
Steven
More information about the Python-list
mailing list