Multiprocessing question

2014-07-13 Thread Paul LaFollette
Kind people, I have thrown together a little C/UNIX program that forks a child process, then proceeds to let the child and parent alternate. Either can run until it pauses itself and wakes the other. I would like to know if there be a way to create the same behavior in Python 3, preferably in a n

A couple questions about classes and inheritance

2010-05-16 Thread Paul LaFollette
Kind people, Using Python 3.1 I have been poking around trying to get more insight into Python's innards, and I have a couple of (marginally) related questions. First, I've looked a fair bit and can't find how one can find the base classes of a subclass? isinstance and issubclass sort of do the

function local namespace question

2009-07-08 Thread Paul LaFollette
s there any way (however clumsy) to do what I want to do? Thank you for your help. Paul --- Paul LaFollette CIS Department Temple University paul.lafollette(at)temple.edu www.cis.temple.edu/~lafollet -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about None

2009-06-14 Thread Paul LaFollette
Thank you all for your thoughtful and useful comments. Since this has largely morphed into a discussion of my 3rd question, perhaps it would interest you to hear my reason for asking it. John is just about spot on. Part of my research involves the enumeration and generation of various combinatori

Question about None

2009-06-12 Thread Paul LaFollette
Kind people, Using Python 3.0 on a Gatesware machine (XP). I am building a class in which I want to constrain the types that can be stored in various instance variables. For instance, I want to be certain that self.loc contains an int. This is straightforward (as long as I maintain the disciplin

assignment hook

2006-09-23 Thread paul . lafollette
Kind people, Is there any way one can, within Python, intercept the act of assignment. For instance, suppose that I was obsessed with FORTRAN II, and decided that I wanted to print a warning, or raise an exception any time someone assigned an int to a variable whose name did not start with i,j,k,l