oop in python

2005-12-27 Thread novice
hello over there! I have the following question: Suppose I created a class: class Point: pass then instanciated an instance: new = Point() So now how to get the instance new as a string: like ' new ' ; Is there any built in

Parallel port programming on windows XP/2000?

2005-08-02 Thread Novice Experl
I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000. How can I do this? What do I need to know? It doesn't look like the standard library (the one

Re: Parallel port programming on windows XP / 2000

2005-08-13 Thread Novice Experl
I'm still stuck... my script is finished and works just fine on win98 using pyparallel, but I still haven't seen any sample code to do access the port in XP / 2000. If I don't make progress soon, I'll need to find a solution in another language, which I don't really want to do. --

Indexed variables

2005-09-22 Thread python-novice
Hello, being an almost complete Python AND programming neophyte I would like to ask the following - very elementary, as I might suspect - question: How do I do the following flawed things right: a1=a2=0 def f(x): if x == a1: a1 = a1 + 1 elif x == a2: a2 = a2 + 1 Now