Kaydet (Commit) c7790ed1 authored tarafından Victor Stinner's avatar Victor Stinner

Fix the NEWS about my last commit: an unicode subclass can now override the

__unicode__ method (and not the __str__ method).

Simplify also the testcase.
üst 3017a7bb
......@@ -1195,8 +1195,6 @@ class UnicodeTest(
def test_format_subclass(self):
class U(unicode):
def __str__(self):
return '__str__ overridden'
def __unicode__(self):
return u'__unicode__ overridden'
u = U(u'xxx')
......
......@@ -12,7 +12,7 @@ What's New in Python 2.7 beta 1?
Core and Builtins
-----------------
- Issue #1583863: An unicode subclass can now override the __str__ method
- Issue #1583863: An unicode subclass can now override the __unicode__ method
- Issue #6474: Make error message from passing an inadequate number of keyword
arguments to a function correct.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment