def test_keyword_type_construction():
 class x(object, ):
  def __new__(cls, *args, **kwargs):
   return object.__new__(cls)
  def __init__(self, *args, **kwargs):
   for (x, y) in kwargs.iteritems():
    setattr(self, x, y)
   return object.__init__(self)
 obj = type.__call__(x, *(), **{'abc': 2})
 AreEqual(obj.abc, 2)
 obj = x.__call__(*(), **{'abc': 3})
 AreEqual(obj.abc, 3)

def test_keyword_type_construction ( ) : class x ( object , ) : def __new__ ( cls , * args , ** kwargs ) : return object . __new__ ( cls ) def __init__ ( self , * args , ** kwargs ) : for ( x , y ) in kwargs . iteritems ( ) : setattr ( self , x , y ) return object . __init__ ( self ) obj = type . __call__ ( x , * ( ) , ** { 'abc' : 2 } ) AreEqual ( obj . abc , 2 ) obj = x . __call__ ( * ( ) , ** { 'abc' : 3 } ) AreEqual ( obj . abc , 3 )
using type .