News for hackers. Stuff that matters.
Re:Dear Python by viraptor on Tuesday February 02, 2010 @04:39PM (#1096217)
Just to correct one point from that post: you can close the list of members of a class using __slots__ http://docs.python.org/reference/datamodel.html#slots

I really like the "Classes in Python are more like dictionary objects with functions attached than classes." part though. It's exactly what I expect from objects. There aren't that many situations when we need anything more.

Re:Dear Python by mbreese on Tuesday February 02, 2010 @05:18PM (#1096345)
Classes in Python are more like dictionary objects

Yeah, that was my favorite part... my response was "yes... yes they are." Everything else with classes just seems to be syntactic sugar.

I'm not saying that is good or bad, but in Python, just about everything is a dict.

Re:Dear Python by megamark16 on Tuesday February 02, 2010 @04:50PM (#1096262)
Plus it reminds me of coding javascript, which I have only recently gained a great appreciation for. I love how everything is an Object (even functions), and Objects are just dictionaries. It's awesome.