This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年07月27日 10:08 by mark.dickinson, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue22090.diff | skrah, 2014年08月18日 22:45 | review | ||
| Messages (17) | |||
|---|---|---|---|
| msg224114 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2014年07月27日 10:08 | |
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.
|
|||
| msg224115 - (view) | Author: Eric V. Smith (eric.smith) * (Python committer) | Date: 2014年07月27日 10:11 | |
I agree that Decimal is wrong here. PEP 3101 says the result should include the trailing '%'. |
|||
| msg225510 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月18日 22:45 | |
I guess it's the right thing to do and here's a patch. Could one of you double check the decimal.py part? |
|||
| msg225519 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2014年08月19日 07:39 | |
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. |
|||
| msg225763 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月23日 21:08 | |
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. |
|||
| msg225926 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年08月26日 18:50 | |
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 |
|||
| msg225927 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年08月26日 19:55 | |
Looks like there is a bug of some sort, eg: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.4/builds/466 |
|||
| msg225928 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月26日 20:12 | |
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. |
|||
| msg225932 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月26日 22:00 | |
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. |
|||
| msg225935 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年08月26日 22:32 | |
As long as you have a plan to get the buildbots fixed in a timely fashion. |
|||
| msg225936 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年08月26日 22:33 | |
(To be clear, I'm talking about the stable buildbots :) |
|||
| msg225939 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月27日 00:41 | |
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. |
|||
| msg225947 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年08月27日 06:01 | |
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. |
|||
| msg225976 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月27日 11:58 | |
The revisions that cause the bot to go red (6c468df214dc and 227ce85bdbe0) are quite recent, so I suggest we address the failure in #22285. |
|||
| msg225987 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年08月27日 14:00 | |
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). |
|||
| msg225993 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2014年08月27日 15:27 | |
> 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). |
|||
| msg225997 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年08月27日 15:55 | |
Yeah, right now that's fine. We'll work out the more strict process if/when we start actually enforcing it :) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:06 | admin | set | github: 66288 |
| 2021年10月23日 21:13:11 | yaubi | set | nosy:
- yaubi |
| 2014年08月27日 15:56:00 | r.david.murray | set | messages: + msg225997 |
| 2014年08月27日 15:27:40 | skrah | set | messages: + msg225993 |
| 2014年08月27日 14:00:54 | r.david.murray | set | messages: + msg225987 |
| 2014年08月27日 11:58:02 | skrah | set | messages: + msg225976 |
| 2014年08月27日 06:01:46 | r.david.murray | set | messages: + msg225947 |
| 2014年08月27日 00:41:18 | skrah | set | messages: + msg225939 |
| 2014年08月26日 22:33:24 | r.david.murray | set | messages: + msg225936 |
| 2014年08月26日 22:32:48 | r.david.murray | set | messages: + msg225935 |
| 2014年08月26日 22:00:13 | skrah | set | status: open -> closed messages: + msg225932 |
| 2014年08月26日 20:12:15 | skrah | set | messages: + msg225928 |
| 2014年08月26日 19:55:40 | r.david.murray | set | status: closed -> open nosy: + r.david.murray messages: + msg225927 |
| 2014年08月26日 19:02:22 | skrah | set | status: open -> closed stage: resolved resolution: fixed components: + Library (Lib) versions: + Python 2.7, Python 3.4 |
| 2014年08月26日 18:50:52 | python-dev | set | nosy:
+ python-dev messages: + msg225926 |
| 2014年08月23日 21:08:31 | skrah | set | messages: + msg225763 |
| 2014年08月19日 07:39:49 | mark.dickinson | set | messages: + msg225519 |
| 2014年08月18日 22:45:43 | skrah | set | files:
+ issue22090.diff keywords: + patch messages: + msg225510 |
| 2014年07月29日 03:40:04 | yaubi | set | nosy:
+ yaubi |
| 2014年07月27日 10:11:02 | eric.smith | set | messages: + msg224115 |
| 2014年07月27日 10:08:43 | mark.dickinson | create | |