Home | History | Annotate | Download | only in gn

Lines Matching refs:Python

8 serialized GN veriables and Python variables.
10 To use in a random python file in the build:
27 """Returns a stringified GN equivalent of the Python value.
67 """Converts the input string from a GN serialized value to Python values.
79 You can parse this into a Python list using GN rules with:
81 Although the Python 'ast' module will parse many forms of such input, it
88 If you just pass a string on the command line to your Python script, or use
96 the Python string literal directly.
107 """Converts a string with a bunch of gn arg assignments into a Python dict.
113 gn assignments, this returns a Python dict, i.e.:
130 Be careful not to feed with input from a Python parsing function like
131 'ast' because it will do Python unescaping, which will be incorrect when
157 """Duplicates GN parsing of values and converts to Python types.
175 """Converts a string representing a printed GN value to the Python type.
179 - GN booleans ('true', 'false') will be converted to Python booleans.
181 - GN numbers ('123') will be converted to Python numbers.
183 - GN strings (double-quoted as in '"asdf"') will be converted to Python
188 - GN lists ('[1, "asdf", 3]') will be converted to Python lists.