|
|
|
|
|
by ntrepid8
3206 days ago
|
|
If you want to create a large number of Objects (like for rows in a data set) using __slots__ saves a lot of memory over just using the standard __dict__. I've always used named tuples for this in the past, but this is a nice way to do it. |
|