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 2013年04月16日 20:05 by skrah, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| decimal_newline_fillchar.diff | skrah, 2013年04月16日 20:05 | review | ||
| issue17768.diff | skrah, 2013年05月29日 11:35 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg187119 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2013年04月16日 20:05 | |
Making the _decimal part of #17705 a separate issue. I noticed that decimal.py does not allow a newline as a fill character: Python 3.3.0rc2+ (default:50dd7426b880, Sep 25 2012, 15:52:28) [GCC 4.4.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.modules['_decimal'] = None >>> from decimal import * >>> format(Decimal(123), "\n<10") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.3/decimal.py", line 3768, in __format__ spec = _parse_format_specifier(specifier, _localeconv=_localeconv) File "/usr/local/lib/python3.3/decimal.py", line 6176, in _parse_format_specifier raise ValueError("Invalid format specifier: " + format_spec) ValueError: Invalid format specifier: <10 The feature isn't particularly useful, but it would be easiest for _decimal to support it rather than having another special case. Are you okay with the decimal.py patch? |
|||
| msg187164 - (view) | Author: Ramchandra Apte (Ramchandra Apte) * | Date: 2013年04月17日 14:10 | |
Yes. |
|||
| msg190291 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2013年05月29日 11:35 | |
Here's a baroque patch for _decimal. It's complicated by the fact that there's no way of knowing what kind of UTF-8 fragments might be hidden in multi-byte separators or decimal points. |
|||
| msg190307 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年05月29日 13:48 | |
New changeset 9156c663d6aa by Stefan Krah in branch '3.3': Issue #17768: Support newline fill character in decimal.py and NUL fill http://hg.python.org/cpython/rev/9156c663d6aa |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:44 | admin | set | github: 61968 |
| 2013年05月29日 14:00:46 | skrah | set | status: open -> closed resolution: fixed |
| 2013年05月29日 13:48:40 | python-dev | set | nosy:
+ python-dev messages: + msg190307 |
| 2013年05月29日 11:35:48 | skrah | set | files:
+ issue17768.diff messages: + msg190291 |
| 2013年04月17日 14:10:41 | Ramchandra Apte | set | nosy:
+ Ramchandra Apte messages: + msg187164 |
| 2013年04月16日 20:05:33 | skrah | create | |