1. 28 Feb, 2007 1 commit
  2. 27 Feb, 2007 6 commits
    • Jeremy Hylton's avatar
    • Jeremy Hylton's avatar
      Add checking for a number of metaclass error conditions. · 6d1a799d
      Jeremy Hylton authored
      We add some new rules that are required for preserving internal
      invariants of types.
      
      1.  If type (or a subclass of type) appears in bases, it must appear
          before any non-type bases.  If a non-type base (like a regular
          new-style class) occurred first, it could trick type into
          allocating the new class an __dict__ which must be impossible.
      
      2. There are several checks that are made of bases when creating a
         type.  Those checks are now repeated when assigning to __bases__.
         We also add the restriction that assignment to __bases__ may not
         change the metaclass of the type.
      
      Add new tests for these cases and for a few other oddball errors that
      were no previously tested.  Remove a crasher test that was fixed.
      
      Also some internal refactoring:  Extract the code to find the most
      derived metaclass of a type and its bases.  It is now needed in two
      places.  Rewrite the TypeError checks in test_descr to use doctest.
      The tests now clearly show what exception they expect to see.
      6d1a799d
    • Jeremy Hylton's avatar
      whitespace normalization · 7d19e116
      Jeremy Hylton authored
      7d19e116
    • Jeremy Hylton's avatar
      tabify · 22f09403
      Jeremy Hylton authored
      Note that ast.c still has a mix of tabs and spaces, because it
      attempts to use four-space indents for more of the new code.
      22f09403
    • Jeremy Hylton's avatar
      tabify · a5807227
      Jeremy Hylton authored
      a5807227
    • Jeremy Hylton's avatar
      Fix long-standing bug in name mangling for package imports · aaddf742
      Jeremy Hylton authored
      Reported by Mike Verdone.
      aaddf742
  3. 26 Feb, 2007 11 commits
  4. 25 Feb, 2007 7 commits
  5. 23 Feb, 2007 2 commits
  6. 21 Feb, 2007 2 commits
  7. 19 Feb, 2007 10 commits
  8. 16 Feb, 2007 1 commit