multiprocessing

2011-04-06 Thread elsa
object (but not modify it). Again, order doesn't matter: p1=Pool(4) def getValues(index): global myDict print myDict[index] p1.map(getValues,keys.myDict) Is there a way to do this? Thanks, Elsa. -- http://mail.python.org/mailman/listinfo/python-list

For loop searching takes too long!

2010-01-28 Thread elsa
p around 10^7, the whole thing crashes. Is there a faster way of doing this, that doesn't involve as many computational steps? Thanks! elsa -- http://mail.python.org/mailman/listinfo/python-list

Still too slow

2010-01-30 Thread elsa
Hello again, Thanks for the tips r.e random.ranint(). This improved matters somewhat, however my program is still too slow. If anyone has any further tips on how to speed it up, they would be much appreciated! So, I'm calling evolve(L,limit) from the interactive prompt. L is initally [[100],['NA'

Re: Still too slow

2010-01-30 Thread elsa
Hi John and others, sorry about my etiquette errors. As you can tell I'm a newbie, and appreciate all the help I can get. I'm trying to master this thing with only the net and a couple of books as tutors. Here is what I'm running at the interactive prompt: >>> import myBDM >>> L=[[100,'NA']] >>>

find integers in f.readline()

2010-04-29 Thread elsa
r I can call int(parts[0]) or not. Some of the lines in my file start with a value which represents and integer (as above), while others are just strings of characters. I want to extract just the lines like the one above, that start with an integer. Any suggestions? Thanks, Elsa. -- http://mail.python.org/mailman/listinfo/python-list

parsing tab and newline delimited text

2010-08-03 Thread elsa
being able to parse my file correctly. Any suggestions on how to overcome this problem would be greatly appreciated. Many thanks, Elsa -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing tab and newline delimited text

2010-08-03 Thread elsa
On Aug 4, 12:49 pm, Tim Chase wrote: > On 08/03/10 21:14, elsa wrote: > > > > > I have a large file of text I need to parse. Individual 'entries' are > > separated by newline characters, while fields within each entry are > > separated by tab characters.

sgmllib.py

2009-08-23 Thread elsa
ort PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/ 2.5/li/python2.5:$PYTHONPATH this seemed to work - no errors raised. However, when I retyped example (1), I got the same original error. Any assistance would be much appreciated. I'm working on max os x leopard. Thanks, elsa -- http://mail.python.org/mailman/listinfo/python-list

elementtree

2009-08-24 Thread elsa
I have a question about elementtree: I know how to turn HTML into an ElementTree object, but I don't know how to then view the structure of this object. Is there a method or module that you can give an ElementTree object to, and it returns some kind of graphical or printed representation of the tr

map

2009-08-30 Thread elsa
7;woo'), myFunc(myList[1], 'woo'), myFunc (myList[2], 'woo') some other time). Thanks, Elsa -- http://mail.python.org/mailman/listinfo/python-list

BeautifulSoup

2009-09-02 Thread elsa
t; onmouseout="return nd();"> is there an easy way to use BeautifulSoup to extract just the value of the href attribute? Thanks, elsa -- http://mail.python.org/mailman/listinfo/python-list

Re: map

2009-09-02 Thread elsa
On Aug 31, 11:44 pm, Hendrik van Rooyen wrote: > On Monday 31 August 2009 11:31:34 Piet van Oostrum wrote: > > > But ultimately it is also very much a matter of taste, preference and > > habit. > > This is true, but there is another reason that I posted - I have noticed that > there seems to be a

choose value from custom distribution

2010-10-18 Thread elsa
ich unfortunately I have to do with the approach I'm currently working on). Thanks in advance for your help, elsa. -- http://mail.python.org/mailman/listinfo/python-list

Python Custom Shapes Question

2014-06-16 Thread Elsa Mort
Hi, I am using Python for a programming class at school. However, we are being asked to create a function that enables python to re-size an image that we custom made (in this case a Greek Meander.) I wasn't sure if you knew how to do this. I having trouble. Thank you, Elsa --