1. 05 Mar, 2003 2 kayıt (commit)
  2. 02 Mar, 2003 1 kayıt (commit)
  3. 01 Mar, 2003 2 kayıt (commit)
  4. 27 Şub, 2003 1 kayıt (commit)
  5. 26 Şub, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Micro-optimizations. · 21012b82
      Raymond Hettinger yazdı
      * List/Tuple checkexact is faster for the common case.
      * Testing for Py_True and Py_False can be inlined for faster looping.
      21012b82
  6. 25 Şub, 2003 1 kayıt (commit)
    • Just van Rossum's avatar
      Addendum to #683658: · 5bfba3ae
      Just van Rossum yazdı
      import warnings.py _after_ site.py has run. This ensures that site.py
      is again the first .py to be imported, giving it back full control over
      sys.path.
      5bfba3ae
  7. 24 Şub, 2003 1 kayıt (commit)
  8. 23 Şub, 2003 1 kayıt (commit)
  9. 22 Şub, 2003 1 kayıt (commit)
  10. 19 Şub, 2003 3 kayıt (commit)
  11. 17 Şub, 2003 1 kayıt (commit)
  12. 14 Şub, 2003 1 kayıt (commit)
  13. 13 Şub, 2003 1 kayıt (commit)
    • Guido van Rossum's avatar
      - Finally fixed the bug in compile() and exec where a string ending · 4b499dd3
      Guido van Rossum yazdı
        with an indented code block but no newline would raise SyntaxError.
        This would have been a four-line change in parsetok.c...  Except
        codeop.py depends on this behavior, so a compilation flag had to be
        invented that causes the tokenizer to revert to the old behavior;
        this required extra changes to 2 .h files, 2 .c files, and 2 .py
        files.  (Fixes SF bug #501622.)
      4b499dd3
  14. 12 Şub, 2003 3 kayıt (commit)
    • Neal Norwitz's avatar
      Cleanup from patch #683257: · 2294c0d4
      Neal Norwitz yazdı
       Add missing INCREFs and re-indent returns to be consistent.
       Add \n\ for lines in docstring
       Add a pathetic test
       Add docs
      2294c0d4
    • Guido van Rossum's avatar
      Provide access to the import lock, fixing SF bug #580952. This is · c4f4ca91
      Guido van Rossum yazdı
      mostly from SF patch #683257, but I had to change unlock_import() to
      return an error value to avoid fatal error.
      
      Should this be backported?  The patch requested this, but it's a new
      feature.
      c4f4ca91
    • Guido van Rossum's avatar
      SF #660455 : patch by NNorwitz. · 66b1259d
      Guido van Rossum yazdı
      "Unsigned" (i.e., positive-looking, but really negative) hex/oct
      constants with a leading minus sign are once again properly negated.
      The micro-optimization for negated numeric constants did the wrong
      thing for such hex/oct constants.  The patch avoids the optimization
      for all hex/oct constants.
      
      This needs to be backported to Python 2.2!
      66b1259d
  15. 10 Şub, 2003 5 kayıt (commit)
  16. 05 Şub, 2003 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Small function call optimization and special build option for call stats. · 985eba53
      Jeremy Hylton yazdı
      -DCALL_PROFILE: Count the number of function calls executed.
      
      When this symbol is defined, the ceval mainloop and helper functions
      count the number of function calls made.  It keeps detailed statistics
      about what kind of object was called and whether the call hit any of
      the special fast paths in the code.
      
      Optimization:
      
      When we take the fast_function() path, which seems to be taken for
      most function calls, and there is minimal frame setup to do, avoid
      call PyEval_EvalCodeEx().  The eval code ex function does a lot of
      work to handle keywords args and star args, free variables,
      generators, etc.  The inlined version simply allocates the frame and
      copies the arguments values into the frame.
      
      The optimization gets a little help from compile.c which adds a
      CO_NOFREE flag to code objects that don't have free variables or cell
      variables.  This change allows fast_function() to get into the fast
      path with fewer tests.
      
      I measure a couple of percent speedup in pystone with this change, but
      there's surely more that can be done.
      985eba53
  17. 04 Şub, 2003 4 kayıt (commit)
  18. 03 Şub, 2003 1 kayıt (commit)
  19. 31 Ock, 2003 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Provide __module__ attributes for functions defined in C and Python. · 4f0dcc9a
      Jeremy Hylton yazdı
      __module__ is the string name of the module the function was defined
      in, just like __module__ of classes.  In some cases, particularly for
      C functions, the __module__ may be None.
      
      Change PyCFunction_New() from a function to a macro, but keep an
      unused copy of the function around so that we don't change the binary
      API.
      
      Change pickle's save_global() to use whichmodule() if __module__ is
      None, but add the __module__ logic to whichmodule() since it might be
      used outside of pickle.
      4f0dcc9a
  20. 30 Ock, 2003 1 kayıt (commit)
  21. 25 Ock, 2003 1 kayıt (commit)
  22. 24 Ock, 2003 3 kayıt (commit)
  23. 22 Ock, 2003 1 kayıt (commit)
  24. 21 Ock, 2003 1 kayıt (commit)
  25. 19 Ock, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF patch #670367: Micro-optimizations for ceval.c · 4bad9ba2
      Raymond Hettinger yazdı
      Make the code slightly shorter, faster, and easier to
      read.
      
      * Eliminate unused DUP_TOPX code for x==1.
      compile.c always generates DUP_TOP instead.
      
      * Since only two cases remain for DUP_TOPX, replace
      the switch-case with if-elseif.
      
      * The in-lined integer compare does a CheckExact on
      both arguments. Since the second is a little more
      likely to fail, test it first.
      
      * The switch-case for IS/IS_NOT and IN/NOT_IN can
      separate the regular and inverted cases with no
      additional work. For all four paths, saves a test and
      jump.
      4bad9ba2