[issue43177] How to use `long double` as a PyObject?

Ganesh Kathiresan report at bugs.python.org
Tue Feb 9 03:40:00 EST 2021


New submission from Ganesh Kathiresan <ganesh3597 at gmail.com>:

I wanted to know if there is a way to parse and store c `long double`. I only found `PyFloat_FromDouble` and in the same page, `PyFloat_GetMax` returns: 
> Return the maximum representable finite float DBL_MAX as C double.

Meaning, there is no scope of `long double`. Can you please tell me how I can do something like `PyFloat_FromLongDouble`

----------
components: ctypes
messages: 386698
nosy: ganesh3597
priority: normal
severity: normal
status: open
title: How to use `long double` as a PyObject?
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43177>
_______________________________________


More information about the Python-bugs-list mailing list