summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
Commit message (Collapse)AuthorAgeFilesLines
* Closes #17202: Merge with 3.4Zachary Ware2015-04-131-111/+111
|\
| * Issue #17202: Add .bat to .hgeol to force them to CRLF.Zachary Ware2015-04-131-111/+111
| | | | | | | | | | Using LF can a script to fail if it tries to use a label that is split across 512 byte blocks. Who knows why.
* | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
|\ \ | |/ | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
| | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-281-2/+2
| | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | Issue #19232: Speed up decimal import. Additionally, since _decimal isStefan Krah2014-09-101-3/+4
| | | | | | | | | | self-contained, this change facilitates maintenance and the Python version can be easily imported for experimentation.
* | Merge 3.4.Stefan Krah2014-08-262-4/+8
|\ \ | |/
| * Introduce and check for MPD_VERSION_HEX for precise management of buildsStefan Krah2014-08-262-4/+8
| | | | | | | | with an external libmpdec.
* | Merge 3.4.Stefan Krah2014-08-261-4/+7
|\ \ | |/
| * Issue #22090: Fix '%' formatting for infinities and NaNs.Stefan Krah2014-08-261-4/+7
| |
| * Issue #21374: Fix pickling of DecimalTuple.Stefan Krah2014-04-291-4/+9
| |
* | Use $type instead of $cls in the signature specification.Stefan Krah2014-05-021-1/+1
| |
* | Issue #21407: _decimal now supports function signatures.Stefan Krah2014-05-011-378/+482
| |
* | Issue #21374: Fix pickling of DecimalTuple.Stefan Krah2014-04-291-4/+9
|/
* remove unused zero constantsBenjamin Peterson2014-03-151-3/+0
|
* Issue #19936: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-162-0/+0
| | | | test files.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-0/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* Issue #19936: Disable shebang lines in order to prevent using a randomStefan Krah2014-01-163-6/+0
| | | | system python.
* Whitespace.Stefan Krah2014-01-041-3/+3
|
* Issue #19986: Avoid an incorrect warning of older gcc versions.Stefan Krah2013-12-151-3/+4
|
* Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subvertedStefan Krah2013-12-141-9/+11
| | | | | by including stdint.h before mpdecimal.h. In that case the only option left is to compile with -D_STDC_LIMIT_MACROS.
* Do not discard const qualifier without a reason.Stefan Krah2013-12-121-7/+7
|
* Fix two typos.Stefan Krah2013-12-082-2/+2
|
* Missed one copyright.Stefan Krah2013-12-081-1/+1
|
* Update copyright. The four year increment is intentional (to save work).Stefan Krah2013-12-0833-33/+33
|
* Make a couple of parameters constant.Stefan Krah2013-12-032-14/+14
|
* 1) Prepare libmpdec for the 2.4.0 release. None of the following changes ↵Stefan Krah2013-11-243-36/+326
| | | | | | | | | | | | | | | | | | affects _decimal: o Make all "mpd_t to C integer" conversion functions available in both the 64-bit and the 32-bit versions. o Make all mixed mpd_t/C integer arithmetic functions available in the 32-bit version. o Better handling of __STDC_LIMIT_MACROS for C++ users. o Add struct tags (at the request of C++ users). 2) Check for libmpdec.so.2 if --with-system-libmpdec is used.
* Move PyErr_NoMemory() closer to the failure.Stefan Krah2013-11-081-1/+1
|
* Change style to match the surrounding code (no early returns).Stefan Krah2013-11-081-4/+3
|
* Issue #19437: Fix dec_format() of the _decimal module, handle dec_strdup()Victor Stinner2013-10-291-0/+1
| | | | failure (memory allocation failure): raise a MemoryError exception
* Issue #19437: Fix convert_op_cmp() of decimal.Decimal rich comparator, handleVictor Stinner2013-10-291-10/+17
| | | | PyObject_IsInstance() failure
* Support multiarch build in tests.Stefan Krah2013-05-291-7/+8
|
* Backport bff16086f03b and bcaaaa00425b.Stefan Krah2013-05-291-5/+5
|
* Issue #17768: Support newline fill character in decimal.py and NUL fillStefan Krah2013-05-293-15/+59
| | | | character in _decimal.c.
* Fix a few typos and a double semicolon. Patch by Eitan Adler.Ezio Melotti2013-01-271-1/+1
|
* Since the return type of format() is not a Decimal, raise ValueError instead ofStefan Krah2013-01-241-1/+7
| | | | | InvalidOperation if the format specification (width, prec) exceeds the internal limits of libmpdec.
* Remove trailing whitespace.Stefan Krah2013-01-1611-23/+23
|
* Issue #16422: Use strings for rounding mode constants for better readabilityStefan Krah2013-01-162-87/+69
| | | | and pickling compatibility.
* Issue #16753: Define __GNUC_STDC_INLINE__ to an integer (same as gcc).Stefan Krah2012-12-231-1/+1
|
* Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.Stefan Krah2012-12-221-1/+2
|
* Fix Visual Studio build.Stefan Krah2012-12-221-0/+3
|
* Issue #16745: Hide symbols in _decimal.so.Stefan Krah2012-12-2212-1/+95
|
* Issue #16745: Hide a couple of symbols by making them local.Stefan Krah2012-12-212-8/+8
|
* Issue #15783: Support None default values in the Context() constructor.Stefan Krah2012-12-161-30/+33
|
* Issue #15783: Except for the number methods, the C version of decimal nowStefan Krah2012-12-154-178/+267
| | | | | supports all None default values present in decimal.py. These values were largely undocumented.
* Accept Unicode legacy strings in the Decimal constructor.Stefan Krah2012-11-101-1/+3
|
* Issue #16431: Finally, consider all permutations.Stefan Krah2012-11-081-2/+2
|
* Issue #16431: Also fix the opposite direction.Stefan Krah2012-11-071-1/+1
|
* Issue #16431: Use the type information when constructing a Decimal subtypeStefan Krah2012-11-071-2/+27
| | | | from a Decimal argument.
* Support gcc's -ansi flag: use "__asm__" instead of "asm".Stefan Krah2012-09-302-94/+94
|