Hi,
Just wonder if it's possible in Python.
what I want is to tweak an existing Python class A with no
constructor, so that A() results in fuctory method call?
so o = A() instead being equivalent to:
s = object()
A.__init__(s)
o = s
becomes:
o = my_factory_function( A )
Thanks,
Gennadiy
--
If anyone is interested I end up using rexec kinda class with only
difference that i am using native __builtin__ and resetting __import__
hook to and from local r_import implementation before and after I am
executing code in my environment.
Gennadiy
--
If anyone is interested I end up using rexec kinda class with only
difference that i am using native __builtin__ and resetting __import__
hook to and from local r_import implementation before and after I am
executing code in my environment.
Gennadiy
--
Hi,
I am C++ guy for the most part and don't know much of Python, so,
please, bear with me if I am asking errrm..idiotic question.
Old rexec module provided kinda 'secure' execution environment. I am
not looking for security at this point. What I need an execution
environment which almost like
On Apr 17, 7:06 am, Aaron Brady castiro...@gmail.com wrote:
On Apr 17, 1:47 am, roge...@gmail.com wrote:
Hi,
I am C++ guy for the most part and don't know much of Python, so,
please, bear with me if I am asking errrm..idiotic question.
Old rexec module provided kinda 'secure'
On Apr 17, 3:16 am, Ken Seehart k...@seehart.com wrote:
roge...@gmail.com wrote:
Hi,
I am C++ guy for the most part and don't know much of Python, so,
please, bear with me if I am asking errrm..idiotic question.
Old rexec module provided kinda 'secure' execution environment. I am
not