cf.Bounds.creation_commands¶
-
Bounds.
creation_commands
(representative_data=False, namespace='cf', indent=0, string=True, name='c', data_name='d')[source]¶ Return the commands that would create the construct.
New in version 3.2.0.
- Parameters
- representative_data:
bool
, optional Return one-line representations of
Data
instances, which are not executable code but prevent the data being converted in its entirety to a string representation.- namespace:
str
, optional The namespace containing classes of the
cf
package. This is prefixed to the class name in commands that instantiate instances ofcf
objects. By default, namespace is'cf'
, i.e. it is assumed thatcf
was imported asimport cf
.- Parameter example:
If
cf
was imported asimport cf as cfp
then setnamespace='cfp'
- Parameter example:
If
cf
was imported asfrom cf import *
then setnamespace=''
- indent:
int
, optional Indent each line by this many spaces. By default no indentation is applied. Ignored if string is False.
- string:
bool
, optional If False then return each command as an element of a
list
. By default the commands are concatenated into a string, with a new line inserted between each command.
- representative_data:
- Returns
Examples:
TODO