Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python. So simple iit bores me.

Name: PyTard 2011-04-25 4:29

so you jew fag niggers called me a nigger fag jew and stuff for liking python last week some time, but I'm back to defend my position on this amazing programming language. Less than an hour ago, my TA emailed me a project, which, despite being High, Drunk, crashing off caffeine, and forgetting to take my medicine today I was able to write up in less than 15 min. 
FUCK YEAH PYTHON?
FUCK YEAH PYTHON!

Name: Anonymous 2011-04-25 23:37


a = 3

def foo():
    a = 2

foo()    # foo should set the outer a to 2
print a  # so this should print '2'

This prints 3, due to a naive mistake that Guido made early on, one that has permanent and far-reaching implications to the usability of the language. For what it's worth, Larry Wall made the same mistake with Perl, Matz made it with Ruby, and Strachan appears to be making it all over again in Groovy. It's a common blunder.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List