Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'failing': 0.05; 'subject:code': 0.07; 'expected.': 0.09; 'worked.': 0.09; 'subject:error': 0.11; "wouldn't": 0.11; 'dec': 0.15; 'digest': 0.15; 'clear.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle.': 0.16; 'plus,': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'question.': 0.20; 'trying': 0.21; 'smallest': 0.22; 'example': 0.23; 'mention': 0.23; 'least': 0.25; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'starts': 0.29; "i'm": 0.29; 'worked': 0.30; 'figure': 0.30; 'code': 0.31; 'getting': 0.33; '11,': 0.33; 'exhibit': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'fail': 0.35; 'problem,': 0.35; 'especially': 0.35; 'received:209.85.220': 0.35; 'sometimes': 0.35; 'continue': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'url:org': 0.36; "didn't": 0.36; 'anything': 0.36; 'turn': 0.36; 'possible': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'description': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'think': 0.40; 'your': 0.60; 'real': 0.61; 'is.': 0.62; 'become': 0.65; 'cut': 0.71; 'discover': 0.72; '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 :content-type; bh=1xIy6apdjf5fc+b8BjOFU8QanuScCn45/yQl9NdBFo8=; b=yGsqeati/kSzITq7+NzXJzJ3a1kO9IbT95pgxGIaa4D811tSUpJycVY50fIZdhlngh 4sE9EUhKUMlfuBFCnwI/hK/TorQNjMjxqx/Q3rqvmUgdxDnQITLbb02w9h+xJm2yhWCX 3PxbMBaxfw8VY1k4lYCyLQw4rDKgm8XCkh52NhTWFLRzKz3Onjg+k2r8A8M139Cavfa5 F53kVaE0jGwrgbROCid77Q7si53WXFHMsyXuGZXKLPhfgPBYAcqfEpYSbKkNjAbMFEFk /fj+br3NfhQvFRcZCW7HEGp3ttnQdJis5blmrDU/yaB5IUV30jieWKKiz+XLqd2ub8S8 YouA== MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 11 Dec 2012 20:59:55 +1100 Subject: Re: MySQLdb insert HTML code error From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355219999 news.xs4all.nl 6925 [2001:888:2000:d::a6]:42380 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:34609 On Tue, Dec 11, 2012 at 11:46 AM, Anatoli Hristov wrote: >> Brilliant, I think your problem is in line 97 of the code that you *HAVEN'T >> QUOTED*. Please go here, read and inwardly digest before you say anything >> else http://www.sscce.org/ > > :) I thought it was clear. the "spec" is the description and when the > str"spec" contains the html code I'm getting an error, if you don't > want to help then just don't become an.......... 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 "" wouldn't have worked. But do at least _try_, and then mention what worked and didn't work in your question. ChrisA