Reputation: 3876
Sometimes I use classes without any structure, i.e.
class Foo(object):
pass
foo = Foo()
I wonder if there is a more compact way which avoids the clumsy, meaningless definition. Can one directly initialize blank object-instances?
Upvotes: 2
Views: 87