- 14 Jun, 2001 8 commits
-
-
Guido van Rossum authored
-
Tim Peters authored
-
Guido van Rossum authored
some code for longer than needed.
-
Fred Drake authored
-
Tim Peters authored
significant digits sign bits. Again no change in semantics.
-
Tim Peters authored
is allocated than needed (used to allocate 80 bytes of digit space no matter how small the long input). This also runs faster, at least on 32- bit boxes.
-
Tim Peters authored
-
Tim Peters authored
the new PyLong_{As,From}{Unsigned,}LongLong tests, so the bulk of the code is in the new #include file testcapi_long.h, which generates different code depending on how macros are set. This sucks, but I couldn't think of anything that sucked less. UNIX headache? If we still maintain dependencies by hand, someone who knows what they're doing should teach whatever needs it that _testcapimodule.c includes testcapi_long.h.
-
- 13 Jun, 2001 11 commits
-
-
Tim Peters authored
Unfortunately, the std-mode bBhHIL codes don't do any range-checking; if and when some of those get fixed, remove their letters from the IntTester.BUGGY_RANGE_CHECK string. In the meantime, a msg saying that range-tests are getting skipped is printed to stdout whenever one is skipped.
-
Tim Peters authored
semantic change, but a bit clearer and may help a really stupid compiler avoid pointless runtime length conversions.
-
Tim Peters authored
truly needed; usually saves a little time, but no change in semantics.
-
Tim Peters authored
outside the function's control, but is crucial to correct operation.
-
Tim Peters authored
-
Tim Peters authored
-
Marc-André Lemburg authored
about this...
-
Jack Jansen authored
-
Jack Jansen authored
-
Tim Peters authored
Repaired that, and added appropriate tests for it to test_struct.py.
-
Tim Peters authored
Replaced PyLong_{As,From}{Unsigned,}LongLong guts with calls to _PyLong_{As,From}ByteArray. _testcapimodule.c: Added strong tests of PyLong_{As,From}{Unsigned,}LongLong. Fixes SF bug #432552 PyLong_AsLongLong() problems. Possible bugfix candidate, but the fix relies on code added to longobject to support the new q/Q structmodule format codes.
-
- 12 Jun, 2001 9 commits
-
-
Tim Peters authored
functions. I intend to replace their guts with calls to the new _PyLong_{As,From}ByteArray() functions, but AFAICT there's no tests for them at all now; I also suspect PyLong_AsLongLong() isn't catching all overflow cases, but without a std test to demonstrate that why should you believe me <wink>. Also added a raiseTestError() utility function.
-
Tim Peters authored
clarity. Should have no effect visible to callers.
-
Guido van Rossum authored
-
Marc-André Lemburg authored
still set to python2.0 ...
-
Fred Drake authored
Add a -F option similar to "cvs commit -F <file>". Add a -t option to allow specifying the prefix to the directory into which the docs should be unpacked (useful when I start trying out new styles for the presentation).
-
Marc-André Lemburg authored
-
Fred Drake authored
references did not get updated when the notes were renumbered in a previous update. This fixes SF bug #432208.
-
Tim Peters authored
This completes the q/Q project. longobject.c _PyLong_AsByteArray: The original code had a gross bug: the most-significant Python digit doesn't necessarily have SHIFT significant bits, and you really need to count how many copies of the sign bit it has else spurious overflow errors result. test_struct.py: This now does exhaustive std q/Q testing at, and on both sides of, all relevant power-of-2 boundaries, both positive and negative. NEWS: Added brief dict news while I was at it.
-
Guido van Rossum authored
K. O'Brien on idle-dev. (Should other bindings follow suit?)
-
- 11 Jun, 2001 8 commits
-
-
Tim Peters authored
_PyLong_FromByteArray _PyLong_AsByteArray Untested and probably buggy -- they compile OK, but nothing calls them yet. Will soon be called by the struct module, to implement x-platform 'q' and 'Q'. If other people have uses for them, we could move them into the public API. See longobject.h for usage details.
-
Fred Drake authored
functions -- these are not available on traditional Mac OS platforms. Corrected the version annotations for the spawn*() functions and related constants; these were added in Python 1.6, not 1.5.2.
-
Tim Peters authored
-
Tim Peters authored
in native mode on platforms that don't HAVE_LONG_LONG.
-
Tim Peters authored
not just to alignment. Spotted by Guido. Bugfix candidate.
-
Thomas Wouters authored
on (some versions of ?) AIX.
-
Fred Drake authored
a reference to these functions and popen() from the "Process Management" section. Based on a suggestion from comp.lang.python.
-
Fred Drake authored
-
- 10 Jun, 2001 4 commits
-
-
Tim Peters authored
-
Tim Peters authored
native mode, and only when config #defines HAVE_LONG_LONG. Standard mode will eventually treat them as 8-byte ints across all platforms, but that likely requires a new set of routines in longobject.c first (while sizeof(long) >= 4 is guaranteed by C, there's nothing in C we can rely on x-platform to hold 8 bytes of int, so we'll have to roll our own; I'm thinking of a simple pair of conversion functions, Python long to/from sized vector of unsigned bytes; that may be useful for GMP conversions too; std q/Q would call them with size fixed at 8). test_struct.py: In addition to adding some native-mode 'q' and 'Q' tests, got rid of unused code, and repaired a non-portable assumption about native sizeof(short) (it isn't 2 on some Cray boxes). libstruct.tex: In addition to adding a bit of 'q'/'Q' docs (more needed later), removed an erroneous footnote about 'I' behavior.
-
Jack Jansen authored
-
Tim Peters authored
Patch from Michael Hundson. format_exception_only() blew up when trying to report a SyntaxError from a string input (line is None in this case, but it assumed a string). Bugfix candidate.
-