]> granicus.if.org Git - python/commit
Marc-Andre Lemburg:
authorGuido van Rossum <guido@python.org>
Mon, 10 Apr 2000 13:47:21 +0000 (13:47 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Apr 2000 13:47:21 +0000 (13:47 +0000)
commit90daa8756920ef188d233a9b0c3672a841f064dd
treeb3d8e80c216cd50f9791cbb54b0646f60018e20d
parentb244f6950bd739a1d5dea7e119150e90ac03604f
Marc-Andre Lemburg:

* string_contains now calls PyUnicode_Contains() only when the other
  operand is a Unicode string (not whenever it's not a string).

* New format style '%r' inserts repr(arg) instead of str(arg).

* '...%s...' % u"abc" now coerces to Unicode just like
  string methods. Care is taken not to reevaluate already formatted
  arguments -- only the first Unicode object appearing in the
  argument mapping is looked up twice. Added test cases for
  this to test_unicode.py.
Objects/stringobject.c