Augmented assignment augmentation?

Emile van Sebille emile at fenx.com
Fri Sep 22 11:28:59 CEST 2000


"Manus Hand" <mjhand at concentric.net> wrote in message
news:39CAE8B9.C53FBF98 at concentric.net...
<snip>
> So that:
>    line = line.upper()
> could be written:
>    line .= upper()
>

Why not take it a step further to match list sorts:

    line.upper()

Or allow the in place list functions with augmented
assignment:

    myList.sort()
becomes:
    myList .= sort()


--

Emile van Sebille
emile at fenx.com
-------------------





More information about the Python-list mailing list