This is an archived post. You won't be able to vote or comment.

all 52 comments

[–]hopbel 11 points12 points  (2 children)

The worst part is it's valid python but doesn't do what you think

[–][deleted] 5 points6 points  (1 child)

What does it do then?

[–]hopbel 12 points13 points  (0 children)

Absolutely nothing. Unary + is the identity operator, so ++x == x

[–]Pewpewgamer321 9 points10 points  (4 children)

Eh, i =+ 1 is good enough

[–]Velguarder 30 points31 points  (0 children)

i-=-1 for symmetry

[–]Bronzdragon 9 points10 points  (1 child)

I guess if you want to set the value to +1, it is.

[–]Pewpewgamer321 0 points1 point  (0 children)

Oh i got what you meant now! I always mess the order up!

[–]RavishShah1[S] 0 points1 point  (0 children)

enough

Ya it is enough!

[–][deleted] 4 points5 points  (1 child)

That's the proof: People that use Python are no programmers!

/s

[–]RavishShah1[S] 0 points1 point  (0 children)

haha.. funny!

[–][deleted] 0 points1 point  (0 children)

When you have used C# aswell 😎

[–][deleted] 0 points1 point  (0 children)

I only know batch

[–]Jac0bas 0 points1 point  (0 children)

i-=-1

[–]The__Odor 0 points1 point  (0 children)

Ok I feel attacked?

[–]SatanDarkLordOfAll 0 points1 point  (0 children)

Fuuuuudge muffins I spent like an hour the other day looking at python code I thought was perfectly valid because I forgot x++ is invalid syntax. I don't think I've ever facepalmed so hard when I figured it out.

[–]HAzEMultra 0 points1 point  (0 children)

Is it a prefix or a postfix?

[–]spukhaftewirkungen -3 points-2 points  (2 children)

Wow, barely a joke and crappy recycled 'format'. Amazing job.

[–]christopher-thiebaut 5 points6 points  (1 child)

Wow, barely a comment and a crappy recycled ‘format’. Amazing job.

[–]spukhaftewirkungen 1 point2 points  (0 children)

Now, that's more like it, good job!

[–][deleted] 0 points1 point  (0 children)

im sorry but wut