You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a reminder that as a followup to #9139, we want to recode the LongFloatFormat formatter in arrayprint.py so that it behaves more like the FloatFormat, for example it should now omit whitespace in the sign position if possible.
Ideally would be done before 1.14 release.
Implementation idea: Probably we should try to re-use the FloatFormat code, eg by subclassing it. The only part of FloatFormat we need to change is to use C's printf instead of python's printf-like formatter, since only the former supports the l specifier. That means about 3-4 lines need to change in FloatFormat to adapt it to LongFloatFormat. It looks like we may want to use the C-level format_longdouble function.
The text was updated successfully, but these errors were encountered:
This is a reminder that as a followup to #9139, we want to recode the
LongFloatFormat
formatter inarrayprint.py
so that it behaves more like theFloatFormat
, for example it should now omit whitespace in the sign position if possible.Ideally would be done before 1.14 release.
Implementation idea: Probably we should try to re-use the
FloatFormat
code, eg by subclassing it. The only part ofFloatFormat
we need to change is to use C'sprintf
instead of python's printf-like formatter, since only the former supports thel
specifier. That means about 3-4 lines need to change inFloatFormat
to adapt it toLongFloatFormat
. It looks like we may want to use the C-levelformat_longdouble
function.The text was updated successfully, but these errors were encountered: