Greetings,
On 11/3/07, John <[EMAIL PROTECTED]> wrote:
> Good point, I think that goes for learning a programming language in general
> ;) Find one that works, and master it...
>
> I'm starting to put together the picture of what a Python installation is,
> but I have to admit, when you work on mu
apt-get install python2.4
That's it! (On a Debian-based install)
--
b h a a l u u at g m a i l dot c o m
http://www.geocities.com/ek.bhaaluu/index.html
On 11/2/07, sith . <[EMAIL PROTECTED]> wrote:
> hi,
> I'm a beginner. Can someone help me with the installation? I've read
> several tutorials
Good point, I think that goes for learning a programming language in general
;) Find one that works, and master it...
I'm starting to put together the picture of what a Python installation is,
but I have to admit, when you work on multiple machines regularly, it is a
bit challenging. Especially w
Eric Brunson wrote:
> Ricardo Aráoz wrote:
>> Kent Johnson wrote:
>>
>>> I am building a list like this:
>>>
>>> tree = []
>>> for top in tops:
>>> l2 = level2(top)
>>> if l2:
>>> tree.append((top, l2))
>>>
>>> I would really like to turn this into a list
Ricardo Aráoz wrote:
> Kent Johnson wrote:
>
>> I am building a list like this:
>>
>> tree = []
>> for top in tops:
>> l2 = level2(top)
>> if l2:
>> tree.append((top, l2))
>>
>> I would really like to turn this into a list comprehension:
>>
>> tree = [ (t
I decided you probably should also have a cleanup function since garbage
collection won't work now unless you explicitly clean the function. This
approach works, and also works if you call the function again after you've
called cleanup (it just runs the function 1 more time, then again, returns
the
Dinesh B Vadhia wrote:
> A NumPy matrix (because we have to perform a dot matrix multiplication
> prior to creating an inverted index).
Maybe something like this?
from collections import defaultdict
a = array(...)
index = defaultdict(list)
for i, x in ndenumerate(a):
index[x].append(i)
This
Thank you very much Alan.
Kevin
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com ___
Tutor maillist - Tutor@python.org
http://mail.python.org
"Gman" <[EMAIL PROTECTED]> wrote
> Bear in mind "newbie alert" I have 2.5 on windows M.E. and all is
> well,
OK, Then I wouyldn't worry too much but...
> if I try to use a dos box I get bad command etc.
Thats because the PATH envirtonment variable is not set.
To fix it open c:\AUTOEXEC.BAT in
"sith ." <[EMAIL PROTECTED]> wrote
> For example, here is the traceback for a simple file I made and
> tried to run in IDLE:
> # test.py
> x = 1 + 1
> print x
> In IDLE, I tried to run it by typing test.py
That's the problem.
You cannot run Python scripts in IDLE by calling
them like that.
10 matches
Mail list logo