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

Class MyPattern

Lib/test/test_string/test_string.py:329–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328 def test_flags_override(self):
329 class MyPattern(Template):
330 flags = 0
331 s = MyPattern('$wHO likes ${WHAT} for ${meal}')
332 d = dict(wHO='tim', WHAT='ham', meal='dinner', w='fred')
333 self.assertRaises(ValueError, s.substitute, d)

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…