1. 03 Jul, 2004 5 commits
    • Vinay Sajip's avatar
      Changed basicConfig() to add keyword arguments. Changes are backward-compatible. · 779e0c93
      Vinay Sajip authored
      Added error checking to log() to check that level is an integer, and raise a TypeError if not (as long as raiseExceptions is set).
      Minor documentation corrections.
      779e0c93
    • Vinay Sajip's avatar
      Moved example section up to just after the section on Logger objects, and... · a13c60b8
      Vinay Sajip authored
      Moved example section up to just after the section on Logger objects, and changed it to use the new basicConfig() API
      a13c60b8
    • Raymond Hettinger's avatar
      Work through several open todos: · d9c0a7ae
      Raymond Hettinger authored
      * Added test for pickling contexts
      * Renamed ExceptionList to Signals (to match wording in the spec)
      * Simplified Context constructor by allowing flags=None to automatically
        generate a zeroed-out flags dictionary.
      * inlined _convertString() which was used only once
      * _rounding_decision is private, so excluded its contants from __all__.
      * added an XXX comment with concerns about subclassing signals results in
        a deviation from the spec (maybe important, maybe not).
      * Taught the test_suite to determine its own directory (modeled after code
        in regrtest.py).  Enables it to be run when the current directory is not
        the test directory.
      * Added a clear_flags() method to the Context API to make it easier to do
        a common operation with flags.
      * Fixed the trap_enablers defaults in BasicDefaultContext to match the spec.
      d9c0a7ae
    • Brett Cannon's avatar
      Clarify last added comment (bug #754449). · 41d13f61
      Brett Cannon authored
      41d13f61
    • Brett Cannon's avatar
      threading.Thread objects will now print a traceback for an exception raised · cc4e935e
      Brett Cannon authored
      during interpreter shutdown instead of masking it with another traceback about
      accessing a NoneType when trying to print the exception out in the first place.
      
      Closes bug #754449 (using patch #954922).
      cc4e935e
  2. 02 Jul, 2004 9 commits
    • Mark Hammond's avatar
      Patch [ 983775 ] Allow bdist_wininst to install for non-admin users · f9bfdd85
      Mark Hammond authored
      to address bugs:
      [ 555812 ] installing extension w/o admin rights
      [ 555810 ] removing extensions without admin rights
      
      * When enumerating the Python versions found, also remember the HKEY
        they were found under.
      * When installing, if Python was installed under HKCU, we will too.
        If Python was installed under HKLM, we check the permissions of
        the current user, and install where we can.
      * The "root" key we use is a global variable - all registry setting and
        delete functions use this global rather than a hardcoded HKLM.
      * A new entry is written to the install log, indicating the key we used.
        Uninstallation is based on this key.
      * 'tempnam()' is used rather than 'tmpnam()' - 'tmpnam' creates a temp
        file on the root of the current drive, and if this is readonly would
        explain the 'freopen' errors occasionally reported. 'tempnam'
        creates the temp file in the %TEMP% directory.
      f9bfdd85
    • Walter Dörwald's avatar
      59ad4568
    • Fred Drake's avatar
      Make weak references subclassable: · 0a4dd390
      Fred Drake authored
      - weakref.ref and weakref.ReferenceType will become aliases for each
        other
      
      - weakref.ref will be a modern, new-style class with proper __new__
        and __init__ methods
      
      - weakref.WeakValueDictionary will have a lighter memory footprint,
        using a new weakref.ref subclass to associate the key with the
        value, allowing us to have only a single object of overhead for each
        dictionary entry (currently, there are 3 objects of overhead per
        entry: a weakref to the value, a weakref to the dictionary, and a
        function object used as a weakref callback; the weakref to the
        dictionary could be avoided without this change)
      
      - a new macro, PyWeakref_CheckRefExact(), will be added
      
      - PyWeakref_CheckRef() will check for subclasses of weakref.ref
      
      This closes SF patch #983019.
      0a4dd390
    • Thomas Heller's avatar
      Update info about the windows build. · 81391404
      Thomas Heller authored
      81391404
    • Thomas Heller's avatar
      SF #951851 fixed. · 04c673b6
      Thomas Heller authored
      04c673b6
    • Thomas Heller's avatar
      When importing an extension on Windows, the code reads the PE 'import · 1df04617
      Thomas Heller authored
      table' of the dll, to make sure that the dll really was build for the
      correct Python version.  It does this by looking for an entry
      'pythonXY.dll' (X.Y is the Python version number).
      
      The code now checks the size of the dll's import table before reading
      entries from it.  Before this patch, the code crashed trying to read
      the import table when the size was zero (as in Win2k's wmi.dll, for
      example).
      
      Look for imports of 'pythonXY_d.dll' in a debug build instead of
      'pythonXY.dll'.
      
      Fixes SF 951851: Crash when reading "import table" of certain windows dlls.
      
      Already backported to the 2.3 branch.
      1df04617
    • Thomas Heller's avatar
      Fix for SF 982215: bdist_wininst - Next button not greyed out during file copy. · 32b8f805
      Thomas Heller authored
      Patch from Mark Hammond.
      Recompiled binary.
      
      Already packported to the 2.3 branch.
      32b8f805
    • Raymond Hettinger's avatar
      SF Bug #215126: Over restricted type checking on eval() function · 214b1c3a
      Raymond Hettinger authored
      The builtin eval() function now accepts any mapping for the locals argument.
      Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing
      down the normal case.  My timings so no measurable impact.
      214b1c3a
    • Skip Montanaro's avatar
      add cp866 row · 78bace74
      Skip Montanaro authored
      78bace74
  3. 01 Jul, 2004 11 commits
  4. 30 Jun, 2004 4 commits
  5. 29 Jun, 2004 11 commits