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: 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: References: Date: Tue, 11 Dec 2012 12:19:47 +0100 Subject: Re: MySQLdb insert HTML code error From: Anatoli Hristov To: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 > 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. 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