PiotrDabkowski / Js2Py

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:
http://piter.io/projects/js2py
MIT License
2.45k stars 259 forks source link

From attribute is unreachable #328

Open netgoatfr opened 3 months ago

netgoatfr commented 3 months ago

Hello! After doing buffer = require("buffer").Buffer to get the buffer from the buffer module, i need to access the from method, but it's impossible due to the from builtin in python. Is there a workaround to get a specific attribute by it's name as a string ?