- 14 Haz, 2001 4 kayıt (commit)
-
-
Tim Peters yazdı
significant digits sign bits. Again no change in semantics.
-
Tim Peters yazdı
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 yazdı
-
Tim Peters yazdı
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 Haz, 2001 11 kayıt (commit)
-
-
Tim Peters yazdı
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 yazdı
semantic change, but a bit clearer and may help a really stupid compiler avoid pointless runtime length conversions.
-
Tim Peters yazdı
truly needed; usually saves a little time, but no change in semantics.
-
Tim Peters yazdı
outside the function's control, but is crucial to correct operation.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Marc-André Lemburg yazdı
about this...
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Tim Peters yazdı
Repaired that, and added appropriate tests for it to test_struct.py.
-
Tim Peters yazdı
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 Haz, 2001 9 kayıt (commit)
-
-
Tim Peters yazdı
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 yazdı
clarity. Should have no effect visible to callers.
-
Guido van Rossum yazdı
-
Marc-André Lemburg yazdı
still set to python2.0 ...
-
Fred Drake yazdı
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 yazdı
-
Fred Drake yazdı
references did not get updated when the notes were renumbered in a previous update. This fixes SF bug #432208.
-
Tim Peters yazdı
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 yazdı
K. O'Brien on idle-dev. (Should other bindings follow suit?)
-
- 11 Haz, 2001 8 kayıt (commit)
-
-
Tim Peters yazdı
_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 yazdı
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 yazdı
-
Tim Peters yazdı
in native mode on platforms that don't HAVE_LONG_LONG.
-
Tim Peters yazdı
not just to alignment. Spotted by Guido. Bugfix candidate.
-
Thomas Wouters yazdı
on (some versions of ?) AIX.
-
Fred Drake yazdı
a reference to these functions and popen() from the "Process Management" section. Based on a suggestion from comp.lang.python.
-
Fred Drake yazdı
-
- 10 Haz, 2001 5 kayıt (commit)
-
-
Tim Peters yazdı
-
Tim Peters yazdı
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 yazdı
-
Tim Peters yazdı
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.
-
Peter Schneider-Kamp yazdı
-
- 09 Haz, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
Armin Rigo pointed out that the way the line-# table got built didn't work for lines generating more than 255 bytes of bytecode. Fixed as he suggested, plus corresponding changes to pyassem.py, plus added some long overdue docs about this subtle table to compile.c. Bugfix candidate (line numbers may be off in tracebacks under -O).
-
Martin v. Löwis yazdı
This fixes bug #431557.
-
Martin v. Löwis yazdı
case of objects with equal types which support tp_compare. Give type objects a tp_compare function. Also add c<0 tests before a few PyErr_Occurred tests.
-