1. 21 Tem, 2007 1 kayıt (commit)
  2. 25 Şub, 2007 1 kayıt (commit)
    • Neal Norwitz's avatar
      Variation of patch # 1624059 to speed up checking if an object is a subclass · ee3a1b52
      Neal Norwitz yazdı
      of some of the common builtin types.
      
      Use a bit in tp_flags for each common builtin type.  Check the bit
      to determine if any instance is a subclass of these common types.
      The check avoids a function call and O(n) search of the base classes.
      The check is done in the various Py*_Check macros rather than calling
      PyType_IsSubtype().
      
      All the bits are set in tp_flags when the type is declared
      in the Objects/*object.c files because PyType_Ready() is not called
      for all the types.  Should PyType_Ready() be called for all types?
      If so and the change is made, the changes to the Objects/*object.c files
      can be reverted (remove setting the tp_flags).  Objects/typeobject.c
      would also have to be modified to add conditions
      for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
      ee3a1b52
  3. 14 Agu, 2006 1 kayıt (commit)
    • Marc-André Lemburg's avatar
      Slightly revised version of patch #1538956: · 040f76b7
      Marc-André Lemburg yazdı
      Replace UnicodeDecodeErrors raised during == and !=
      compares of Unicode and other objects with a new
      UnicodeWarning.
      
      All other comparisons continue to raise exceptions.
      Exceptions other than UnicodeDecodeErrors are also left
      untouched.
      040f76b7
  4. 14 Haz, 2006 1 kayıt (commit)
  5. 04 Haz, 2006 1 kayıt (commit)
  6. 28 May, 2006 1 kayıt (commit)
  7. 26 May, 2006 2 kayıt (commit)
  8. 23 May, 2006 1 kayıt (commit)
  9. 22 May, 2006 2 kayıt (commit)
  10. 15 Şub, 2006 1 kayıt (commit)
  11. 29 Eki, 2005 1 kayıt (commit)
    • Tim Peters's avatar
      _PyUnicode_IsWhitespace(), · 2576c97f
      Tim Peters yazdı
      _PyUnicode_IsLinebreak():
      Changed the declarations to match the definitions.
      
      Don't know why they differed; MSVC warned about it;
      don't know why only these two functions use "const".
      Someone who does may want to do something saner ;-).
      2576c97f
  12. 30 Agu, 2005 1 kayıt (commit)
  13. 22 Kas, 2004 1 kayıt (commit)
  14. 31 Eki, 2004 1 kayıt (commit)
  15. 07 Eyl, 2004 1 kayıt (commit)
    • Walter Dörwald's avatar
      SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support · 69652035
      Walter Dörwald yazdı
      decoding incomplete input (when the input stream is temporarily exhausted).
      codecs.StreamReader now implements buffering, which enables proper
      readline support for the UTF-16 decoders. codecs.StreamReader.read()
      has a new argument chars which specifies the number of characters to
      return. codecs.StreamReader.readline() and codecs.StreamReader.readlines()
      have a new argument keepends. Trailing "\n"s will be stripped from the lines
      if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and
      PyUnicode_DecodeUTF16Stateful.
      69652035
  16. 04 Agu, 2004 1 kayıt (commit)
    • Hye-Shik Chang's avatar
      SF #989185: Drop unicode.iswide() and unicode.width() and add · e9ddfbb4
      Hye-Shik Chang yazdı
      unicodedata.east_asian_width().  You can still implement your own
      simple width() function using it like this:
          def width(u):
              w = 0
              for c in unicodedata.normalize('NFC', u):
                  cwidth = unicodedata.east_asian_width(c)
                  if cwidth in ('W', 'F'): w += 2
                  else: w += 1
              return w
      e9ddfbb4
  17. 08 Tem, 2004 1 kayıt (commit)
  18. 02 Haz, 2004 1 kayıt (commit)
  19. 15 Ara, 2003 1 kayıt (commit)
  20. 12 Agu, 2002 2 kayıt (commit)
  21. 11 Agu, 2002 1 kayıt (commit)
  22. 29 May, 2002 1 kayıt (commit)
  23. 22 Nis, 2002 1 kayıt (commit)
  24. 19 Eki, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      SF patch #470578: Fixes to synchronize unicode() and str() · b8c65bc2
      Guido van Rossum yazdı
          This patch implements what we have discussed on python-dev late in
          September: str(obj) and unicode(obj) should behave similar, while
          the old behaviour is retained for unicode(obj, encoding, errors).
      
          The patch also adds a new feature with which objects can provide
          unicode(obj) with input data: the __unicode__ method. Currently no
          new tp_unicode slot is implemented; this is left as option for the
          future.
      
          Note that PyUnicode_FromEncodedObject() no longer accepts Unicode
          objects as input. The API name already suggests that Unicode
          objects do not belong in the list of acceptable objects and the
          functionality was only needed because
          PyUnicode_FromEncodedObject() was being used directly by
          unicode(). The latter was changed in the discussed way:
      
          * unicode(obj) calls PyObject_Unicode()
          * unicode(obj, encoding, errors) calls PyUnicode_FromEncodedObject()
      
          One thing left open to discussion is whether to leave the
          PyUnicode_FromObject() API as a thin API extension on top of
          PyUnicode_FromEncodedObject() or to turn it into a (macro) alias
          for PyObject_Unicode() and deprecate it. Doing so would have some
          surprising consequences though, e.g.  u"abc" + 123 would turn out
          as u"abc123"...
      
      [Marc-Andre didn't have time to check this in before the deadline.  I
      hope this is OK, Marc-Andre!  You can still make changes and commit
      them on the trunk after the branch has been made, but then please mail
      Barry a context diff if you want the change to be merged into the
      2.2b1 release branch.  GvR]
      b8c65bc2
  25. 20 Eyl, 2001 1 kayıt (commit)
  26. 19 Eyl, 2001 1 kayıt (commit)
  27. 11 Eyl, 2001 1 kayıt (commit)
  28. 30 Agu, 2001 1 kayıt (commit)
  29. 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
  30. 09 Agu, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF patch #438013 Remove 2-byte Py_UCS2 assumptions · 772747b3
      Tim Peters yazdı
      Removed all instances of Py_UCS2 from the codebase, and so also (I hope)
      the last remaining reliance on the platform having an integral type
      with exactly 16 bits.
      PyUnicode_DecodeUTF16() and PyUnicode_EncodeUTF16() now read and write
      one byte at a time.
      772747b3
  31. 31 Tem, 2001 1 kayıt (commit)
  32. 30 Tem, 2001 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h. · 3ce45389
      Jeremy Hylton yazdı
      And remove all the extern decls in the middle of .c files.
      Apparently, it was excluded from the header file because it is
      intended for internal use by the interpreter.  It's still intended for
      internal use and documented as such in the header file.
      3ce45389
  33. 27 Haz, 2001 3 kayıt (commit)
  34. 26 Haz, 2001 2 kayıt (commit)