Timeline for Does Python have “private” variables in classes?
Current License: CC BY-SA 2.5
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2019 at 7:26 | comment | added | Shayne | Yep. The beauty is, the metaprogramming abilities of python mean you can actually implement the fancy stuff if you want (And there are libraries that implement @private/@protected/etc decorators and stuff. Hell I even saw a library that imlemented JS style prototype classes for no goddamn sane reason) , but in practice its just not that necessary.. I kind of hate the "python/js/whatever is a lisp" meme because its almost never true, but python does share 'metaprogramming chops combined with simple syntax' with that language | |
Oct 29, 2009 at 1:59 | history | answered | Dan Olson | CC BY-SA 2.5 |