Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _serialize_text
Function
_serialize_text
Lib/xml/etree/ElementTree.py:964–968 ·
view source on GitHub ↗
(write, elem)
Source
from the content-addressed store, hash-verified
962
write(_escape_cdata(elem.tail))
963
964
def
_serialize_text(write, elem):
965
for
part in elem.itertext():
966
write(part)
967
if
elem.tail:
968
write(elem.tail)
969
970
_serialize = {
971
"xml"
: _serialize_xml,
Callers
1
write
Method · 0.85
Calls
2
itertext
Method · 0.80
write
Function · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…