[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2021-10-23 Thread Yoann Aubineau


Change by Yoann Aubineau :


--
nosy:  -yaubi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-27 Thread R. David Murray

R. David Murray added the comment:

Well, we have a goal of keeping the stable buildbots green.  If something turns 
one or more red, it should either be fixed promptly, or the changeset that 
turned it red backed out until a fix is ready.

The reason for keeping them green is so we know right away when a changeset is 
bad.  If some are red, we don't get alerted to new breakage.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-27 Thread Stefan Krah

Stefan Krah added the comment:

The revisions that cause the bot to go red (6c468df214dc and 227ce85bdbe0) are
quite recent, so I suggest we address the failure in #22285.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-27 Thread R. David Murray

R. David Murray added the comment:

I'm not going to argue this any further, but recent is exactly the point...if 
all of the bots had turned red you'd understand that it needed to be fixed 
*immediately* or the triggering change (regardless of what the actual bug was) 
backed out.  Since it isn't all the bots it isn't that critical, but eventually 
we want to make it critical (ie: someday it will be a requirement that *all* 
stable bots pass before a change gets *committed*...but that day is still a 
longer way off than I'd like, since I at least don't have much time for working 
on the workflow stuff).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-27 Thread Stefan Krah

Stefan Krah added the comment:

 I'm not going to argue this any further, but recent is exactly the 
 point...if all of the bots had turned red you'd understand that it needed to 
 be fixed *immediately* or the triggering change (regardless of what the 
 actual bug was) backed out.  Since it isn't all the bots it isn't that 
 critical, but eventually we want to make it critical (ie: someday it will be 
 a requirement that *all* stable bots pass before a change gets 
 *committed*...but that day is still a longer way off than I'd like, since I 
 at least don't have much time for working on the workflow stuff).

How is this supposed to work though?  In this case 6c468df214dc and 227ce85bdbe0
need to be backed out, since they apparently also broke the OpenIndiana bot long
ago (why wasn't that discovered?).

However, I don't feel that it is my place to back them out, since I did not
commit them and might step on other people's toes.

I don't think that the burden of having green buildbots should be on the
person who commits something that *exposes* existing issues (unless, as
you say, *all* buildbots turn red).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-27 Thread R. David Murray

R. David Murray added the comment:

Yeah, right now that's fine.  We'll work out the more strict process if/when we 
start actually enforcing it :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5c585929658a by Stefan Krah in branch '3.4':
Issue #22090: Fix '%' formatting for infinities and NaNs.
http://hg.python.org/cpython/rev/5c585929658a

New changeset 37ebb0d44808 by Stefan Krah in branch '2.7':
Issue 22090: Fix '%' formatting for infinities and NaNs.
http://hg.python.org/cpython/rev/37ebb0d44808

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
components: +Library (Lib)
resolution:  - fixed
stage:  - resolved
status: open - closed
versions: +Python 2.7, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread R. David Murray

R. David Murray added the comment:

Looks like there is a bug of some sort, eg:

http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.4/builds/466

--
nosy: +r.david.murray
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah

Stefan Krah added the comment:

I think only the builders --with-system-libmpdec fail.  That's inevitable, 
since they still use libmpdec-2.4.0.

Starting from 7fbb912c0789 they should fail building _decimal entirely until I 
upgrade the system libmpdec on the builders.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah

Stefan Krah added the comment:

It seems _decimal is imported even if _decimal.so is not built.
I've opened #22280 for that.

Regarding this patch, everything looks fine to me.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread R. David Murray

R. David Murray added the comment:

As long as you have a plan to get the buildbots fixed in a timely fashion.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread R. David Murray

R. David Murray added the comment:

(To be clear, I'm talking about the stable buildbots :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah

Stefan Krah added the comment:

I'm not sure that I understand. IMHO this issue does not break any buildbots.
The current situation is that it exposes an unrelated import issue (#22280).

I can camouflage that issue by upgrading the FreeBSD and the Fedora bot to
libmpdec-2.4.1 (once it's out), but I'd rather see the import issue fixed
first.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-23 Thread Stefan Krah

Stefan Krah added the comment:

Thanks.  I agree about 2.7 -- including 3.4 would perhaps make
external libmpdec management easier for Debian and Arch.

I'm not suggesting that we should always consider the distributors,
but this particular issue seems so minor.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-19 Thread Mark Dickinson

Mark Dickinson added the comment:

The decimal.py part LGTM.  (The rest looks good, too, but I haven't tested it.) 
 This seems like one of those bugs that probably isn't worth backporting to 
3.4, but given the projected longevity of 2.7 it might be worth applying there.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-18 Thread Stefan Krah

Stefan Krah added the comment:

I guess it's the right thing to do and here's a patch. Could one of you double 
check the decimal.py part?

--
keywords: +patch
Added file: http://bugs.python.org/file36410/issue22090.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-07-28 Thread Yoann Aubineau

Changes by Yoann Aubineau yoann.aubin...@gmail.com:


--
nosy: +yaubi

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-07-27 Thread Mark Dickinson

New submission from Mark Dickinson:

There's a minor inconsistency between Decimal and float formatting for the `%` 
format type when handling infinities and nans:

 from decimal import Decimal
 format(float('inf'), '.2%')  # includes trailing '%'
'inf%'
 format(Decimal('inf'), '.2%')  # no trailing '%'
'Infinity'

I think the Decimal result should have a '%' on it.

--
messages: 224114
nosy: eric.smith, mark.dickinson, skrah
priority: normal
severity: normal
status: open
title: Decimal and float formatting treat '%' differently for infinities and 
nans.
type: behavior
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-07-27 Thread Eric V. Smith

Eric V. Smith added the comment:

I agree that Decimal is wrong here. PEP 3101 says the result should include the 
trailing '%'.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22090
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com