A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/016971.html below:

[Python-Dev] ++x oddnes

[Python-Dev] ++x oddnes [Python-Dev] ++x oddnesSkip Montanaro skip@pobox.com (Skip Montanaro)
Mon, 13 Aug 2001 08:53:23 -0500
    mal> David Ascher wrote:
    >> 
    >> Guido van Rossum wrote:
    >> 
    >> > IMO not worth it changing the language.  Train yourself to write x++
    >> > instead. :-)
    >> 
    >> Sounds like an excellent one for PyChecker =)

    mal> Why ? ++x can be put to some real use: I have a counter type which
    mal> actually uses ++x to increment the counter.

(I've been away for a few days, so perhaps this has been covered already.
I'm still catching up.)

How?  ++x compiles to

         LOAD_FAST         x
         UNARY_POSITIVE      
         UNARY_POSITIVE      

I don't see any incrementing going on...

Skip



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4