A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-March/043684.html below:

[Python-Dev] PEP 318: Security use case

[Python-Dev] PEP 318: Security use case [Python-Dev] PEP 318: Security use caseKa-Ping Yee python-dev at zesty.ca
Tue Mar 30 06:17:26 EST 2004
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

More information about the Python-Dev mailing list

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