guido van rossum hoaufpythonorg post point inconistency thomass patch def f yield 1 2 3 yields single threetuple def f yield 1 2 3 yields three separate values think inconsistent since 1 2 3 1 2 3 equivalent yield 1 2 3 yield 1 2 3 im sure solve except adopting different syntax multipleyield perhaps yield x instead yield x sat mar 15 2008 458 pm terry reedy wrote guido van rossum wrote message newsca471dc20803150915l27750346g8655f596f5035c69mailgmailcom thomas wouters suggests new syntax see two suggestions 1 complete extension validity expression syntax function calldefinition expressionassignment 2 give expression related meaning yield statements httpbugspythonorgissue2292 b c range5 b c b c b c 0 1 2 3 4 b c 0 1 2 3 4 understand fa mean execute expression items iterable written literally code optimizations allowed special cases follow rule 1 tutorial written py3 without regard history introduce expressions examples like first later usage functions things way along l 3 4 5 6 none range7 10 item item l 0 1 2 3 4 5 6 7 8 9 since become equivalent listgen_exp see tied yield exp also yielding everything iterator def flatteniterables iterables yield following general rule exp would yield tupleit nearly useless whereas implicit inner loop meaning quite useful perhaps speedup explicit inner loop since yield already pretty magicala bit might hurt yield abc abc yield 5tuple would clash badly yield yielding 3tuple raise exception establishesrequires new grammatical category yield_expression would see preferable clash terry jan reedy _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000guido40pythonorg guido van rossum home page httpwwwpythonorgguido _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 040213 0500 python3000 using packing lists places