Re: [Tutor] how to compile python3.0

2009-04-24 Thread Shaofeng NIu
that worked for me,too :) thanks to all the peopel helping me 2009/4/24 Dayo Adewunmi > Shaofeng NIu wrote: > >> I tried to compile and install python3.0 from source,but after "make",it >> shows: >> >> Python build finished, but the necessary bits to build these modules were >> not found: >> _db

Re: [Tutor] Python help

2009-04-24 Thread IT_ForMe
cart = {"apple":2.00, "orange":2.50, "banana":1.75} print cart apple = 2 orange = 2.5 banana = 1.75 totalprice = 0 totalprice = apple + orange + banana print "your subtotal is 'totalprice'" taxedprice = (totalprice *.07) + totalprice print "your final price is 'taxedprice'" prompt = raw_input("ar

Re: [Tutor] Threading...

2009-04-24 Thread Alan Gauld
"Spencer Parker" wrote in message news:c7a040fa0904241426h70a0c82bhf95e476fe5ed0...@mail.gmail.com... I have a script that I want to test MySQL sonnections with. The way I have the script working is to just create connections, but I realized that it is going to wait for the first one to stop b

Re: [Tutor] Pyparsing question: marking matches in Pyparsing

2009-04-24 Thread spir
Le Fri, 24 Apr 2009 16:20:02 -0400, Emad Nawfal (عماد نوفل) s'exprima ainsi: > Hello Tutors, > I've used Pyparsing to write a Noun Phrase Extractor that extracts noun > phrases from a Part-of-Speech tagged file. My question is: how can I mark, > instead of extract, the phrases. For example, In th

[Tutor] Threading...

2009-04-24 Thread Spencer Parker
I have a script that I want to test MySQL sonnections with. The way I have the script working is to just create connections, but I realized that it is going to wait for the first one to stop before starting a new connection. I want to throw a ton of open connections at it to see what the connecti

[Tutor] Pyparsing question: marking matches in Pyparsing

2009-04-24 Thread عماد نوفل
Hello Tutors, I've used Pyparsing to write a Noun Phrase Extractor that extracts noun phrases from a Part-of-Speech tagged file. My question is: how can I mark, instead of extract, the phrases. For example, In the sentence: The DET big ADJ woman NOUN saw VERB and CONJ greeted VERB the DET green

Re: [Tutor] sorting algorithim

2009-04-24 Thread Alan Gauld
"tonyon boyo" wrote i know how to print for bubble sort in python, is there a way to print each pass in the sort so i can see what happens at each step? thanks Yes add a print statement inside the looop that prints the list being sorted. def bubblesort(list): for passes in range(len

Re: [Tutor] how to compile python3.0

2009-04-24 Thread A.T.Hofkamp
Shaofeng NIu wrote: I tried to compile and install python3.0 from source,but after "make",it shows: Python build finished, but the necessary bits to build these modules were not found: _dbm _gdbm _hashlib _sqlite3 _ssl _tkinter bz2

Re: [Tutor] how to compile python3.0

2009-04-24 Thread Dayo Adewunmi
Shaofeng NIu wrote: I tried to compile and install python3.0 from source,but after "make",it shows: Python build finished, but the necessary bits to build these modules were not found: _dbm _gdbm _hashlib _sqlite3 _ssl _tkinter b

[Tutor] how to compile python3.0

2009-04-24 Thread Shaofeng NIu
I tried to compile and install python3.0 from source,but after "make",it shows: Python build finished, but the necessary bits to build these modules were not found: _dbm _gdbm _hashlib _sqlite3 _ssl _tkinter bz2readline To find the