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 mrabarnett
Recipients georg.brandl, jdwhitley, k0wax, mrabarnett, rhettinger, steven.daprano
Date 2009-03-15.02:45:37
SpamBayes Score 1.2123115e-05
Marked as misclassified No
Message-id <1237085141.27.0.34672577671.issue1714448@psf.upfronthosting.co.za>
In-reply-to
Content
At the moment binding occurs either right-to-left with "=", eg.

    x = y

where "x" is the new name, or left-to-right, eg.

    import x as y

where "y" is the new name.

If the order is to be right-to-left then using "as" seems to be the best
choice.

On the other hand, if there should be a form of binding explicitly for
use in an expression in order to prevent accidental use of "=" then the
order should probably be the same as "=", ie right-to-left, and a new
symbol is needed (using punctuation feels preferable somehow, because
"=" uses punctuation).

The only symbol I can think of is "~=".

How does this:

if ob ~= map[x][y].overpay:
   ob.blit(x, y)

look compared to:

if map[x][y].overpay as ob:
   ob.blit(x, y)

IMHO, of course.
History
Date User Action Args
2009-03-15 02:45:41mrabarnettsetrecipients: + mrabarnett, georg.brandl, rhettinger, k0wax, steven.daprano, jdwhitley
2009-03-15 02:45:41mrabarnettsetmessageid: <1237085141.27.0.34672577671.issue1714448@psf.upfronthosting.co.za>
2009-03-15 02:45:39mrabarnettlinkissue1714448 messages
2009-03-15 02:45:37mrabarnettcreate