- 10 Jun, 2001 4 commits
-
-
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.
-
Peter Schneider-Kamp authored
-
- 09 Jun, 2001 3 commits
-
-
Tim Peters authored
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 authored
This fixes bug #431557.
-
Martin v. Löwis authored
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.
-
- 08 Jun, 2001 7 commits
-
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
need to understand about the binary & decimal fp, so that representation weirdness is documented somewhere. This makes it easier to repond to "bug" reports caused by user confusion & ignorance of the issues. This closes SF patch #426208.
-
Skip Montanaro authored
module is __main__ and once when module is imported.
-
Fred Drake authored
about setting up the dispatch table, and update the OldProfile and HotProfile classes to the current implementations, showing the adjusted construction for the dispatch table.
-
Fred Drake authored
that should be used to cache an interned version of the event string passed to the profile/trace function. call_trace() will create interned strings and cache them in using the storage specified by this additional parameter, avoiding a lot of string object creation at runtime when using the profiling or tracing functions. All call sites are modified to pass the additional parameter, and four static PyObject* variables are allocated to cache the interned string objects. This closes SF patch #431257.
-
Fred Drake authored
Ensure that all the default timers are called as functions, not an expensive method wrapper around a variety of different functions. Agressively avoid dictionary lookups. Modify the dispatch scheme (Profile.trace_dispatch_*(), where * is not 'call', 'exception' or 'return') so that the callables dispatched to are simple functions and not bound methods -- this reduces the number of layers of Python call machinery that gets touched. Remove a couple of duplicate imports from the "if __name__ == ..." section. This closes SF patch #430948.
-
- 07 Jun, 2001 8 commits
-
-
Martin v. Löwis authored
with the addition of the euro character. Also added a few EDBDIC aliases.
-
Martin v. Löwis authored
-
Peter Schneider-Kamp authored
use faster code for base64.encodestring (courtesy of Mr. Tim Peters) and for base64.decodestring (courtesy of Anthony Baxter)
-
Martin v. Löwis authored
-
Marc-André Lemburg authored
-
Martin v. Löwis authored
-
Peter Schneider-Kamp authored
-
Martin v. Löwis authored
-
- 06 Jun, 2001 6 commits
-
-
Guido van Rossum authored
Makefile and used by the setup.py script. Ignore it in .cvsignore; remove it in "make clobber".
-
Fred Drake authored
Add reference to the documentation for the Python documentation markup. Fixed up a couple of descriptions. This closes SF bug #430627.
-
Fred Drake authored
Suggested by the comments in SF bug #430627.
-
Guido van Rossum authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
- 05 Jun, 2001 5 commits
-
-
Martin v. Löwis authored
Also protect against multiple inclusion.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Tim Peters authored
(Just a change to a comment)
-
Fred Drake authored
the availability of nested scoping in Python 2.1 and 2.2.
-
- 04 Jun, 2001 5 commits
-
-
Guido van Rossum authored
config.txt). *** This is a bugfix-release candidate (for 2.1.1 and 2.0.1)! ***
-
Tim Peters authored
frequently used, and in particular this allows to drop the last remaining obvious time-waster in the crucial lookdict() and lookdict_string() functions. Other changes consist mostly of changing "i < ma_size" to "i <= ma_mask" everywhere.
-
Skip Montanaro authored
-
Fred Drake authored
-
Mark Hammond authored
-
- 03 Jun, 2001 2 commits
-
-
Martin v. Löwis authored
-
Martin v. Löwis authored
- actually return a result - Compare with tag.localName in getElementsByTagNameNSHelper
-