Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Thomas Passin
On 3/23/2023 3:38 PM, Mats Wichmann wrote: On 3/23/23 09:48, Thomas Passin wrote: I didn't realize that Christoph Gohlke is still maintaining this site. Unless the the last-changed stuff stopped working, it's in a static state: by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC I

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Mats Wichmann
On 3/23/23 09:48, Thomas Passin wrote: I didn't realize that Christoph Gohlke is still maintaining this site. Unless the the last-changed stuff stopped working, it's in a static state: by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC --

RE: Problem with __sub__

2023-03-23 Thread David Raymond
I believe your problem is __rsub__, not __sub__. When you havethen that uses the "r" version of the operators. In your __rsub__ (used when you have - ) you instead return - which is backwards. Notice how the final return should also be -4,95 and not the +4,95 it's returning. > If on

Problem with __sub__

2023-03-23 Thread Egon Frerich
The class Betragswert is used for numerical values as string or integer and for additions and subtraction. If on the left side is '0' the result of a subtraction is wrong. *    b1 = Betragswert(500)     b2 = 0 + b1     b3 = 0 - b1     b4 = 5 + b1     b5 = 5 - b1* print(b1, b2, b3, b4, b5)

Re: PyGILState_Release called twice in embedded application

2023-03-23 Thread Barry
> On 23 Mar 2023, at 14:34, Arnaud Loonstra wrote: > > On 23-03-2023 13:33, Barry Scott wrote: On 23 Mar 2023, at 08:46, Arnaud Loonstra wrote: >>> >>> Hi all, >>> >>> I'm running in a crash due to a ResourceWarning (some socket is not closed >>> in a used module) after calling

Python Infrequently Asked Questions

2023-03-23 Thread Thomas Passin
I bookmarked this years ago and just came across it again. An oldie but goodie! http://norvig.com/python-iaq.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Thomas Passin
On 3/18/2023 3:05 PM, Thomas Passin wrote: downloaded and run HWiNFO and AVE not supported, not greened out That's too bad; you may be out of luck. It's possible that someone has compiled the .pyd library in such a way that it does not need the instruction set extensions. I'm sorry but I

Re: PyGILState_Release called twice in embedded application

2023-03-23 Thread Arnaud Loonstra
On 23-03-2023 13:33, Barry Scott wrote: On 23 Mar 2023, at 08:46, Arnaud Loonstra wrote: Hi all, I'm running in a crash due to a ResourceWarning (some socket is not closed in a used module) after calling PyGILState_Release. I'm running Python in a native thread (so a thread created by C

Re: PyGILState_Release called twice in embedded application

2023-03-23 Thread Barry Scott
> On 23 Mar 2023, at 08:46, Arnaud Loonstra wrote: > > Hi all, > > I'm running in a crash due to a ResourceWarning (some socket is not closed in > a used module) after calling PyGILState_Release. > > I'm running Python in a native thread (so a thread created by C not Python). > I'm

PyGILState_Release called twice in embedded application

2023-03-23 Thread Arnaud Loonstra
Hi all, I'm running in a crash due to a ResourceWarning (some socket is not closed in a used module) after calling PyGILState_Release. I'm running Python in a native thread (so a thread created by C not Python). I'm acquiring the GIL through PyGILState_Ensure before doing any CPYthon calls