Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you want to write javascript, use javascript. There are ways to get what you're asking for depending on your use case. types.SimpleNamespace in the standard library provides one approach.

"There should be one-- and preferably only one --obvious way to do it." (zen of python)

I do agree that python logging is a weak point. It is too easy to do it wrong -- particularly when you are a few modules deep.



I really like Python and I love using it. But I think some improvements could be done on such "basic feature".

> "There should be one-- and preferably only one --obvious way to do it." (zen of python)

Look at all the other possibilities to do `f"hello {name}`. That are more than one obvious way to do it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: