Wrapping Up

Intuitive Python — by David Muller (21 / 41)

The Pragmatic Programmers
The Pragmatic Programmers
2 min readSep 23, 2021

--

👈 Profiling Python Code with cProfile | TOC | Chapter 3 Ramping Up with Concurrent Code 👉

You’ve now completed a tour of selections from Python’s standard library: you used collections.defaultdict and collections.namedtuple to level up your usage of the built-in types tuple and dict, created temporary workspaces using tempfile, delegated calls to other programs with subprocess, wrote SQL from within Python with sqlite3, and even profiled your code with cProfile. You’ve covered a lot of ground!

You are well prepared to move on to another important subject in any programming language: concurrency. In the next chapter, we’ll focus on how to run Python code concurrently with its provided concurrency tools.

Footnotes

[40] https://docs.python.org/3/library/functions.html#func-list

[41] https://docs.python.org/3/library/stdtypes.html#frozenset.add

[42] https://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequences

[43] https://docs.python.org/3/reference/datamodel.html#object.__eq__

[44] https://docs.python.org/3/library/collections.html#collections.somenamedtuple._fields

[45] https://docs.python.org/3/library/collections.html#collections.somenamedtuple._asdict

[46] https://docs.python.org/3/library/typing.html#typing.NamedTuple

[47] https://docs.python.org/3/library/collections.html

[48] https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files

[49] https://git-scm.com

[50] https://docs.python.org/3/library/subprocess.html#subprocess.CompletedProcess

[51] https://en.wikipedia.org/wiki/UTF-8

[52] https://docs.python.org/3/library/stdtypes.html#str.strip

[53] https://docs.python.org/3/library/subprocess.html#subprocess.TimeoutExpired

[54] https://docs.python.org/3/glossary.html#term-file-object

[55] https://docs.python.org/3/library/subprocess.html#subprocess.run

[56] https://en.wikipedia.org/wiki/Pipeline_%28Unix%29

[57] https://en.wikipedia.org/wiki/Redirection_(computing)

[58] https://sqlite.org/mostdeployed.html

[59] https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection

[60] https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor

[61] https://en.wikipedia.org/wiki/Database_transaction

[62] https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.close

[63] https://docs.python.org/3/library/contextlib.html#contextlib.closing

[64] https://stackoverflow.com/q/6318126

[65] http://en.wikipedia.org/wiki/Cursor_%28databases%29

[66] https://docs.python.org/3/library/sqlite3.html#sqlite3.Row

[67] https://docs.python.org/3/library/profile.html#pstats.Stats

[68] https://docs.python.org/3/library/profile.html#pstats.Stats.sort_stats

[69] https://jiffyclub.github.io/snakeviz/

Copyright © 2021, The Pragmatic Bookshelf.

👈 Profiling Python Code with cProfile | TOC | Chapter 3 Ramping Up with Concurrent Code 👉

Intuitive Python by David Muller can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

Unlisted

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.