Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'string.': 0.05; 'attribute': 0.07; 'debugging': 0.07; 'subject:code': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'subject:Help': 0.11; 'python': 0.11; 'all?': 0.16; 'columns': 0.16; 'different?': 0.16; 'nick': 0.16; 'rationale': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:PLEASE': 0.16; 'typeerror:': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'looks': 0.24; "i've": 0.25; 'second': 0.26; 'values': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'chris': 0.29; 'door': 0.30; "i'm": 0.30; 'work.': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'writes:': 0.31; 'lists': 0.32; 'front': 0.32; 'problem': 0.35; 'subject:with': 0.35; 'convert': 0.35; 'but': 0.35; 'add': 0.35; 'consist': 0.36; 'useful': 0.36; 'should': 0.36; 'so,': 0.37; 'list': 0.37; 'christian': 0.38; 'problems': 0.38; 'to:addr:python-list': 0.38; 'contract': 0.38; 'extremely': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'days': 0.60; 'dave': 0.60; 'solve': 0.60; 'world.': 0.61; 'john': 0.61; 'such': 0.63; 'different': 0.65; 'forward': 0.65; 'dear': 0.65; 'within': 0.65; 'effectively': 0.66; 'url:co': 0.67; 'results': 0.69; '100': 0.79; 'subject:this': 0.83; 'received:89': 0.85; 'amongst': 0.91; 'approach.': 0.91; 'convinced': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Help me with this code PLEASE Date: Tue, 05 Nov 2013 21:42:13 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-162-119.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: 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: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383687750 news.xs4all.nl 15965 [2001:888:2000:d::a6]:47120 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58527 On 05/11/2013 21:17, Mark Lawrence wrote: > On 05/11/2013 20:19, John Gordon wrote: >> In Nick the Gr33k >> writes: >> >>> IAM STRUGGLING WITH IT 2 DAYS NOW AND I CANNOT GET IT TO WORK. >> >>> ALL I WANT IT TO DO IS JUST >> >>> 1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS >>> 2. CONVERT LONG STRINGS TO LISTS >>> 3. ADD SOME CURRENT VALUES TO THOSE LISTS >>> 4. CONVERT FROM LISTS TO LONG STRINGS SO I CAN STORE SUCCESSFULLY LIST >>> PYTHON DATATYPE TO MYSQL SCALAR STRING. >> >>> EVERYHTIGN I TRIED FAILED. >> >> How did it fail? >> >> Error message? >> No results at all? >> Different results than you wanted? If so, how did they differ? >> > > Dear John, > > This approach has already been tried by Dave Angel, Steven D'Aprano and > Chris Angelico amongst others and has failed dismally so why should you > be any different? > > I've taken a different approach. I've put the contract out to tender and > hereby give you the winners > http://www.mudefordwoodcommunitycentre.co.uk/playgroup-and-tiny-tots/ > > Part of the rationale is that they're literally 100 yards from my front > door so communicating with them effectively should be extremely easy. > This will be particularly useful when it comes down to debugging such > difficult issues as "> TypeError: 'NoneType' object is not iterable". > > I'm looking forward to working in partnership with them and am convinced > that within a few days all of Nikos' problems will have been solved. > Oh dear it looks as if we might have to renegotiate the contract as I understand that we've an almost intractable problem to solve it's "AttributeError: 'NoneType' object has no attribute 'split'". -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence