News for hackers. Stuff that matters.
Re:What's New in Python 3.12 by jwkane on Wednesday October 18, 2023 @12:59PM (#37931477)
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.

Re:What's New in Python 3.12 by BoumTAC on Wednesday October 18, 2023 @01:03PM (#37931533)
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.