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 jdwhitley
Recipients georg.brandl, jdwhitley, k0wax, rhettinger
Date 2009-03-14.13:30:02
SpamBayes Score 1.1123327e-05
Marked as misclassified No
Message-id <1237037414.68.0.676639559007.issue1714448@psf.upfronthosting.co.za>
In-reply-to
Content
Hi, 

I like this idea. 

I've put together a short patch that will implement inline
assignment. 

if f() -> name:
  use(name)

or more powerfully:

if f() -> name == 'spam':
   usespam(name)

the old syntax if something as x: is still available if that
is what is desired.

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

Patched against Py3k please kick the tires, I've added some tests and
developed a PEP.
History
Date User Action Args
2009-03-14 13:30:14jdwhitleysetrecipients: + jdwhitley, georg.brandl, rhettinger, k0wax
2009-03-14 13:30:14jdwhitleysetmessageid: <1237037414.68.0.676639559007.issue1714448@psf.upfronthosting.co.za>
2009-03-14 13:30:12jdwhitleylinkissue1714448 messages
2009-03-14 13:30:11jdwhitleycreate