Ping> Here is an additional simple use case you could consider. Ping> def private(cls): Ping> def instantiate(*args, **kw): Ping> return cls(*args, **kw) Ping> return instantiate Ping> class DontTouch [private]: Ping> ... Ping> Inner scopes are one of the best places to hide things in Python; Ping> they are very difficult to get at. Are you using "private" to mean "can't be subclassed"? I'm not sure that's the correct term to use here. I guess I'm interpreting "private" in the C++ sense of the word. Skip
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