MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / Float2Str

Function Float2Str

src/MySQLdb/converters.py:73–79  ·  view source on GitHub ↗
(o, d)

Source from the content-addressed store, hash-verified

71
72
73def Float2Str(o, d):
74 s = repr(o)
75 if s in ("inf", "-inf", "nan"):
76 raise ProgrammingError("%s can not be used with MySQL" % s)
77 if "e" not in s:
78 s += "e0"
79 return s
80
81
82def None2NULL(o, d):

Callers

nothing calls this directly

Calls 1

ProgrammingErrorClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…