Files
example-code-2e/11-pythonic-obj
2021-02-14 20:28:07 -03:00
..
2021-02-14 20:28:07 -03:00
2020-06-09 01:20:49 -03:00
2020-06-09 01:16:38 -03:00
2020-06-09 01:16:38 -03:00
2020-06-09 01:16:38 -03:00
2020-06-09 01:16:38 -03:00

A Pythonic Object

Sample code for Chapter 11 of Fluent Python 2e by Luciano Ramalho (OReilly, 2020)

The memtest.py script takes a module name in the command line and loads it. Assuming the module defines a class named Vector, memtest.py creates a list with 10 million instances, reporting the memory usage before and after the list is created.