[Python-Dev] I want my sugar...
I am a newbie to python, and am curious why the following syntax is not supported: # Boolean test on x... if (x = someFunc(...)): # Do something with x... I've found it convenient in perl. Is the syntax actually supported, and I'm ignorant? Is the usage considered 'unPythonic'? Can you point me to any existing discussion of the issue (it must have come up before?)? Thanks, Peter ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] I want my sugar...
2011/1/16 Peter Hall bis...@yahoo.com: I am a newbie to python, and am curious why the following syntax is not supported: # Boolean test on x... if (x = someFunc(...)): # Do something with x... I've found it convenient in perl. Is the syntax actually supported, and I'm ignorant? Is the usage considered 'unPythonic'? Can you point me to any existing discussion of the issue (it must have come up before?)? See python-ideas. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] I want my sugar...
On 1/16/2011 12:44 PM, Peter Hall wrote: I am a newbie to python, and am curious why the following syntax is not supported: This list is for development of future releases. Please ask such questions on python-list or other forums for discussion of current Python. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com