Hands-On Software Engineering with Python
上QQ阅读APP看书,第一时间看更新

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: 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: "Within the src directory is the package tree for the project."

A block of code is set as follows:

def SetNodeResource(x, y, z, r, v): n = get_node(x,y) n.z = z n.resources.add(r, v)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

def __private_method(self, arg, *args, **kwargs):             print('%s.__private_method called:' % self.__class__.__name__)  print('+- arg ...... %s' % arg) print('+- args ..... %s' % str(args))  print('+- kwargs ... %s' % kwargs)

Any command-line input or output is written as follows:

$python setup.py test

Bold: Indicates a new term, an important word, or words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this. For example: "Select System info from the Administration panel."

Warnings or important notes appear like this.
Tips and tricks appear like this.