jmp schrieb am 02.10.2015 um 11:03:
> Safety is like speed optimization, you care about it only when it can be a
> problem. And the vast majority (there's a recent trolling thread about the
> equivalent percentage of vast majority if you want to have fun) of python
> code may run on trusted network
On 10/01/2015 09:12 PM, Steven D'Aprano wrote:
On Wed, 30 Sep 2015 07:21 pm, jmp wrote:
Is Ariel's xml file user-supplied? If so, how does your suggestion
prevent the resulting lua script from executing arbitrary code?
It does not. Like it doesn't fulfill the millions of possible
requirements
On Wed, 30 Sep 2015 07:21 pm, jmp wrote:
>> Is Ariel's xml file user-supplied? If so, how does your suggestion
>> prevent the resulting lua script from executing arbitrary code?
>
> It does not. Like it doesn't fulfill the millions of possible
> requirements the OP could have written but did not.
On 09/29/2015 07:28 PM, Peter Otten wrote:
jmp wrote:
import bs4
import jinja2
xml = """
BuenosAires
30
Seatle
25
"""
lua_template = """
cities_temps ={
{%- for city, temp in cities.iteritems() %}
["{{city}}"] = {{temp}},
{%- e
jmp wrote:
> On 09/28/2015 11:41 PM, Ariel Argañaraz wrote:
>> Hi,
>> This is my first post, I would like to know if a library that can help
>> me with this.
>>
>>
>> I want to parse a XML fle with Python and save the data into a Lua table
>> called for example "newTable", then I want to create a
On 09/28/2015 11:41 PM, Ariel Argañaraz wrote:
Hi,
This is my first post, I would like to know if a library that can help
me with this.
I want to parse a XML fle with Python and save the data into a Lua table
called for example "newTable", then I want to create a "table.lua" fle
with the "newTa
In a message of Mon, 28 Sep 2015 18:41:09 -0300, Ariel Argañaraz writes:
>Hi,
>This is my first post, I would like to know if a library that can help me
>with this.
>
>
>I want to parse a XML fle with Python and save the data into a Lua table
>called for example "newTable", then I want to create a
Hi,
This is my first post, I would like to know if a library that can help me
with this.
I want to parse a XML fle with Python and save the data into a Lua table
called for example "newTable", then I want to create a "table.lua" fle with
the "newTable" write on it.
for example:
the XML fle: ci