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

python

Name: Anonymous 2014-11-07 0:22

Why is python so fucking terrible?

Dynamic typing is shit and only good for toy programs.
Indenting a line incorrectly breaks your entire program.
Guido is a retard.
The sort of smug look you imagine python coders have when they think about their shit language.

Name: Anonymous 2014-11-09 20:27

Useful trick. If you want to make it possible to iterate over data from instances of your classes, but namedtuple is not enough (e. g. because you want to add asserts for constructor args), implement __iter__ for it, like this:
class Faggot(object):
def __init__(self, shit, penis):
assert shit != penis
self.shit = sht
self.penis = penis
def __iter__(self):
yield self.shit
yield self.penis

p = Faggot(1, 2)
q = Faggot(2, 3)
for x, y in [p, q]:
print x
print y

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