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

Method header_max_count

Lib/email/policy.py:106–112  ·  view source on GitHub ↗

+ The implementation for this class returns the max_count attribute from the specialized header class that would be used to construct a header of type 'name'.

(self, name)

Source from the content-addressed store, hash-verified

104 super().__init__(**kw)
105
106 def header_max_count(self, name):
107 """+
108 The implementation for this class returns the max_count attribute from
109 the specialized header class that would be used to construct a header
110 of type 'name'.
111 """
112 return self.header_factory[name].max_count
113
114 # The logic of the next three methods is chosen such that it is possible to
115 # switch a Message object between a Compat32 policy and a policy derived

Callers 1

__setitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected