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
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
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'
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']]
>>>
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
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
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.
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
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
7;woo'), myFunc(myList[1], 'woo'), myFunc
(myList[2], 'woo') some other time).
Thanks,
Elsa
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
--
14 matches
Mail list logo