[Python-3000] Using *a for packing in lists and other places

Georg Brandl g.brandl at gmx.net
Sun Mar 16 11:20:16 CET 2008


Neil Toronto schrieb:

> Besides, as the SmugLispWeenies have noted, Python is becoming more like 
> Lisp all the time:
> 
>      (setq obj '(an ex-parrot))  ; (AN EX-PARROT)
>      `(I have ,obj)              ; (I HAVE (AN EX-PARROT))
>      `(I have , at obj)             ; (I HAVE AN EX-PARROT)

Only prettier.

Georg


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-3000 mailing list