Hello Takayuki,

>   for k in more:
>       exec("%s = %r" % (k, more[k]))

I see, this works.


>index.rst::
>
>   Welcome to conf.py test
>   =========================
>
>   :release: |release|
>   :version: |version|

That looked very promising at first sight - I was very excited. But
it's restricted to three values only and no general solution.


>   http://docs.python.org/library/functions.html#locals
>   The contents of this dictionary should not be modified; changes may
>   not affect the values of local and free variables used by the interpreter.

Yes, your warning is more than apropriate. But as Sebastian points
out, globals() can be used.

Thanks for answering - it was really helpful.

Martin

-- 
Certified TYPO3 Integrator | TYPO3 Documentation Team Member

http://mbless.de

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to