1. 06 Mar, 2007 13 commits
  2. 05 Mar, 2007 3 commits
  3. 04 Mar, 2007 3 commits
  4. 02 Mar, 2007 3 commits
  5. 01 Mar, 2007 3 commits
  6. 28 Feb, 2007 4 commits
  7. 27 Feb, 2007 6 commits
    • Jeremy Hylton's avatar
    • Jeremy Hylton's avatar
      Add checking for a number of metaclass error conditions. · fa955697
      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.
      fa955697
    • Jeremy Hylton's avatar
      whitespace normalization · 2d1f5c93
      Jeremy Hylton authored
      2d1f5c93
    • Jeremy Hylton's avatar
      tabify · 819de6ce
      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.
      819de6ce
    • Jeremy Hylton's avatar
      tabify · 18623e25
      Jeremy Hylton authored
      18623e25
    • Jeremy Hylton's avatar
      Fix long-standing bug in name mangling for package imports · 37075c5a
      Jeremy Hylton authored
      Reported by Mike Verdone.
      37075c5a
  8. 26 Feb, 2007 5 commits