guido van rossum hoaufpythonorg sat mar 15 2008 601 pm thomas wouters wrote sat mar 15 2008 321 pm guido van rossum wrote post point inconistency thomass patch def f yield 1 2 3 yields single threetuple def f yield 1 2 3 yields three separate values uhm doesnt shouldnt im sure makes think sorry misread output expected based incomplete understanding youve implemented since made mistake expect others think something needs change strict proposal would change syntax yield accepts single expression optionally prefixed would render yield 1 2 3 illegal youd rewrite yield 1 2 3 thats minor inconvenience taken care 2to3 easily less strict proposal would allow yield expr yield expr expr yield expr expr yield expr expr etc discussed drinks last night also made think endcase expr contexts following series similar assignments b c x b c x c x disallowed c x use instead defensible analogy following b c x unpack 3tuple b c x unpack 2tuple c x tuple unpacking c x must unpack 1tuple way however latter case c x syntactic hint tuple might intended one could say c x star plenty enough hint semantics would clear taking limit first series examples c x equivalent c listx dont think actually like would make yield expr even exception doesnt attractive use cases however believe analogy regular tuple unpacking extended tuple unpacking relatively weak argument forbid c x expect gray area likely cause users trip understanding proposed new syntax especially think hard two comments thomass proposal going also done function calls though function defs id like legal interpretation obvious fa b x kval fa x b kval fx b kval kwstuff b noticed following equivalent b b think latter allowed present level commas belongs may issue existing extended tuple unpacking well guido van rossum home page httpwwwpythonorgguido _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 045150 0500 python3000 using packing lists places