Re: [Tutor] Strange IndexError

2005-06-14 Thread Willi Richert
Hi Danny, I've posted the bug at the pyro ML. However the old IndexError annoys me more and more. Although I have encapsulated it with try/except blocks and that works ok for what I want, I really want to understand how an exception like Traceback (most recent call last): File "NeedBrain.py",

Re: [Tutor] Strange IndexError

2005-06-13 Thread Danny Yoo
On Mon, 13 Jun 2005, Willi Richert wrote: > I used the same Pyro code, but this time with the release versions of > player and stage. This time python crashed with a segfault: Hi Willi, If you see a segfault like this, it's almost definitely a bug in a third-party module. It is possible that

Re: [Tutor] Strange IndexError

2005-06-13 Thread Willi Richert
Hi, I used the same Pyro code, but this time with the release versions of player and stage. This time python crashed with a segfault: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1273599056 (LWP 27633)] tupleiter_next (it=0xb6393cec) at Objects/tupleobject.c:797 797

Re: [Tutor] Strange IndexError

2005-06-02 Thread Danny Yoo
On Thu, 2 Jun 2005, Willi Richert wrote: > my app is a Pyrobot (http://emergent.brynmawr.edu/~dblank/pyro/) > simulation which connects to PlayerStage (playerstage.sf.net) to > simulate three Pioneer robots. These are controlled using NeedBrain.py. > In parallel to the three NeedBrains there is

Re: [Tutor] Strange IndexError

2005-06-02 Thread Willi Richert
Hi, my app is a Pyrobot (http://emergent.brynmawr.edu/~dblank/pyro/) simulation which connects to PlayerStage (playerstage.sf.net) to simulate three Pioneer robots. These are controlled using NeedBrain.py. In parallel to the three NeedBrains there is one MonitorBrain running for some managemen

Re: [Tutor] Strange IndexError

2005-06-01 Thread Alan G
> Traceback (most recent call last): > File "NeedBrain.py", line 233, in update > self._isNearMarker = self._markerDist < self.STAY_MIN_DIST > IndexError: tuple assignment index out of range > > I don't see, where tuples are involved. I only compare two floats. I've Python > 2.3.4. Usually w

Re: [Tutor] Strange IndexError

2005-06-01 Thread Danny Yoo
On Wed, 1 Jun 2005, Willi Richert wrote: > in my code I get in rare occasions an IndexError which is > incomprehensible to me in that situation, where I do a simple > comparison: > > NeedBrain.py:233: RuntimeWarning: tp_compare didn't return -1 or -2 for > exception > self._isNearMarker = self

[Tutor] Strange IndexError

2005-06-01 Thread Willi Richert
Hi, in my code I get in rare occasions an IndexError which is incomprehensible to me in that situation, where I do a simple comparison: NeedBrain.py:233: RuntimeWarning: tp_compare didn't return -1 or -2 for exception self._isNearMarker = self._markerDist < self.STAY_MIN_DIST Traceback (most