Zachary Ware
4c9c848159
Issue #17202 : Add .bat to .hgeol to force them to CRLF.
Using LF can a script to fail if it tries to use a label that is
split across 512 byte blocks. Who knows why.
11 years ago
Serhiy Storchaka
a60c2fe480
Issue #23641 : Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
11 years ago
Serhiy Storchaka
20b39b27d9
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673 ).
11 years ago
Stefan Krah
b578f8a1ef
Issue #19232 : Speed up decimal import. Additionally, since _decimal is
self-contained, this change facilitates maintenance and the Python version
can be easily imported for experimentation.
11 years ago
Stefan Krah
cf26115651
Introduce and check for MPD_VERSION_HEX for precise management of builds
with an external libmpdec.
12 years ago
Stefan Krah
298131a448
Issue #22090 : Fix '%' formatting for infinities and NaNs.
12 years ago
Stefan Krah
6b7786bac2
Use $type instead of $cls in the signature specification.
12 years ago
Stefan Krah
5de1f82464
Issue #21407 : _decimal now supports function signatures.
12 years ago
Stefan Krah
8fb74a35da
Issue #21374 : Fix pickling of DecimalTuple.
12 years ago
Stefan Krah
f1d4e42195
Issue #21374 : Fix pickling of DecimalTuple.
12 years ago
Benjamin Peterson
ce68c19ee7
remove unused zero constants
12 years ago
Serhiy Storchaka
7f470d0f9c
Issue #19936 : Remove executable bits from C source files and several forgotten
test files.
12 years ago
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
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.
12 years ago
Stefan Krah
16540408f4
Issue #19936 : Disable shebang lines in order to prevent using a random
system python.
12 years ago
Stefan Krah
0455c3fd28
Whitespace.
12 years ago
Stefan Krah
1f1ec12db9
Issue #19986 : Avoid an incorrect warning of older gcc versions.
12 years ago
Stefan Krah
01e5f800b4
Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subverted
by including stdint.h before mpdecimal.h. In that case the only option left
is to compile with -D_STDC_LIMIT_MACROS.
12 years ago
Stefan Krah
da12adac10
Do not discard const qualifier without a reason.
12 years ago
Stefan Krah
37d4e0be3d
Fix two typos.
12 years ago
Stefan Krah
42e3b607cb
Missed one copyright.
12 years ago
Stefan Krah
ecff6554d3
Update copyright. The four year increment is intentional (to save work).
12 years ago
Stefan Krah
4b7f7acf30
Make a couple of parameters constant.
12 years ago
Stefan Krah
b1e4c9d104
Make a couple of parameters constant.
12 years ago
Stefan Krah
45059eb1d0
1) Prepare libmpdec for the 2.4.0 release. None of the following changes 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.
12 years ago
Stefan Krah
2fdf4e7b9b
Move PyErr_NoMemory() closer to the failure.
12 years ago
Stefan Krah
f35b0274f9
Move PyErr_NoMemory() closer to the failure.
12 years ago
Stefan Krah
a0fd1f5a18
Change style to match the surrounding code (no early returns).
12 years ago
Stefan Krah
5ec6be9b50
Change style to match the surrounding code (no early returns).
12 years ago
Victor Stinner
ac470854b8
Issue #19437 : Fix dec_format() of the _decimal module, handle dec_strdup()
failure (memory allocation failure): raise a MemoryError exception
12 years ago
Victor Stinner
34f7383d7a
Issue #19437 : Fix dec_format() of the _decimal module, handle dec_strdup()
failure (memory allocation failure): raise a MemoryError exception
12 years ago
Victor Stinner
a992e11fe3
Issue #19437 : Fix convert_op_cmp() of decimal.Decimal rich comparator, handle
PyObject_IsInstance() failure
12 years ago
Victor Stinner
1ce3f840be
Issue #19437 : Fix convert_op_cmp() of decimal.Decimal rich comparator, handle
PyObject_IsInstance() failure
12 years ago
Stefan Krah
04754b0fd4
Support multiarch build in tests.
13 years ago
Stefan Krah
891ca9e06a
Backport bff16086f03b and bcaaaa00425b.
13 years ago
Stefan Krah
6edda14b29
Issue #17768 : Support newline fill character in decimal.py and NUL fill
character in _decimal.c.
13 years ago
Stefan Krah
a0547b8ac4
Mark untestable lines for gcov.
13 years ago
Ezio Melotti
3f5db3940f
Fix a few typos and a double semicolon. Patch by Eitan Adler.
13 years ago
Stefan Krah
eb8c451bd2
Since the return type of format() is not a Decimal, raise ValueError instead of
InvalidOperation if the format specification (width, prec) exceeds the internal
limits of libmpdec.
13 years ago
Stefan Krah
752bfb71d8
Remove trailing whitespace.
13 years ago
Stefan Krah
59a4a93f43
Issue #16422 : Use strings for rounding mode constants for better readability
and pickling compatibility.
13 years ago
Stefan Krah
e3dff55a5e
Issue #16753 : Define __GNUC_STDC_INLINE__ to an integer (same as gcc).
13 years ago
Stefan Krah
f03eee12b4
Issue #16745 : The gcc visibility pragma is buggy on OpenIndiana and NetBSD.
13 years ago
Stefan Krah
66a6f3fa81
Fix Visual Studio build.
13 years ago
Stefan Krah
fdf1a34ba1
Issue #16745 : Hide symbols in _decimal.so.
13 years ago
Stefan Krah
fb7f580e81
Issue #16745 : Hide a couple of symbols by making them local.
13 years ago
Stefan Krah
9a4ff437d1
Issue #15783 : Support None default values in the Context() constructor.
13 years ago
Stefan Krah
040e311826
Issue #15783 : Except for the number methods, the C version of decimal now
supports all None default values present in decimal.py. These values were
largely undocumented.
13 years ago
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
13 years ago
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
13 years ago
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
13 years ago