Metaclasses in Python
stackoverflow.com
Metaclasses in Python
1–10 of 32 posts
Re: Metaclasses in Python
#2Re: Metaclasses in Python
#3Python is a very cool language. I wonder if using __metaclass__ in some fashion would allow for javascript-like prototyping.
Looks like there's a video available at http://ep2011.europython.eu/conference/talks/javascript-for-....
Re: Metaclasses in Python
#4Re: Metaclasses in Python
#5Python is a very cool language. I wonder if using __metaclass__ in some fashion would allow for javascript-like prototyping.
Re: Metaclasses in Python
#6Re: Metaclasses in Python
#7Python is a very cool language. I wonder if using __metaclass__ in some fashion would allow for javascript-like prototyping.
What prototyping stuff is missing in Python?
Re: Metaclasses in Python
#8Earlier quoted context omitted.
What prototyping stuff is missing in Python?
Well in JS you could do String.prototype.fnName = function(){}; to add fnName as a method to all strings even if they are already instantiated, is that possible with Python?