1. 16 Agu, 2005 1 kayıt (commit)
  2. 25 Haz, 2005 1 kayıt (commit)
  3. 13 Haz, 2005 2 kayıt (commit)
  4. 03 Haz, 2005 2 kayıt (commit)
  5. 12 Ock, 2005 1 kayıt (commit)
  6. 11 Ock, 2005 1 kayıt (commit)
  7. 20 Ara, 2004 1 kayıt (commit)
  8. 27 Haz, 2004 1 kayıt (commit)
  9. 13 Haz, 2004 1 kayıt (commit)
  10. 08 Haz, 2004 1 kayıt (commit)
  11. 26 Mar, 2004 1 kayıt (commit)
  12. 04 Eyl, 2003 1 kayıt (commit)
    • Jason Tishler's avatar
      Bug #794140: cygwin builds do not embed · 6bc06eca
      Jason Tishler yazdı
      The embed2.diff patch solves the user's problem by exporting the missing
      symbols from the Python core so Python can be embedded in another Cygwin
      application (well, at lest vim).
      6bc06eca
  13. 30 Tem, 2002 2 kayıt (commit)
  14. 14 Haz, 2002 1 kayıt (commit)
  15. 03 Nis, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      Add the 'bool' type and its values 'False' and 'True', as described in · 77f6a65e
      Guido van Rossum yazdı
      PEP 285.  Everything described in the PEP is here, and there is even
      some documentation.  I had to fix 12 unit tests; all but one of these
      were printing Boolean outcomes that changed from 0/1 to False/True.
      (The exception is test_unicode.py, which did a type(x) == type(y)
      style comparison.  I could've fixed that with a single line using
      issubtype(x, type(y)), but instead chose to be explicit about those
      places where a bool is expected.
      
      Still to do: perhaps more documentation; change standard library
      modules to return False/True from predicates.
      77f6a65e
  16. 31 Mar, 2002 1 kayıt (commit)
  17. 09 Kas, 2001 1 kayıt (commit)
  18. 19 Eki, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      SF patch #470393 (Jim Ahlstrom): Add missing marshal function · b8cf3e64
      Guido van Rossum yazdı
          In Include/, marshal.h declares both
          PyMarshal_ReadLongFromFile()
          and PyMarshal_ReadShortFromFile(),
          but the second is missing from marshal.c.
      
      [Shouldn't the return type be declared as 'short' instead of 'int'?
      But 'int' is what was in marshal.h all those years...  --Guido]
      b8cf3e64
  19. 30 Agu, 2001 1 kayıt (commit)
  20. 29 Agu, 2001 1 kayıt (commit)
  21. 17 Agu, 2001 1 kayıt (commit)
    • Martin v. Löwis's avatar
      Patch #445762: Support --disable-unicode · 339d0f72
      Martin v. Löwis yazdı
      - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
      - check for Py_USING_UNICODE in all places that use Unicode functions
      - disables unicode literals, and the builtin functions
      - add the types.StringTypes list
      - remove Unicode literals from most tests.
      339d0f72
  22. 18 Haz, 2001 1 kayıt (commit)
  23. 08 May, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug #422177: Results from .pyc differs from .py · 72f98e9b
      Tim Peters yazdı
      Store floats and doubles to full precision in marshal.
      Test that floats read from .pyc/.pyo closely match those read from .py.
      Declare PyFloat_AsString() in floatobject header file.
      Add new PyFloat_AsReprString() API function.
      Document the functions declared in floatobject.h.
      72f98e9b
  24. 10 Nis, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      test_pickle works on sizeof(long)==8 boxes again. · 44714007
      Tim Peters yazdı
      pickle.py
          The code implicitly assumed that all ints fit in 4 bytes, causing all
          sorts of mischief (from nonsense results to corrupted pickles).
          Repaired that.
      marshal.c
          The int marshaling code assumed that right shifts of signed longs
          sign-extend.  Repaired that.
      44714007
  25. 28 Ock, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      It's unclear whether PyMarshal_XXX() are part of the public or private API. · d9b9ac85
      Tim Peters yazdı
      They're named as if public, so I did a Bad Thing by changing
      PyMarshal_ReadObjectFromFile() to suck up the remainder of the file in one
      gulp:  anyone who counted on that leaving the file pointer merely at the
      end of the next object would be screwed.  So restored
      PyMarshal_ReadObjectFromFile() to its earlier state, renamed the new greedy
      code to PyMarshal_ReadLastObjectFromFile(), and changed Python internals to
      call the latter instead.
      d9b9ac85
  26. 25 Ock, 2001 1 kayıt (commit)
    • Jeremy Hylton's avatar
      PEP 227 implementation · 64949cb7
      Jeremy Hylton yazdı
      The majority of the changes are in the compiler.  The mainloop changes
      primarily to implement the new opcodes and to pass a function's
      closure to eval_code2().  Frames and functions got new slots to hold
      the closure.
      
      Include/compile.h
          Add co_freevars and co_cellvars slots to code objects.
          Update PyCode_New() to take freevars and cellvars as arguments
      Include/funcobject.h
          Add func_closure slot to function objects.
          Add GetClosure()/SetClosure() functions (and corresponding
          macros) for getting at the closure.
      Include/frameobject.h
          PyFrame_New() now takes a closure.
      Include/opcode.h
          Add four new opcodes: MAKE_CLOSURE, LOAD_CLOSURE, LOAD_DEREF,
          STORE_DEREF.
          Remove comment about old requirement for opcodes to fit in 7
          bits.
      compile.c
          Implement changes to code objects for co_freevars and co_cellvars.
      
          Modify symbol table to use st_cur_name (string object for the name
          of the current scope) and st_cur_children (list of nested blocks).
          Also define st_nested, which might more properly be called
          st_cur_nested.  Add several DEF_XXX flags to track def-use
          information for free variables.
      
          New or modified functions of note:
          com_make_closure(struct compiling *, PyCodeObject *)
              Emit LOAD_CLOSURE opcodes as needed to pass cells for free
              variables into nested scope.
          com_addop_varname(struct compiling *, int, char *)
              Emits opcodes for LOAD_DEREF and STORE_DEREF.
          get_ref_type(struct compiling *, char *name)
              Return NAME_CLOSURE if ref type is FREE or CELL
          symtable_load_symbols(struct compiling *)
              Decides what variables are cell or free based on def-use info.
              Can now raise SyntaxError if nested scopes are mixed with
              exec or from blah import *.
          make_scope_info(PyObject *, PyObject *, int, int)
              Helper functions for symtable scope stack.
          symtable_update_free_vars(struct symtable *)
              After a code block has been analyzed, it must check each of
              its children for free variables that are not defined in the
              block.  If a variable is free in a child and not defined in
              the parent, then it is defined by block the enclosing the
              current one or it is a global.  This does the right logic.
          symtable_add_use() is now a macro for symtable_add_def()
          symtable_assign(struct symtable *, node *)
              Use goto instead of for (;;)
      
          Fixed bug in symtable where name of keyword argument in function
          call was treated as assignment in the scope of the call site. Ex:
              def f():
                  g(a=2) # a was considered a local of f
      
      ceval.c
          eval_code2() now take one more argument, a closure.
          Implement LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE>
      
          Also: When name error occurs for global variable, report that the
          name was global in the error mesage.
      
      Objects/frameobject.c
          Initialize f_closure to be a tuple containing space for cellvars
          and freevars.  f_closure is NULL if neither are present.
      Objects/funcobject.c
          Add support for func_closure.
      Python/import.c
          Change the magic number.
      Python/marshal.c
          Track changes to code objects.
      64949cb7
  27. 18 Ock, 2001 1 kayıt (commit)
  28. 14 Kas, 2000 1 kayıt (commit)
  29. 19 Eyl, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      Obscure marshal fixes: · e84b7403
      Tim Peters yazdı
          When reading a short, sign-extend on platforms where shorts are
          bigger than 16 bits.
          When reading a long, repair the unportable sign extension that was
          being done for 64-bit machines (it assumed that signed right shift
          sign-extends).
      e84b7403
  30. 01 Eyl, 2000 1 kayıt (commit)
  31. 23 Tem, 2000 2 kayıt (commit)
  32. 22 Tem, 2000 1 kayıt (commit)
  33. 09 Tem, 2000 1 kayıt (commit)
  34. 30 Haz, 2000 2 kayıt (commit)
  35. 28 Haz, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Urmpf. Quality control on this patch lapsed a bit. :-( · 98626cd7
      Guido van Rossum yazdı
      The depth field was never decremented inside w_object(), and it was
      never initialized in PyMarshal_WriteObjectToFile().
      
      This caused imports from .pyc files to fil mysteriously when the .pyc
      file was written by the broken code -- w_object() would bail out
      early, but PyMarshal_WriteObjectToFile() doesn't check the error or
      return an error code, and apparently the marshalling code doesn't call
      PyErr_Check() either.  (That's a separate patch if I feel like it.)
      98626cd7