MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / delimit

Method delimit

tools/python-3.11.9-amd64/Lib/ast.py:758–764  ·  view source on GitHub ↗

A context manager for preparing the source for expressions. It adds *start* to the buffer and enters, after exit it adds *end*.

(self, start, end)

Source from the content-addressed store, hash-verified

756
757 @contextmanager
758 def delimit(self, start, end):
759 """A context manager for preparing the source for expressions. It adds
760 *start* to the buffer and enters, after exit it adds *end*."""
761
762 self.write(start)
763 yield
764 self.write(end)
765
766 def delimit_if(self, start, end, condition):
767 if condition:

Callers 15

delimit_ifMethod · 0.95
visit_FunctionTypeMethod · 0.95
_function_helperMethod · 0.95
visit_FormattedValueMethod · 0.95
visit_ConstantMethod · 0.95
visit_ListMethod · 0.95
visit_ListCompMethod · 0.95
visit_GeneratorExpMethod · 0.95
visit_SetCompMethod · 0.95
visit_DictCompMethod · 0.95
visit_SetMethod · 0.95
visit_DictMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected