This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年01月16日 07:16 by paaguti, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg151334 - (view) | Author: Pedro Andres Aranda Gutierrez (paaguti) | Date: 2012年01月16日 07:16 | |
When creating ElementTree objects that hold SVG drawings, I need a CDATA object similar to the ProcessingInstruction object. There was a circumvention of the problem for Python 2.6: http://stackoverflow.com/questions/174890/how-to-output-cdata-using-elementtree This workaround doesn't work in Python 2.7 and above |
|||
| msg151557 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2012年01月18日 18:10 | |
Note that there is no "need" to emit CDATA section: it's just another method to write data, just like in Python "\x41" and "A" are not distinct. The workaround there is a hack, since it redefines an "internal" method _write(). This function is an implementation detail, and changed in newer releases. I posted another hack on the stackoverflow page above, that works for python 3.2. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:25 | admin | set | github: 58004 |
| 2012年01月18日 18:10:38 | amaury.forgeotdarc | set | status: open -> closed nosy: + amaury.forgeotdarc messages: + msg151557 resolution: not a bug |
| 2012年01月16日 07:16:43 | paaguti | create | |