Skip to content

Files

Latest commit

80f7f84 · Nov 12, 2021

History

History

11-pythonic-obj

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 26, 2021
Jun 9, 2020
Aug 7, 2021
Aug 7, 2021
Aug 7, 2021
Jun 9, 2020
Jun 9, 2020
Jun 9, 2020
Jun 9, 2020
Nov 12, 2021
Nov 12, 2021
Nov 12, 2021

A Pythonic Object

Sample code for Chapter 11 of Fluent Python 2e by Luciano Ramalho (O'Reilly, 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.