[spyne] python exec function doesn't work in module spyne

Burak Arslan burak.arslan at arskom.com.tr
Thu Aug 2 09:14:50 UTC 2018


On 02/08/18 11:33, hou zhehao wrote:
> I trigger the function *execcodes *by
> *'a=1\nb=2\nprint(a+b)\n'*,  there was
> no error about exec raised, but there was also no print in logging,
> and I can't find a and b in both locals and globals, so i'm confused
> whether my codes executed? if it is executed, where can I find the
> variables?

without looking at the spyne code, this request is invalid.



in python world, what you need to do is called "url encoding".

the requests library takes care of it for you automatically. Otherwise
the python stdlib also contains functions that takes care of urlencoding.

here's the python snippet that I used to generate the above request:

    import requests

I hope this helps,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.spyne.io/archives/people/attachments/20180802/a016c4cc/attachment.html>

More information about the people mailing list