Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34612

Re: MySQLdb insert HTML code error

Path csiph.com!usenet.pasdenom.info!aioe.org!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tolidtm@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'beginner': 0.05; 'failing': 0.05; 'subject:code': 0.07; 'expected.': 0.09; 'worked.': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; "wouldn't": 0.11; '(the': 0.15; 'html)': 0.16; 'idle.': 0.16; 'plus,': 0.16; 'string': 0.17; 'appears': 0.18; 'question.': 0.20; 'trying': 0.21; 'smallest': 0.22; 'posted': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'mention': 0.23; 'cc:no real name:2**0': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'coding': 0.27; 'message-id:@mail.gmail.com': 0.27; 'all.': 0.28; 'starts': 0.29; "i'm": 0.29; 'worked': 0.30; 'figure': 0.30; 'code': 0.31; 'exhibit': 0.33; 'function.': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'fail': 0.35; 'problem,': 0.35; 'especially': 0.35; 'sometimes': 0.35; 'continue': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'next': 0.35; 'but': 0.36; "didn't": 0.36; 'turn': 0.36; 'possible': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'header:Received:5': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'real': 0.61; 'time,': 0.62; 'is.': 0.62; 'cut': 0.71; 'discover': 0.72; 'miss': 0.75; 'difference.': 0.84; 'easier,': 0.84; 'hardly': 0.84; 'cutting': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sMqZY03F2t/UFPqFJOG60eGmgqJ3AQk+dSjfcjGdG/0=; b=GeyHcBtIlDA0DWDT1MaVmE0wba1GkX3ZSgtBpNmaHVA2zayrHr41/kFmib2iyAnyPY oog189AKB3Zw5u2MOLLWVbTQaIJ7axLVP9FRWYvhTojJ+/j6Ay9ck18nsgcJRBDwM4jS 1swmZC0lXPzXZSNDAUrZORcWFiSwdhYbOydhbGh9VMIVbFuP0laubjZ2W34cDlw5cKBv 5dLP7wvw1BXrNz82wOFNVJP7dNHAClOR56r+KXxgylifxLUpzTsmGFlPvhLI0OvXCFYQ nKSHG27QdYFnuPFwDjVIlohUWD/4Z5WahS6l5qMFEs9RD1WP0Yw9IKTfE770RJgfVceK jqFQ==
MIME-Version 1.0
In-Reply-To <CAPTjJmqbHLLtfD15hx3yBrqhi9cSF3YGAHj3HcXDbaTgbw=4sQ@mail.gmail.com>
References <CAKhY55Nfq7+CsjqrksdGYxODNYUvBSowXQYjZ6-FzxQeOgBnUQ@mail.gmail.com> <ka5u84$pij$1@ger.gmane.org> <CAKhY55ODkiru_2Vn4e=CNoKnvdaNehQ+4+XJ8xcPLsi9R+x=KA@mail.gmail.com> <ka5v4n$vu8$1@ger.gmane.org> <CAKhY55OFzkf4V9d-bu6C5BkWYty1ptcdRKd1jM+8QUF3eKwr9g@mail.gmail.com> <CAPTjJmqbHLLtfD15hx3yBrqhi9cSF3YGAHj3HcXDbaTgbw=4sQ@mail.gmail.com>
Date Tue, 11 Dec 2012 12:19:47 +0100
Subject Re: MySQLdb insert HTML code error
From Anatoli Hristov <tolidtm@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
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.721.1355224790.29569.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355224790 news.xs4all.nl 6902 [2001:888:2000:d::a6]:60024
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34612

Show key headers only | View raw


> SSCCE starts with "Short". The HTML you unloaded into that email
> hardly qualifies.
>
> When you're trying to figure out a problem that appears to happen only
> when you have X and not when you have Y, see what the smallest example
> data for X and Y are that continue to exhibit the difference. It's way
> easier, especially on those of us who might have been interested in
> helping, had it been possible to paste your failing code into IDLE.
> Plus, in cutting it down you might discover what the real cause of the
> problem is.
>
> Of course, sometimes you fail to cut something down as expected. In
> this example, HTML didn't turn out to be the problem, so cutting it
> down to "<html></html>" wouldn't have worked. But do at least _try_,
> and then mention what worked and didn't work in your question.

This is the reason  I posted in the beginning only the part with the
problem function.
-    after I posted the all string (the HTML) as there was some miss
understandings:
-    I will try to follow the (sscce) next time, excuse me as I'm a
beginner in coding at all.

Regards

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: MySQLdb insert HTML code error Anatoli Hristov <tolidtm@gmail.com> - 2012-12-11 12:19 +0100

csiph-web