1. 29 Jul, 2006 8 commits
  2. 28 Jul, 2006 20 commits
  3. 27 Jul, 2006 12 commits
    • Barry Warsaw's avatar
      Enable the building of the _types module on Windows. · 42cf1258
      Barry Warsaw authored
      Note that this has only been tested for VS 2003 since that's all I have.
      42cf1258
    • Tim Peters's avatar
      5452e81f
    • Tim Peters's avatar
      Whitespace normalization. · eee241a6
      Tim Peters authored
      eee241a6
    • Tim Peters's avatar
      Bug #1529297: The rewrite of doctest for Python 2.4 unintentionally · 0ee86dfb
      Tim Peters authored
      lost that tests are sorted by name before being run.  ``DocTestFinder``
      has been changed to sort the list of tests it returns.
      0ee86dfb
    • Barry Warsaw's avatar
      Patch #1520294: Support for getset and member descriptors in types.py, · 66b03ac4
      Barry Warsaw authored
      inspect.py, and pydoc.py.  Specifically, this allows for querying the type of
      an object against these built-in C types and more importantly, for getting
      their docstrings printed in the interactive interpreter's help() function.
      
      This patch includes a new built-in module called _types which provides
      definitions of getset and member descriptors for use by the types.py module.
      These types are exposed as types.GetSetDescriptorType and
      types.MemberDescriptorType.  Query functions are provided as
      inspect.isgetsetdescriptor() and inspect.ismemberdescriptor().  The
      implementations of these are robust enough to work with Python implementations
      other than CPython, which may not have these fundamental types.
      
      The patch also includes documentation and test suite updates.
      
      I commit these changes now under these guiding principles:
      
      1. Silence is assent.  The release manager has not said "no", and of the few
         people that cared enough to respond to the thread, the worst vote was "0".
      
      2. It's easier to ask for forgiveness than permission.
      
      3. It's so dang easy to revert stuff in svn, that you could view this as a
         forcing function. :)
      
      Windows build patches will follow.
      66b03ac4
    • Andrew M. Kuchling's avatar
      Add example · 22105121
      Andrew M. Kuchling authored
      22105121
    • Andrew M. Kuchling's avatar
      Add example · 102f8351
      Andrew M. Kuchling authored
      102f8351
    • Andrew M. Kuchling's avatar
      Reword paragraph · 326ae393
      Andrew M. Kuchling authored
      326ae393
    • Tim Peters's avatar
      check_node(): stop spraying mystery output to stderr. · 76b357cf
      Tim Peters authored
      When a node number disagrees, keep track of all sources & the
      node numbers they reported, and stick all that in the error message.
      
      Changed all callers to supply a non-empty "source" argument; made
      the "source" argument non-optional.
      
      On my box, test_uuid still fails, but with the less confusing output:
      
      AssertionError: different sources disagree on node:
          from source 'getnode1', node was 00038a000015
          from source 'getnode2', node was 00038a000015
          from source 'ipconfig', node was 001111b2b7bf
      
      Only the last one appears to be correct; e.g.,
      
      C:\Code\python\PCbuild>getmac
      
      Physical Address    Transport Name
      =================== ==========================================================
      00-11-11-B2-B7-BF   \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1}
      62-A1-AC-6C-FD-BE   \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A}
      E2-1F-01-C6-5D-88   \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4}
      
      I can't find anything on my box with MAC 00-03-8a-00-00-15, and am
      not clear on where that comes from.
      76b357cf
    • Andrew M. Kuchling's avatar
    • Andrew M. Kuchling's avatar
    • Andrew M. Kuchling's avatar
      de7a2111