Skip to content Skip to sidebar Skip to footer
Showing posts with the label Collections

Is `namedtuple` Really As Efficient In Memory Usage As Tuples? My Test Says No

It is stated in the Python documentation that one of the advantages of namedtuple is that it is as … Read more Is `namedtuple` Really As Efficient In Memory Usage As Tuples? My Test Says No

Is The Defaultdict In Python's Collections Module Really Faster Than Using Setdefault?

I've seen other Python programmers use defaultdict from the collections module for the followin… Read more Is The Defaultdict In Python's Collections Module Really Faster Than Using Setdefault?

Using A Custom Collection Extending From A Dict() With Sqlalchemy

I'm trying to use a custom collection to 'connect' (or relate) two classes but I haven&… Read more Using A Custom Collection Extending From A Dict() With Sqlalchemy