MCPcopy Index your code
hub / github.com/python/cpython / PieDelims

Class PieDelims

Lib/test/test_string/test_string.py:499–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497 eq(s.safe_substitute(), 'this &gift is for &{who} &')
498
499 class PieDelims(Template):
500 delimiter = '@'
501 s = PieDelims('@who likes to eat a bag of @{what} worth $100')
502 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
503 'tim likes to eat a bag of ham worth $100')

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…