On Fri, Oct 28, 2016 at 11:36 AM, Bernardo Sulzbach < mafagafogiga...@gmail.com> wrote:
> On 10/28/2016 01:28 PM, Todd wrote: > >> >> The idea would be to allow this syntax: >> >> x = a if b >> >> Which would be equivalent to: >> >> x = a if b else x >> >> > What if x has not been defined yet? > > Same as "x = a if b else x", it would raise a NameError.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/