Here is an additional simple use case you could consider. def private(cls): def instantiate(*args, **kw): return cls(*args, **kw) return instantiate class DontTouch [private]: ... Inner scopes are one of the best places to hide things in Python; they are very difficult to get at. (I can't seem to find any special attributes that access the values inside them, and even if there is a way, it would be easy to imagine a restricted execution mode that wouldn't expose them.) -- ?!ng
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4