Conventions used
There are a number of text conventions used throughout this book.
Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “To explain this further, let us look at an example where we will generate a class named VegCounter by parsing a series of strings using the ast module.”
A block of code is set as follows:
actualclass = compile(class_tree, 'vegctr_tree', 'exec')
actualclass
When we wish to draw your attention to a particular part of a code block or show the output of a code, the relevant lines or items are set in bold:
<code object <module> at 0x0000028AAB0D2A80, file "vegctr_tree", line 1>
Tips or Important Notes
Appear like this.