This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients georg.brandl, jdwhitley, k0wax, rhettinger, steven.daprano
Date 2009-03-15.00:37:53
SpamBayes Score 1.1206582e-05
Marked as misclassified No
Message-id <1237077474.8.0.434582167647.issue1714448@psf.upfronthosting.co.za>
In-reply-to
Content
Regarding the proposed syntax:

if (f() == 'spam') -> name:
   newname = name.replace('p', 'h') 

Surely that should assign the *bool* result of comparing f() 
with 'spam' to name? Doing anything else is opening the door to a 
world of pain.

if (f() == 'spam') -> name  # binds name=f()
if ('spam' == f()) -> name  # binds 'spam' to name?
if (f() == g()) -> name  # binds what to name?
if (f() or g()) -> name  # binds what to name?
History
Date User Action Args
2009-03-15 00:37:54steven.dapranosetrecipients: + steven.daprano, georg.brandl, rhettinger, k0wax, jdwhitley
2009-03-15 00:37:54steven.dapranosetmessageid: <1237077474.8.0.434582167647.issue1714448@psf.upfronthosting.co.za>
2009-03-15 00:37:53steven.dapranolinkissue1714448 messages
2009-03-15 00:37:53steven.dapranocreate