2015-01-14 12:14 GMT+01:00 Chris Angelico :
> Would it be possible to do a one-off transformation of the entire XSLT
> file into a Python module with a single function in it, and then every
> time you need that XSLT, you import that module and call the function?
> That would potentially be a lot q
2015-01-13 22:48 GMT+01:00 Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info>:
> So you have been comparing:
>
> 2
>
> versus
>
> exec('1+1')
>
>
> The first case just fetches a reference to a pre-existing int object, and
> then deletes the reference. That's fast.
>
> The second case:
per loop
-> As if executing one more 1 + 1 would take 4 more seconds (10
iterations) in an exec environnement.
Am I missing something or should I expect that result ? What does using
exec imply that causes such a difference ?
Jean-Baptiste Braun
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I'm searching a tool to translate an xsl file to executable python code.
I know how to execute xslt with python. What I want is to process my xslt
rules *in* python.
Example :
Mr
Mrs
I would like it to be translated in a python test statement.
Does anyone know something like this ? Or