MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / __new__

Method __new__

suds/sax/text.py:38–47  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

36 return len(args) and args[0] is not None
37
38 def __new__(cls, *args, **kwargs):
39 if cls.__valid(*args):
40 lang = kwargs.pop('lang', None)
41 escaped = kwargs.pop('escaped', False)
42 result = super(Text, cls).__new__(cls, *args, **kwargs)
43 result.lang = lang
44 result.escaped = escaped
45 else:
46 result = None
47 return result
48
49 def escape(self):
50 """

Callers

nothing calls this directly

Calls 2

__validMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected