Mr SZ wrote:
Hi all,
Is it possible to call functions using getattr. I have written a simple script
with functions that call either SSL, TLS or plain functionality.
something like:
def func():
...
def funcSSL():
...
def funcTLS():
funcs = {'none':func, 'SSL':funcSSL, 'TLS':funcTLS}
...
On Apr 28, 2:30 am, Mr SZ wrote:
> Hi all,
>
> Is it possible to call functions using getattr. I have written a simple
> script with functions that call either SSL, TLS or plain functionality.
>
> something like:
> def func():
> ...
>
> def funcSSL():
> ...
>
> def funcTLS():
> ...
>
> Now,
Mr SZ wrote:
> Is it possible to call functions using getattr. I have written a simple
> script with functions that call either SSL, TLS or plain functionality.
>
> something like:
> def func():
> ...
>
> def funcSSL():
> ...
>
> def funcTLS():
> ...
>
> Now, based on my args I would lik
Hi all,
Is it possible to call functions using getattr. I have written a simple script
with functions that call either SSL, TLS or plain functionality.
something like:
def func():
...
def funcSSL():
...
def funcTLS():
...
Now, based on my args I would like to call either one of them. I