March 2018
Beginner to intermediate
336 pages
8h 22m
English
Fields have additional attributes available for us to define their behavior. Some of these can be set positionally, without an argument keyword, as shown in the previous section.
For example, perc_complete = fields.Float('% Complete', (3, 2)) is making use of positional arguments. Using the keyword arguments, it could be written as perc_complete = fields.Float(string='% Complete', digits=(3,2)). More information on keyword arguments can be found in the Python official documentation at https://docs.python.org/3/tutorial/controlflow.html#keyword-arguments.
These are the generally available attributes and the corresponding argument keywords:
Read now
Unlock full access