Follow current recommended practice in an example:  Use isinstance() to
perform a type test instead of type(x) == types.FoobarType.  In example
for type().
2 files changed