MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / to_python

Method to_python

mongoengine/fields.py:340–345  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

338 super().__init__(**kwargs)
339
340 def to_python(self, value):
341 try:
342 value = int(value)
343 except (TypeError, ValueError):
344 pass
345 return value
346
347 def validate(self, value):
348 try:

Callers 9

_get_items_from_listMethod · 0.45
_get_items_from_dictMethod · 0.45
to_pythonMethod · 0.45
to_pythonMethod · 0.45
to_pythonMethod · 0.45
to_pythonMethod · 0.45
to_pythonMethod · 0.45
to_pythonMethod · 0.45
saveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected