All the previous files

This commit is contained in:
bendtherules
2014-02-05 10:44:04 +05:30
commit 12135f9a60
160 changed files with 8827 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
class C():
class mclass(type):
def __new__(mcs, name, bases, attributes):
# Do something clever with name, base or attributes
name="so_cool "+name
cls = type.__new__(mcs, name, bases, attributes)
# Do something cleverer with the class itself
print ("I've created class whose","name: ",name," mcs: ",mcs," bases: ",bases," attributes: ",attributes)
return cls
class A(object):
"Customizing the creation of class A"
__metaclass__=C.mclass
class B(A):
static = 1