MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getvalue

Method getvalue

tools/python-3.11.9-amd64/Lib/cgi.py:542–551  ·  view source on GitHub ↗

Dictionary style get() method, including 'value' lookup.

(self, key, default=None)

Source from the content-addressed store, hash-verified

540 return found
541
542 def getvalue(self, key, default=None):
543 """Dictionary style get() method, including 'value' lookup."""
544 if key in self:
545 value = self[key]
546 if isinstance(value, list):
547 return [x.value for x in value]
548 else:
549 return value.value
550 else:
551 return default
552
553 def getfirst(self, key, default=None):
554 """ Return the first value received."""

Callers 1

__writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected