FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

example-code-2e/11-pythonic-obj at master · fluentpython/example-code-2e · GitHub

Latest commit

 

History

History

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.


Back | FazBrowse Home | New Git URL