1. 06 Jan, 1997 3 commits
    • Barry Warsaw's avatar
      added PyString_GET_SIZE macro · 49edc364
      Barry Warsaw authored
      for both PyString_GET_SIZE and PyString_AS_STRING, cast first argument
      to a PyStringObject*
      49edc364
    • Barry Warsaw's avatar
      added PyList_GET_SIZE macro · 1acc91f7
      Barry Warsaw authored
      for both PyList_GET_SIZE and PyList_GET_ITEM, cast first argument to a
      PyListObject*
      1acc91f7
    • Guido van Rossum's avatar
      Rewrote translate() as follows: · b9d24de0
      Guido van Rossum authored
      	- 'delete' is a C++ keyword; use 'del_table' instead
      	- apply Py_CHARMASK() to del_table[i] before using it as an index
      	  *** this fixes a bug that was just reported on the list ***
      	- if the translation didn't make any changes, INCREF and return
      	  the original string
      	- when del_table is empty or omitted, don't copy the translation
      	  table to a table of ints (should be a bit faster)
      
      Rewrote maketrans() to avoid copying the table (2-3% faster).
      b9d24de0
  2. 03 Jan, 1997 33 commits
  3. 02 Jan, 1997 4 commits