python2.2: type('name') -> <type 'str'> ??

Paul Prescod paulp at ActiveState.com
Wed Jul 25 19:27:15 EDT 2001


Thomas Bellman wrote:
> 
>...
> 
> I would seem logical to unify the instance type with the instance
> function in the new module.  

People would expect type(C())(foo) to call C.__init__. Better to leave
it undefined then to have it do something seemingly random.

-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook




More information about the Python-list mailing list