1. 09 May, 2001 28 kayıt (commit)
  2. 08 May, 2001 11 kayıt (commit)
    • Tim Peters's avatar
      Intern 1-character strings as soon as they're created. As-is, they aren't · 5b4d4775
      Tim Peters yazdı
      interned when created, so the cached versions generally aren't ever
      interned.  With the patch, the
      		Py_INCREF(t);
      		*p = t;
      		Py_DECREF(s);
      		return;
      indirection block in PyString_InternInPlace() is never executed during a
      full run of the test suite, but was executed very many times before.  So
      I'm trading more work when creating one-character strings for doing less
      work later.  Note that the "more work" here can happen at most 256 times
      per program run, so it's trivial.  The same reasoning accounts for the
      patch's simplification of string_item (the new version can call
      PyString_FromStringAndSize() no more than 256 times per run, so there's
      no point to inlining that stuff -- if we were serious about saving time
      here, we'd pre-initialize the characters vector so that no runtime testing
      at all was needed!).
      5b4d4775
    • Tim Peters's avatar
    • Tim Peters's avatar
      SF bug #422177: Results from .pyc differs from .py · 72f98e9b
      Tim Peters yazdı
      Store floats and doubles to full precision in marshal.
      Test that floats read from .pyc/.pyo closely match those read from .py.
      Declare PyFloat_AsString() in floatobject header file.
      Add new PyFloat_AsReprString() API function.
      Document the functions declared in floatobject.h.
      72f98e9b
    • Jack Jansen's avatar
      Removed some confusing sentences that are no longer relevant now that · 569c09c0
      Jack Jansen yazdı
      calldll is part of the standard macPython distribution.
      569c09c0
    • Fred Drake's avatar
      Michael Hudson <mwh21@cam.ac.uk>: · a6140be7
      Fred Drake yazdı
      Documentation update to reflect changes to the termios module (noting
      that the termios functions can take a file object as well as a file
      descriptor).
      
      This closes the documentation portion of SF patch #417081.
      a6140be7
    • Tim Peters's avatar
      SF patch #421922: Implement rich comparison for dicts. · e63415ea
      Tim Peters yazdı
      d1 == d2 and d1 != d2 now work even if the keys and values in d1 and d2
      don't support comparisons other than ==, and testing dicts for equality
      is faster now (especially when inequality obtains).
      e63415ea
    • Jeremy Hylton's avatar
      Fix several bugs and add two features. · 66a7e57c
      Jeremy Hylton yazdı
      Assertion error message had typos in arguments to string format.
      
      .cover files for modules in packages are now put in the right place.
      
      The code that generate .cover files seemed to prepend a "./" to many
      absolute paths, causing them to fail.  The code now checks explicitly
      for absolute paths and leaves them alone.
      
      In trace/coverage code, recover from case where module has no __name__
      attribute, when e.g. it is executed by PyRun_String().  In this case,
      assign modulename to None and hope for the best.  There isn't anywhere
      to write out coverage data for this code anyway.
      
      Also, replace several sys.stderr.writes with print >> sys.stderr.
      
      New features:
      
      -C/--coverdir dir: Generate .cover files in specified directory
      instead of in the directory where the .py file is.
      
      -s: Print a short summary of files coverred (# lines, % coverage,
      name)
      66a7e57c
    • Jeremy Hylton's avatar
      Several small changes. Mostly reformatting, adding parens. · 9c90105c
      Jeremy Hylton yazdı
      Check for free in class and method only if nested scopes are enabled.
      
      Add assertion to verify that no free variables occur when nested
      scopes are disabled.
      
      XXX When should nested scopes by made non-optional on the trunk?
      9c90105c
    • Jeremy Hylton's avatar
      SF patch 419176 from MvL; fixed bug 418977 · 4c889011
      Jeremy Hylton yazdı
      Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().
      4c889011
    • Jeremy Hylton's avatar
      Remove unused variable · d37292bb
      Jeremy Hylton yazdı
      d37292bb
    • Tim Peters's avatar
      This is a test showing SF bug 422177. It won't trigger until I check in · 7ae2229a
      Tim Peters yazdı
      another change (to test_import.py, which simply imports the new file).  I'm
      checking this piece in now, though, to make it easier to distribute a patch
      for x-platform checking.
      7ae2229a
  3. 07 May, 2001 1 kayıt (commit)