Skip to main content


Been reading up on #Python lately. I know that classes in Python "doesn't support" private values, but could this functionality not be implemented with closures?

Edit: typo
This entry was edited (8 months ago)
If the #Python rules and conventions of _ prefixes don't meet the needs for 'privacy', perhaps choose another tool from the tool-box instead of trying to hammer-in a screw?
@dn Not my project. I didn't pick the tool.

That said, it was more of a hypothetical question.
@dn


Want to brush up on my #Python #MySQL and #JavaScript for a technical interview I may or may not get shortly. If anyone has any recommendations for additional resources that might be helpful, I'd be happy to look at them.
For SQL, I found sqlbolt.com/ a bit ago. Has exercises at the bottom of each page, could be useful as a catch up, found it nice myself.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.