summaryrefslogtreecommitdiff
path: root/Lib/test/test_descrtut.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-04-07 05:43:42 +0000
committerMartin v. Löwis <martin@v.loewis.de>2008-04-07 05:43:42 +0000
commit250ad613f3ae7e237e28d3a7a15a9b6fac16129f (patch)
tree5484e62a1ee0b0d9b7008cad32ab33392db7e78e /Lib/test/test_descrtut.py
parent5a6f4585fdc52959bcc0dfdb9d25f2d34f983300 (diff)
downloadcpython-git-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.tar.gz
Bug #2565: The repr() of type objects now calls them 'class',
not 'type' - whether they are builtin types or not.
Diffstat (limited to 'Lib/test/test_descrtut.py')
-rw-r--r--Lib/test/test_descrtut.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py
index 4933c9f5b8..1ddab0e546 100644
--- a/Lib/test/test_descrtut.py
+++ b/Lib/test/test_descrtut.py
@@ -39,7 +39,7 @@ Here's the new type at work:
>>> print(defaultdict) # show our type
<class 'test.test_descrtut.defaultdict'>
>>> print(type(defaultdict)) # its metatype
- <type 'type'>
+ <class 'type'>
>>> a = defaultdict(default=0.0) # create an instance
>>> print(a) # show the instance
{}
@@ -149,11 +149,11 @@ Introspecting instances of built-in types
For instance of built-in types, x.__class__ is now the same as type(x):
>>> type([])
- <type 'list'>
+ <class 'list'>
>>> [].__class__
- <type 'list'>
+ <class 'list'>
>>> list
- <type 'list'>
+ <class 'list'>
>>> isinstance([], list)
True
>>> isinstance([], dict)
@@ -346,7 +346,7 @@ Hmm -- property is builtin now, so let's try it that way too.
>>> del property # unmask the builtin
>>> property
- <type 'property'>
+ <class 'property'>
>>> class C(object):
... def __init__(self):