Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Exhibition of Atrocity (pycon.org)
1 point by rbanffy on Jan 7, 2011 | hide | past | favorite | 1 comment


Interesting. I doubt I'll be flying halfway 'round the world for PyCon, but I look forward to watching a video of this presentation later.

For the record, the worst Python atrocity I've seen looks something like this:

    class Cat:

        def speak(self):
            print "meow!"

    class Dog:

        def speak(self):
            print "woof!"

        def transmogrify(self):
            self.__class__ = Cat
And, as I'm sure you can imagine, it works like this:

    >>> d = Dog()
    >>> d.speak()
    woof!
    >>> d.transmogrify()
    >>> d.speak()
    meow!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: