Staging
v0.5.1
https://github.com/python/cpython
Revision 71d2b3344f4560ffee14fccd320b20e7add50fec authored by Miss Islington (bot) on 25 January 2020, 14:54:57 UTC, committed by Karthikeyan Singaravelan on 25 January 2020, 14:54:57 UTC
If an autospecced object is attached using attach_mock the
child would be a function with mock object as attribute from
which signature has to be derived.

(cherry picked from commit 66b00a9d3aacf6ed49412f48743e4913104a2bb3)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
1 parent fd9ce2b
Raw File
Tip revision: 71d2b3344f4560ffee14fccd320b20e7add50fec authored by Miss Islington (bot) on 25 January 2020, 14:54:57 UTC
bpo-38473: Handle autospecced functions and methods used with attach_mock (GH-16784) (#18166)
Tip revision: 71d2b33
dtoa.h
#ifndef Py_LIMITED_API
#ifndef PY_NO_SHORT_FLOAT_REPR
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
                        int *decpt, int *sign, char **rve);
PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
PyAPI_FUNC(double) _Py_dg_stdnan(int sign);
PyAPI_FUNC(double) _Py_dg_infinity(int sign);


#ifdef __cplusplus
}
#endif
#endif
#endif
back to top