#!/usr/local/bin/python2 def fizzbuzz(n): for i in range(1, n+1): if i % 15 == 0: yield 'FizzBuzz' elif i % 5 == 0: yield 'Buzz' elif i % 3 == 0: yield 'Fizz' else: yield i class C(object): a = 1 def __init__(self): self.a = 2 c = C() del c.a print c.a