Here's a #python TIL:
>>> class Hello:
... pass
...
>>> Hello.hello = 'hello'
>>> instance = Hello()
>>> instance.hello
'hello'
I truly didn't think this would work, has this always been true?
Here's a #python TIL:
>>> class Hello:
... pass
...
>>> Hello.hello = 'hello'
>>> instance = Hello()
>>> instance.hello
'hello'
I truly didn't think this would work, has this always been true?
If you have a fediverse account, you can quote this note from your own instance. Search https://wandering.shop/users/phildini/statuses/116212534875424127 on your instance and quote it. (Note that quoting is not supported in Mastodon.)