1. 08 Ara, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Patch supplied by Burton Radons for his own SF bug #487390: Modifying · 14648396
      Guido van Rossum yazdı
      type.__module__ behavior.
      
      This adds the module name and a dot in front of the type name in every
      type object initializer, except for built-in types (and those that
      already had this).  Note that it touches lots of Mac modules -- I have
      no way to test these but the changes look right.  Apologies if they're
      not.  This also touches the weakref docs, which contains a sample type
      object initializer.  It also touches the mmap test output, because the
      mmap type's repr is included in that output.  It touches object.h to
      put the correct description in a comment.
      14648396
  2. 07 Ara, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF patch #489173: Make os.spawnv not block the interpreter, from · 25059d30
      Tim Peters yazdı
      Anthony Roach.
      Release the global interpreter lock around platform spawn calls.
      Bugfix candidate?  Hard to say; I favor "yes, bugfix".
      These clearly *should* have been releasing the GIL all along, if for no
      other reason than compatibility with the similar os.system().  But it's
      possible some program out there is (a) multithreaded, (b) calling a spawn
      function with P_WAIT, and (c) relying on the spawn call to block all their
      threads until the spawned program completes.  I think it's very unlikely
      anyone is doing that on purpose, but someone may be doing so by accident.
      25059d30
  3. 06 Ara, 2001 4 kayıt (commit)
    • Jack Jansen's avatar
      Test wether we are building on a case-insensitive filesystem (such · 1999ef49
      Jack Jansen yazdı
      as OSX HFS+) and if so add an extension to the python executable, but
      only in the build directory, not on the installed python.
      1999ef49
    • Jack Jansen's avatar
      ffa260fb
    • Tim Peters's avatar
      SF bug #488514: -Qnew needs work · 3caca232
      Tim Peters yazdı
      Big Hammer to implement -Qnew as PEP 238 says it should work (a global
      option affecting all instances of "/").
      
      pydebug.h, main.c, pythonrun.c:  define a private _Py_QnewFlag flag, true
      iff -Qnew is passed on the command line.  This should go away (as the
      comments say) when true division becomes The Rule.  This is
      deliberately not exposed to runtime inspection or modification:  it's
      a one-way one-shot switch to pretend you're using Python 3.
      
      ceval.c:  when _Py_QnewFlag is set, treat BINARY_DIVIDE as
      BINARY_TRUE_DIVIDE.
      
      test_{descr, generators, zipfile}.py:  fiddle so these pass under
      -Qnew too.  This was just a matter of s!/!//! in test_generators and
      test_zipfile.  test_descr was trickier, as testbinop() is passed
      assumptions that "/" is the same as calling a "__div__" method; put
      a temporary hack there to call "__truediv__" instead when the method
      name is "__div__" and 1/2 evaluates to 0.5.
      
      Three standard tests still fail under -Qnew (on Windows; somebody
      please try the Linux tests with -Qnew too!  Linux runs a whole bunch
      of tests Windows doesn't):
          test_augassign
          test_class
          test_coercion
      I can't stay awake longer to stare at this (be my guest).  Offhand
      cures weren't obvious, nor was it even obvious that cures are possible
      without major hackery.
      
      Question:  when -Qnew is in effect, should calls to __div__ magically
      change into calls to __truediv__?  See "major hackery" at tail end of
      last paragraph <wink>.
      3caca232
    • Guido van Rossum's avatar
  4. 05 Ara, 2001 2 kayıt (commit)
    • Guido van Rossum's avatar
      Fix SF bug #489581: __slots__ leak. · 33bab01d
      Guido van Rossum yazdı
      It was easier than I thought, assuming that no other things contribute
      to the instance size besides slots -- a pretty good bet.  With a test
      suite, no less!
      33bab01d
    • Guido van Rossum's avatar
      At the PythonLabs meeting someone mentioned it would make Jim really · d331cb55
      Guido van Rossum yazdı
      happy if one could delete the __dict__ attribute of an instance.  I
      love to make Jim happy, so here goes...
      
      - New-style objects now support deleting their __dict__.  This is for
        all intents and purposes equivalent to assigning a brand new empty
        dictionary, but saves space if the object is not used further.
      d331cb55
  5. 04 Ara, 2001 2 kayıt (commit)
  6. 03 Ara, 2001 3 kayıt (commit)
    • Guido van Rossum's avatar
      New about super. · cdbbd0a5
      Guido van Rossum yazdı
      cdbbd0a5
    • Guido van Rossum's avatar
      Add Greg Chapman. · 22f9c6dd
      Guido van Rossum yazdı
      22f9c6dd
    • Guido van Rossum's avatar
      Fix for SF bug #485678. · 4b80085d
      Guido van Rossum yazdı
      slot_tp_descr_set(): When deleting an attribute described by a
      descriptor implemented in Python, the descriptor's __del__ method is
      called by the slot_tp_descr_set dispatch function.  This is bogus --
      __del__ already has a different meaning. Renaming this use of __del__
      is renamed to __delete__.
      4b80085d
  7. 02 Ara, 2001 1 kayıt (commit)
  8. 29 Kas, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug 486278 SystemError: Python/getargs.c:1086: bad. · cffed4bc
      Tim Peters yazdı
      vgetargskeywords():  Now that this routine is checking for bad input
      (rather than dump core in some cases), some bad calls are raising errors
      that previously "worked".  This patch makes the error strings more
      revealing, and changes the exceptions from SystemError to RuntimeError
      (under the theory that SystemError is more of a "can't happen!" assert-
      like thing, and so inappropriate for bad arguments to a public C API
      function).
      cffed4bc
  9. 27 Kas, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug 485175: buffer overflow in traceback.c. · 6d20b43a
      Tim Peters yazdı
      Bugfix candidate.
      tb_displayline():  the sprintf format was choking off the file name, but
      used plain %s for the function name (which can be arbitrarily long).
      Limit both to 500 chars max.
      6d20b43a
  10. 25 Kas, 2001 2 kayıt (commit)
  11. 24 Kas, 2001 1 kayıt (commit)
  12. 17 Kas, 2001 1 kayıt (commit)
  13. 16 Kas, 2001 1 kayıt (commit)
  14. 15 Kas, 2001 3 kayıt (commit)
  15. 13 Kas, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      CVS patch #477161: New "access" keyword for mmap, from Jay T Miller. · 5ebfd36a
      Tim Peters yazdı
      This gives mmap() on Windows the ability to create read-only, write-
      through and copy-on-write mmaps.  A new keyword argument is introduced
      because the mmap() signatures diverged between Windows and Unix, so
      while they (now) both support this functionality, there wasn't a way to
      spell it in a common way without introducing a new spelling gimmick.
      The old spellings are still accepted, so there isn't a backward-
      compatibility issue here.
      5ebfd36a
  16. 09 Kas, 2001 1 kayıt (commit)
  17. 07 Kas, 2001 1 kayıt (commit)
  18. 05 Kas, 2001 1 kayıt (commit)
  19. 03 Kas, 2001 2 kayıt (commit)
  20. 02 Kas, 2001 1 kayıt (commit)
  21. 31 Eki, 2001 3 kayıt (commit)
  22. 30 Eki, 2001 2 kayıt (commit)
  23. 29 Eki, 2001 2 kayıt (commit)
    • Tim Peters's avatar
      a427a2b8
    • Guido van Rossum's avatar
      Add __del__ callbacks. They are too useful to leave out. · 7ad2d1eb
      Guido van Rossum yazdı
      XXX Remaining problems:
      
      - The GC module doesn't know about these; I think it has its reasons
        to disallow calling __del__, but for now, __del__ on new-style
        objects is called when the GC module discards an object, for better
        or for worse.
      
      - The code to call a __del__ handler is really ridiculously
        complicated, due to all the different debug #ifdefs.  I've copied
        this from the similar code in classobject.c, so I'm pretty sure I
        did it right, but it's not pretty. :-(
      
      - No tests yet.
      7ad2d1eb
  24. 27 Eki, 2001 1 kayıt (commit)
  25. 26 Eki, 2001 1 kayıt (commit)