Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions source/specifications/inline-script-metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ and the regular expression, the text specification takes precedence.
Tools MUST NOT read from metadata blocks with types that have not been
standardized by this specification.

Note that the specification only requires that *top-level* comment blocks are
recognised as containing metadata. However, parsing Python code is non-trivial,
and therefore:

* Tools MAY choose to do a simple textual scan, rather than a full Python parse.
For example, the canonical regular expression provided above does a textual
scan.
* As a result of the previous point, the behaviour of scripts that contain data
that looks like metadata within another Python construct such as a multi-line
string is tool-dependent and should not be relied on.

script type
-----------

Expand Down
Loading