MCPcopy Index your code
hub / github.com/clips/pattern / __repr__

Method __repr__

pattern/text/tree.py:207–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

205 def __unicode__(self):
206 return self.string
207 def __repr__(self):
208 return "Word(%s)" % repr("%s/%s" % (
209 encode_entities(self.string),
210 self.type is not None and self.type or OUTSIDE))
211
212 def __eq__(self, word):
213 return id(self) == id(word)

Callers

nothing calls this directly

Calls 1

encode_entitiesFunction · 0.50

Tested by

no test coverage detected