| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Includes extensive test cases to catch hopefully all cases where
buffer might overflow.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These functions will raise 'ValueError: math domain error' on invalid
input.
|
|
|
|
|
|
|
|
Fixes #1435.
|
|
Eg 0e0 almost looks like a hex number but in fact is a float.
|
|
|
|
|
|
|
|
|
|
|
|
C's printf will pad nan/inf differently to CPython. Our implementation
originally conformed to C, now it conforms to CPython's way.
Tests for this are also added in this patch.
|
|
This allows using (almost) the same code for printing floats everywhere,
removes the dependency on sprintf and uses just snprintf and
applies an msvc-specific fix for snprintf in a single place so
nan/inf are now printed correctly.
|
|
|
|
|
|
|
|
|
|
|
|
This is intended to improve coverage of the test suite.
|
|
|
|
The aim here is to improve coverage of the code.
|
|
|
|
|
|
|
|
|
|
|
|
Previous to this patch, a big-int, float or imag constant was interned
(made into a qstr) and then parsed at runtime to create an object each
time it was needed. This is wasteful in RAM and not efficient. Now,
these constants are parsed straight away in the parser and turned into
objects. This allows constants with large numbers of digits (so
addresses issue #1103) and takes us a step closer to #722.
|
|
|
|
|
|
Used gcov to find some parts of vm.c, runtime.c, obj.c that were not
covered by any tests. Still need to use gcov more thoroughly.
|
|
- This then provides support for floats in the struct package
|
|
- Tests vary based on build configuration (32/64-bit and internal int type).
- Added tests for exceptions raised on overflow of int type.
|
|
Addresses issue #1081.
|
|
|
|
Addresses issue #1044 (see also #1040). Could do with a better fix.
|