News for hackers. Stuff that matters.
Re:Javascript-Style Objects in Python by AnkhMorporkian on Monday March 16, 2015 @03:15PM (#9213628)
Memory wise it's certainly much better in classes than in a naive implementation via these. Every time you create a new pseudo-class you'll be attaching all methods over and over again, eating up way more memory than the shared methods between python classes. You can get around this by defining the functions outside the class definition itself, but at that point it feels like it's defeating the purpose.

There are no comments on this comment yet.