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

Class Person

Lib/test/test_tstring.py:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51 # Test attribute access in expressions
52 class Person:
53 def __init__(self, name):
54 self.name = name
55
56 def upper(self):
57 return self.name.upper()
58
59 person = Person("Alice")
60 t = t"Name: {person.name}"

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…