Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
phildini
@phildini@wandering.shop  ·  activity timestamp 6 days ago

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?

  • Copy link
  • Flag this post
  • Block
Log in

Bonfire Dinteg Labs

This is a bonfire demo instance for testing purposes. This is not a production site. There are no backups for now. Data, including profiles may be wiped without notice. No service or other guarantees expressed or implied.

Bonfire Dinteg Labs: About · Code of conduct · Privacy ·
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login