I can get rid of the first and third by replacing e[i]=e[i]+1 with e[i]+=1 and range(len(e)) with xrange(len(e)), respectively. The function call can be removed by using a for loop:
for i in range(len(e)): e[i]+=1
(don't forget to type Enter in twice if using the REPL--something I haven't seen in Perl, at least not Perl proper)
Although that's a contrived example. And most of the stuff you need references for in Perl(making lists and hashes into scalars so you can put them into lists and hashes--at least that's what I saw as a use for them in some "Debunking Perl Myths" site) you don't need them for in Python.
Unlike in Haskell, in Python you can use expressions with side-effects in list comprehensions.(unforunately, you have to encapsulate them in a function, but the need to do this is rare)
Code:
def incr(e,i): e[i] = e[i] + 1
[incr(e, i) for i in range(len(e))]
(note that you'll have to put an extra line after the def statement if you're in the REPL, because of the way it does the whitespace blocks)
It works! Now if you need reference semantics(i.e. make an immutable object like a mutable one), you can use a singleton list--not the best, but the need for reference semantics in Python are rare, since the only immutables that could possibly take up much memory are strings and tuples containing such.
1. This still mentions Sanger.
2. You can see the edits. You obviously haven't actually read 1984, because in that book, the whole point of the memory hole is that the original article was completely lost, and there was no dissent.
3. Scroll down, and find that Wales regrets having edited his own page.
So it's impossible to trust the judgement of Jill on XYZ, but not on jumping off a bridge? You're probably one of those people who consider consistency ueber alles...a bad path to go on.
I can only thing of one band which is a counterexample to the average pop music thing: Green Day. Of course, they're almost 17 years old and got popular around 1994. You can hear/watch their live performance of "St. Jimmy" on most of the music video channels, and they do do different things in most of their live performances(They at least doubled, possibly even tripled, the length of the "Minority" solo, for example), but this is an example of the exception proving the rule.
There's a song on The Killers' album, for instance, that they used their basement-produced tracks of because they couldn't do it as good anymore.
Which track is it? That's an interesting little tidbit to know, but it would be a little more interesting with the song name:P
Or, in Bush-talk: "You forgot Python!" Except that Python is important. ;)
You forgot one: "Operation CPU Freedom"
And yet it's indistinguishable from most real complaints against Slashdot.
As an Ameri-I mean, US citizen, I'd prefer "Lower Canadian" myself.
I can get rid of the first and third by replacing e[i]=e[i]+1 with e[i]+=1 and range(len(e)) with xrange(len(e)), respectively. The function call can be removed by using a for loop:
for i in range(len(e)): e[i]+=1
(don't forget to type Enter in twice if using the REPL--something I haven't seen in Perl, at least not Perl proper)
Although that's a contrived example. And most of the stuff you need references for in Perl(making lists and hashes into scalars so you can put them into lists and hashes--at least that's what I saw as a use for them in some "Debunking Perl Myths" site) you don't need them for in Python.
Unlike in Haskell, in Python you can use expressions with side-effects in list comprehensions.(unforunately, you have to encapsulate them in a function, but the need to do this is rare)
Code:
def incr(e,i): e[i] = e[i] + 1
[incr(e, i) for i in range(len(e))]
(note that you'll have to put an extra line after the def statement if you're in the REPL, because of the way it does the whitespace blocks)
It works! Now if you need reference semantics(i.e. make an immutable object like a mutable one), you can use a singleton list--not the best, but the need for reference semantics in Python are rare, since the only immutables that could possibly take up much memory are strings and tuples containing such.
You miss three points.
1. This still mentions Sanger.
2. You can see the edits. You obviously haven't actually read 1984, because in that book, the whole point of the memory hole is that the original article was completely lost, and there was no dissent.
3. Scroll down, and find that Wales regrets having edited his own page.
So yeah.
I don't think I saw the word "bridge" in his post at all...
So it's impossible to trust the judgement of Jill on XYZ, but not on jumping off a bridge? You're probably one of those people who consider consistency ueber alles...a bad path to go on.
And I can't exactly "see" evolution's effect, but one thing I can "see" is the bacteria that have grown resistant to antibiotics.
s/Indymedia and al-Jazeera/Fox News and Newsmax/
The #9 top gainer is protesting against the unconstitutional powergrab by the President...
My guess is that it's different people. But that's just me.
I thought he was referring to the fact that the President uses AOL...
Actually Google prefers Python, I think
What's a "natzi"?
I don't really care where Slashdot's stories are duped from, since I read Slashdot for the comments.
No, you're not. I misread it as "Mafia lights" at first too.
Sixteen and a half years, according to Billie Joe at the concerts, on August 24, 2005, so 17 years is close.
The term "Feminazi" was invented by Rush Limbaugh. That's reason enough not to use it.
Yes, but the Patriot act is against several parts of the Constitution, hence it is an illegal act IMHO ;).
Actually, under the many-worlds interpretation, they will be evil in one universe and not evil in the other.