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

Class MyTemplate

Lib/test/test_string/test_string.py:389–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388 def test_braced_override(self):
389 class MyTemplate(Template):
390 pattern = r"""
391 \$(?:
392 (?P<escaped>$) |
393 (?P<named>[_a-z][_a-z0-9]*) |
394 @@(?P<braced>[_a-z][_a-z0-9]*)@@ |
395 (?P<invalid>) |
396 )
397 """
398
399 tmpl = 'PyCon in $@@location@@'
400 t = MyTemplate(tmpl)

Callers 3

test_braced_overrideMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_braced_overrideMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…