badp

Italy

twitter.com/badp

Age: 25

I'm also studying Engineering of Computer Science at the Politecnico di Milano, after enjoying an Erasmus period by the Vrije Universiteit. I have also been a Software Engineer Intern at Google. I moderate Gaming, whine on Twitter and lurk on Youtube.

It should go without saying that the opinions stated by me are my own and not necessarily those of my companies past and future, but apparently it doesn't and while no one asked me to put this disclaimer here, I'll just put it over here with the rest of the fire.

Mah reps, let me show you them.

1d
awarded Caucus
2d
revised default value for the function python
Embed gifs
2d
awarded Popular Question
2d
comment default value for the function python
@gr4k Here's f2 as well for completeness and clarity.
2d
comment default value for the function python
@gr4k Maybe a moving picture is worth a thousand words. (Fixed 2)
2d
comment default value for the function python
@user yep, that's it: when you assign to L you assign a new value to the reference L without affecting the previous value. Consider this: A=B=[]; A.append(0); print A, B; A=[]; A.append(1); B.append(2); print A, B; this should give [0] [0] [1] [0, 2]
Jan
22
awarded Popular Question
Jan
21
comment Can an incorrect (accepted) answer be deleted?
@ben I don't know anything about Dark Souls 2 and can't really comment.
Jan
21
revised Can an incorrect (accepted) answer be deleted?
added 461 characters in body
Jan
21
answered Can an incorrect (accepted) answer be deleted?
Jan
20
revised How do the Blutsauger's and the Amputator's passive health regeneration modifiers stack?
deleted 113 characters in body; edited title
Jan
20
awarded Nice Question
Jan
19
awarded Notable Question
Jan
18
comment Determining if two values are equal, without using comparison operators (==, <=, >=, <, >)
. . . does not bool(a - b) count? :P
Jan
18
comment How to convert "\x1b" into a real control character "[Esc]"
I think you just have to know that \x1b is Escape.
Jan
18
comment default value for the function python
@user3572950 in f1(x), L=[], thus you run the if not L branch, which discards the L reference, so next time you run f1(y), it'll still start with L=[]. When you call f2(x) the first time, L=[], so you skip the if L branch and go straight to changing L with L.append. When you then call f2(y), L=[x], so you go through the if L branch (and discard the L reference).
Jan
17
comment Checking specific list entry and the rest of the list entries
Are the typoes (widg**e**t, not widgit) intentional?
Jan
17
reviewed Should Be Improved refresh vote button in pligg use java
Jan
17
reviewed Should Be Improved Parse 'Date & Time' string in Javascript which are of custom format
Jan
17
reviewed Looks Good Can't seem to translate the MySQL query to Laravel Query Builder
1 2 3 4 5