Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52065
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andrea.crotti.0@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.320 |
| X-Spam-Level | *** |
| X-Spam-Evidence | '*H*': 0.50; '*S*': 0.14; 'possible?': 0.16; 'subject:too': 0.16; 'import': 0.22; 'message-id:@mail.gmail.com': 0.30; 'quotes': 0.31; 'to:name:python-list': 0.33; "can't": 0.35; 'received:google.com': 0.35; 'really': 0.36; 'thanks': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'tell': 0.60; 'url:x': 0.81; 'subject:much': 0.91; 'url:y': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=l2USklaL9zZkNp/ErsilFnTWI7cRnjq4n+To1jN5meA=; b=LaDrClZvhn0rsH4w1TL1riGsejcpeVLPWctpI0JpFDEO1BU3auUDRdvx7q3PXPBZUU Fe1AHoGvr5CQWwy9u3jczRDd0IgN7UDxEwQe4EoFqRe9eOmvCxmjS0JBzT2k2Cy6vqxf mOtyVvC+sh+02lptd3Q8bwGSHRhMJf3Pc+xNKZnz2juUaVvyxM2FP18y9gT0xlCc+PJk 3pwhMw7INWvmZG8CnPXgQGoxcIUKfmEvOHAy9brPjSox/lmSLRvS2FukQ6OQTXPfFp+w wEr5KS/9AOHEUkQ3widJ3L/I2VtZuMC+DDu16ko3XOnTFlRAad71pIG21QOUnw+izL+p YHxg== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.19.196 with SMTP id h4mr1778259wie.38.1375810697308; Tue, 06 Aug 2013 10:38:17 -0700 (PDT) |
| Date | Tue, 6 Aug 2013 18:38:17 +0100 |
| Subject | lxml tostring quoting too much |
| From | andrea crotti <andrea.crotti.0@gmail.com> |
| To | python-list <python-list@python.org> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Mailman-Approved-At | Tue, 06 Aug 2013 22:10:10 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.271.1375819811.1251.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1375819811 news.xs4all.nl 15923 [2001:888:2000:d::a6]:40758 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52065 |
Show key headers only | View raw
I would really like to do the following: from lxml import etree as ET from lxml.builder import E url = "http://something?x=10&y=20" l = E.link(url) ET.tostring(l) -> "<link>http://something?x=10&y=20</link>" However the lxml tostring always quotes the &, I can't find a way to tell it to avoid quoting it. Is it possible? Thanks
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
lxml tostring quoting too much andrea crotti <andrea.crotti.0@gmail.com> - 2013-08-06 18:38 +0100
csiph-web