[Tutor] best way to dynamically set class variables?

Alan Gauld alan.gauld at yahoo.co.uk
Wed Nov 7 20:15:40 EST 2018


On 07/11/2018 23:06, Alan Gauld via Tutor wrote:

> Another option would be to explore metaclasses
> and modify the class creation mechanism

Which, of course, is what you were doing with the type(...)
call in your post...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list