The Python Oracle

How do I call setattr() on the current module?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Melt

--

Chapters
00:00 Question
00:49 Accepted answer (Score 274)
01:43 Answer 2 (Score 14)
02:07 Answer 3 (Score 6)
02:36 Thank you

--

Full question
https://stackoverflow.com/questions/2933...

Answer 1 links:
[related answer]: https://stackoverflow.com/a/48916205
[PEP 562]: https://www.python.org/dev/peps/pep-0562/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #module #globalvariables #getattr #setattr

#avk47