#python on Incrementing - Fortune

#python on Incrementing

rindolf Hi all.
scorchsaber <all> Hi rindolf
rindolf scorchsaber: heh.
rindolf scorchsaber++
rindolf Or in Python:
rindolf scorchsaber+=1
rillo ??
rindolf rillo: Python does not have a ++ operator.
scorchsaber rindolf: Oh, but it does have a + operator.
rillo ah. i'm new to python so i diddnt know
scorchsaber A few days ago, it was suggested that I implement ++ using the + operator.
scorchsaber And I did so. :)
scorchsaber So, really, a++; is valid in Python, and it may even increment a by one. If somebody was crazy, anyhow, and if a was mutable.
rillo shall i move back to perl to get the ++
rillo ?
rindolf rillo: no, use COBOL instead.
rindolf ADD 1 TO COBOL GIVING COBOL
verte :(
verte eww, magic numbers!
rindolf "COBOL is the old Java"
verte ADD ONE TO COBOL GIVING COBOL
rindolf verte: heh.
rindolf verte: 1 is not a magic number.
rindolf ASSIGN 1 to ONE
rindolf 0, 1, infinity.
rindolf verte: LOL.
rindolf verte++
\amethyst COMPUTE COBOL = COBOL + 1
Channel #python
Network Freenode
Tagline On Incrementing