Use a variable to name a class in python -


suppose want following psuedocode work

method generateclass(string name, <string,type>[] attributes)        class name()              //used int               //          char b              attributes[0].[0] attributes[0].[1]              attributes[1].[0] attributes[1].[1] 

how in python?


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -