Re: [Tutor] Please review my code - a simple iterator thingy to make round-robin pairings

2005-12-12 Thread Pekka Karjalainen
Thank you for the response, Danny! On 12/12/05, Danny Yoo <[EMAIL PROTECTED]> wrote: > > One thing you can add is unit tests to see that your program is doing what > you expect. There's a great example of how unit tests work in Mark > Pilgrim's "Dive into Python": > > http://diveintopython.or

Re: [Tutor] Editors

2005-12-12 Thread Ismael Garrido
Will Harris wrote: > Any of you familar with SPE > > ? I found this just recently on freshmeat and was curious if anyone > had used it? If so how well it works and what not. This caught my > attention because its cross plat

[Tutor] (no subject)

2005-12-12 Thread moparfan90
hello. i want to mke a program that will do a couple of things that are hard to do:  -keep track of what it does.. and learn from what the user does in a sense  -be in a nice looking setup.. like Tkinter or something similar  -and always know that uptodate time and weather if possible     i know th

[Tutor] Editors

2005-12-12 Thread Will Harris
Any of you familar with SPE ? I found this just recently on freshmeat and was curious if anyone had used it? If so how well it works and what not. This caught my attention because its cross platform (written in python). ___ Tutor maillist - Tutor@python

Re: [Tutor] Please review my code - a simple iterator thingy to make round-robin pairings

2005-12-12 Thread Danny Yoo
On Mon, 12 Dec 2005, Pekka Karjalainen wrote: > I hope my code and comments are clear enough for you to work out what I > want to do. Please review my code, my commenting and give some advice on > how to use the testing module. This is a fairly trivial example, but I'd > like to learn how to mak

Re: [Tutor] Currency conversion

2005-12-12 Thread Michael Janssen
On 12/12/05, David Holland <[EMAIL PROTECTED]> wrote: > wouldn't it be better to change :- > "def rupees_from_dollars(d_doll): > return 43*(d_doll) > > etc to" :- > "def conversiond_doll, x): > return x*(d_doll) > " > You can then have one function for all currencies and > would be less c

[Tutor] Please review my code - a simple iterator thingy to make round-robin pairings

2005-12-12 Thread Pekka Karjalainen
I hope my code and comments are clear enough for you to work out what I want to do. Please review my code, my commenting and give some advice on how to use the testing module. This is a fairly trivial example, but I'd like to learn how to make & run tests properly, so as to use them with Real Code.

[Tutor] Currency conversion

2005-12-12 Thread David Holland
Apologies if anyone has said this and I missed it, but wouldn't it be better to change :- "def rupees_from_dollars(d_doll): return 43*(d_doll) etc to" :- "def conversiond_doll, x): return x*(d_doll) " And in the main for eg dollars to dollar_amount = conversionsion(doll, dollarexchange ra

Re: [Tutor] information needed to make a connection between computers

2005-12-12 Thread Kent Johnson
John Walton wrote: > please tell me what information of the computer you want to connect with > the you actually need for a connection? In other words (or plain > english), what information do I need to get a connection with another > computer (IP address, name, IP name)? Also, could you tell me

Re: [Tutor] information needed to make a connection between computers

2005-12-12 Thread Pujo Aji
yes you can do that in python.But I recommend to use pyro.http://pyro.sourceforge.net/pujoOn 12/11/05, John Walton <[EMAIL PROTECTED]> wrote:  Hello again! I'm still working on that instant messenger (for science fair), and I have been reading about networking in some Java tutorials. In one part