Re: [Tutor] py2exe

2005-04-24 Thread Jeff Peery
I am using python 2.3.4. thanks.   JeffGreg Hasseler <[EMAIL PROTECTED]> wrote: Hi Jeff. I can't tell if you sent the last email to just me or me andthe list, but make sure to send it to the list (don't just hit reply).Also, what version of wxPython are you using?On 4/21/05, Jeff Peery <[EMAIL PROT

Re: [Tutor] Name spaces again

2005-04-24 Thread Kent Johnson
David Driver wrote: I have read the essay at and I am still having problems understanding what I need to do. In AR.sobjs I have a class that is inherited from Common.sobjs.baseDomObj. When I run StartHere.py Common imports just fine. It starts to i

Re: [Tutor] Re Help with this script

2005-04-24 Thread Kent Johnson
John Carmona wrote: Thanks for the help Kent, Noel and Alan. Here is my final script (it seems to be working ok but sometimes if I select "quit the programme", I need to enter that option 2 or 3 times before it works, is this a bug Try this program. Choose option a a few times, then choose f enou

Re: [Tutor] variable scope in nested functions

2005-04-24 Thread Kent Johnson
Logesh Pillay wrote: Hello list I am having trouble with a variable to act as a counter in a nested recursive function which will only occasionally find an answer. Something like a static variable in C. Why does this sort of thing not work? def foo (n): counter = 0 def choose (i): i

Re: [Tutor] "saving"?

2005-04-24 Thread Kent Johnson
Max Noel wrote: On Apr 24, 2005, at 18:04, Gavin Bauer wrote: make it useful. This means one thing: saving. I would need some way of saving a "set" of flash cards such as "english vocab test" or "french irregular verbs". The main purpose of this program (other than learning more python) would be to

Re: [Tutor] "saving"?

2005-04-24 Thread Max Noel
On Apr 24, 2005, at 18:04, Gavin Bauer wrote: I've decided it would be cool to make a flashcard program. You would start by entering all of the cards and their answers, then it would ask you them in random order, with ones you get right coming up less often, and ones you consistantly get wrong comi

[Tutor] "saving"?

2005-04-24 Thread Gavin Bauer
I've decided it would be cool to make a flashcard program. You would start by entering all of the cards and their answers, then it would ask you them in random order, with ones you get right coming up less often, and ones you consistantly get wrong coming up more often. However, I don't want to sta

Re: [Tutor] Bandwidth Tester

2005-04-24 Thread Alan Gauld
>How can i write a simple bandwidth tester with Python? It's very simple in concept: just download a fixed quantity of data and measure how long it took. Unfortunately, like many concepts measuring true Bandwidth is much more complex than that! The simple approach only works if: 1) You are

[Tutor] Name spaces again

2005-04-24 Thread David Driver
I have read the essay at and I am still having problems understanding what I need to do. Here is the structure that I am looking at: Root folder StartHere.py Common folder __init__.py sobj.py

Re: [Tutor] design questions: pythonic approach to ostriches

2005-04-24 Thread Kent Johnson
Brian van den Broek wrote: I do remain a bit surprised that there seems to be no way to implement what I naively thought would be the obvious solution -- to remove an inherited method from the instance's dictionary. The thing is, the inherited method is never *in* the instance's dictionary. It's

[Tutor] variable scope in nested functions

2005-04-24 Thread Logesh Pillay
Hello list I am having trouble with a variable to act as a counter in a nested recursive function which will only occasionally find an answer. Something like a static variable in C. Why does this sort of thing not work? def foo (n): counter = 0 def choose (i): if (solution found):

Re: [Tutor] Re Help with this script

2005-04-24 Thread John Carmona
Thanks for the help Kent, Noel and Alan. Here is my final script (it seems to be working ok but sometimes if I select "quit the programme", I need to enter that option 2 or 3 times before it works, is this a bug (I am running Win XP), please feel free to comment if you thing that something could

Re: [Tutor] Bandwidth Tester

2005-04-24 Thread Danny Yoo
On Sun, 24 Apr 2005, Ali Polatel wrote: > How can i write a simple bandwidth tester with Python? Hi Ali, A really rough sketch would be: ## Really rough pseudocode def bandwidthTest(): Record the current time (use time.time()) Choose some resource that you can download, and downl

Re: [Tutor] Does Python have anything like Perls format output?

2005-04-24 Thread Alan Gauld
> Good evening! Does Python have a print function similar to Perl > format output (example below)? >format STDOUT = >@< @ @<<< [EMAIL PROTECTED] [EMAIL PROTECTED] >$code, $date,$descript,$amt, $balance This should be in a FAQ somewhere

Re: [Tutor] design questions: pythonic approach to ostriches

2005-04-24 Thread Alan Gauld
> I do remain a bit surprised that there seems to be no way to implement > what I naively thought would be the obvious solution -- to remove an > inherited method from the instance's dictionary. You can, as Kent said, override the method to do nothing. Some languages, like Eifell offer better supp