docs/optimisations.txt | raw changeset files shortlog |
1.1 --- a/docs/optimisations.txt Sun Nov 22 21:21:41 2009 +0100 1.2 +++ b/docs/optimisations.txt Sun Nov 22 22:53:24 2009 +0100 1.3 @@ -228,7 +228,7 @@ 1.4 result would resemble the following: 1.5 1.6 def f(x, y): 1.7 - if not isinstance(x, C): 1.8 + if not isinstance(x, C) and x is not C: 1.9 raise TypeError 1.10 x.method(y) 1.11 if x.something: