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

Class Text

Lib/test/test_xml_etree.py:2495–2498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2493 def test_lost_text(self):
2494 # Issue #25902: Borrowed text can disappear
2495 class Text:
2496 def __bool__(self):
2497 e.text = 'changed'
2498 return True
2499
2500 e = ET.Element('tag')
2501 e.text = Text()

Callers 2

test_lost_textMethod · 0.70
test_lost_tailMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_lost_textMethod · 0.56
test_lost_tailMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…