- 23 Şub, 2010 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 22 Şub, 2010 1 kayıt (commit)
-
-
Eric Smith yazdı
Issue #7988: Fix default alignment to be right aligned for complex.__format__. Now it matches other numeric types.
-
- 29 Kas, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.
-
- 23 Kas, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
%f-style formatting, which used to occur at high precision. Float formatting should now be consistent between 2.7 and 3.1.
-
- 30 Tem, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 27 Tem, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 05 May, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
-
- 02 May, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 30 Nis, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 22 Nis, 2009 2 kayıt (commit)
-
-
Eric Smith yazdı
-
Eric Smith yazdı
int, long, and float __format__(), and it keeps their implementation in sync with py3k. Also added PyOS_double_to_string. This is the "fallback" version that's also available in trunk, and should be kept in sync with that code. I'll add an issue to document PyOS_double_to_string in the C API. There are many internal cleanups. Externally visible changes include: - Implement PEP 378, Format Specifier for Thousands Separator, for floats, ints, and longs. - Issue #5515: 'n' formatting for ints, longs, and floats handles leading zero formatting poorly. - Issue #5772: For float.__format__, don't add a trailing ".0" if we're using no type code and we have an exponent.
-
- 13 Nis, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice.
-
- 29 Mar, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
with fabs(x) >= 1e50, and fix documentation.
-
- 20 Şub, 2009 1 kayıt (commit)
-
-
Eric Smith yazdı
Issue #5247: Improve error message when unknown format codes are used when using str.format() with str, unicode, long, int, and float arguments.
-
- 24 Agu, 2008 1 kayıt (commit)
-
-
Neal Norwitz yazdı
* crashes on memory allocation failure found with failmalloc * memory leaks found with valgrind * compiler warnings in opt mode which would lead to invalid memory reads * problem using wrong name in decimal module reported by pychecker Update the valgrind suppressions file with new leaks that are small/one-time leaks we don't care about (ie, they are too hard to fix). TBR=barry TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes) in opt mode: valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \ -x test_logging test_ssl test_multiprocessing valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing for i in `seq 1 4000` ; do LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \ ./python -c pass done At least some of these fixes should probably be backported to 2.5.
-
- 17 Tem, 2008 2 kayıt (commit)
-
-
Eric Smith yazdı
-
Eric Smith yazdı
-
- 16 Tem, 2008 2 kayıt (commit)
-
-
Eric Smith yazdı
Renamed a parameter in calc_number_widths, for consistency with the same parameter in fill_non_digits.
-
Eric Smith yazdı
-
- 15 Tem, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Added '#' formatting to integers. This adds the 0b, 0o, or 0x prefix for bin, oct, hex. There's still one failing case, and I need to finish the docs. I hope to finish those today.
-
- 24 Haz, 2008 3 kayıt (commit)
-
-
Eric Smith yazdı
-
Eric Smith yazdı
-
Eric Smith yazdı
Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140.
-
- 30 May, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
-
- 26 May, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 11 May, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Adds 'n' as a format specifier for integers, to mirror the same specifier which is already available for floats. 'n' is the same as 'd', but inserts the current locale-specific thousands grouping. I added this as a stringlib function, but it's only used by str type, not unicode. This is because of an implementation detail in unicode.format(), which does its own str->unicode conversion. But the unicode version will be needed in 3.0, and it may be needed by other code eventually in 2.6 (maybe decimal?), so I left it as a stringlib implementation. As long as the unicode version isn't instantiated, there's no overhead for this.
-
- 07 Nis, 2008 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 17 Mar, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Added "Z" format_char to PyOS_ascii_formatd to support empty float presentation type. Renamed buf_size in PyOS_ascii_formatd to more accurately reflect it's meaning. Modified format.__float__ to use the new "Z" format as the default. Added test cases.
-
- 20 Şub, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Now that PyOS_ascii_formatd supports the 'n' format, simplify the float formatting code to just call it.
-
- 17 Şub, 2008 1 kayıt (commit)
-
-
Eric Smith yazdı
Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k).
-