Copying a multiple values of a dict to another with a lot easier syntax

m and n are lists or dicts or enumerates or classes or anything it can be assigned like following: instead of : m.a=n.a; m.b=n.b; m.c=n.c; ... I suggest a,b,c of m to n ; I thought of this while writing something in javascript since I love pyhton above everything I can type (even more than native language sentences) I wanted to post this idea to here It is my first idea while coding ... In javascript, I was assinging a boundingBoxRect values to a div it was going like this: adiv=document.createElement("div") adiv.style.x=comp.x; adiv.style.y=comp.y; adiv.style.height=comp.height; adiv.style.widht=comp.width; I thought it is super waste of time instead of : x,y,height,width of comp to adiv; English is not my native language and as I said its my first idea while coding. Thank you. S&S Gediz GÜRSU
participants (1)
-
Gediz GÜRSU