Re: [Tutor] Using Python and Regex

2014-08-11 Thread Bill
Thanks for yoru reply. This was my first attempt,when running through idleid get the following error:- Traceback (most recent call last): File "C:\Users\Bill\Desktop\TXT_Output\email_extraction_script.py", line 27, in traverse_dirs(working_dir) File "C:\Users\Bill\Desktop\TXT_Output\em

Re: [Tutor] Python twitter "errors":[{"message":"Could not authenticate you", "code":32

2014-08-11 Thread Chris
On 08/08/2014 09:28 AM, Alan Gauld wrote: > > Example code often uses fictitious security keys. Are you sure these > values are genuine values that work if you use them to access > twitter directly? > Do you mean you used the same keys as in the example? Or have you > tested the keys work via s

Re: [Tutor] Using Python and Regex

2014-08-11 Thread Peter Otten
Bill wrote: > Thanks for yoru reply. This was my first attempt,when running through > idleid get the following error:- > > > Traceback (most recent call last): > File "C:\Users\Bill\Desktop\TXT_Output\email_extraction_script.py", line > 27, in > traverse_dirs(working_dir) > File "C:\Use

Re: [Tutor] Using Python and Regex

2014-08-11 Thread Alan Gauld
On 11/08/14 08:56, Bill wrote: Just a wee point I noticed: def traverse_dirs(wdir): grabline = 0 for f in os.listdir('.'): if os.path.isfile(f) == True: if "Email Exceeded Maximum Size Limit" in f: continue Note that this checks whether the str

Re: [Tutor] Error message

2014-08-11 Thread Danny Yoo
Hi Richard, I would recommend asking the PyGame folks on this one. What you're running into is specific to that external library, and folks who work with PyGame have encountered the problem before: they'll know how to diagnose and correct it. For example: http://stackoverflow.com/questions

[Tutor] IndentationError

2014-08-11 Thread 王学敏
Dear Python Users, Attachment is python code. The function of this code is that I want to insert lots of fiber into matrix, data is a list storing translate vector. When a fiber is translated to matrix, I used fiber to cut matrix. So the new part will be generated, I delete the previous part and

Re: [Tutor] IndentationError

2014-08-11 Thread Alan Gauld
On 11/08/14 22:28, 王学敏 wrote: for i in range(len(data)): instancename='Part'+str(i)+'-'+str(1) partname='Part'+str(i+1) pre_part='Part'+str(i) mdb.models['Model-1'].rootAssembly.translate(instanceList=('fiber-1', ),vector=(data[i][0], data[i][1], 0.0))

Re: [Tutor] IndentationError

2014-08-11 Thread Mark Lawrence
On 11/08/2014 22:28, 王学敏 wrote: Dear Python Users, Attachment is python code. The function of this code is that I want to insert lots of fiber into matrix, data is a list storing translate vector. When a fiber is translated to matrix, I used fiber to cut matrix. So the new part will be generate