Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-19 Thread Chris Angelico
On Mon, Sep 20, 2021 at 3:19 AM Mostowski Collapse wrote: > > I am refering to: > > Greg Ewing schrieb: > > where [w] is a weak reference object. Then you could periodically > > scan the trail looking for dead weakref objects and remove the > > corresponding [*] node from the list. > > > > Yo

Re: The code version of python -i

2021-09-19 Thread Abdur-Rahmaan Janhangeer
Oh thanks a lot, i was way from list this week Just a note: it's pretty amazing to have at Chris Angelico at your local PUG Else, Well, let's say you have a lib that you need to provide users with a shell for them to try out functions, no need to translate functions to cli args. Like Django pro

Re: query

2021-09-19 Thread MRAB
On 2021-09-19 13:42, Shashwat Pandey wrote: -- Forwarded message - From: Date: Sun, Sep 19, 2021, 13:20 Subject: query To: Hello! I see you want to post a message to the Python List. We would be happy to help, but you must subscribe first: https://mail.python.org/mailman

Re: query

2021-09-19 Thread Mats Wichmann
On 9/19/21 06:42, Shashwat Pandey wrote: How to Fix Installation Error of PyAudio in VS Code ( Windows 32 Bit ) ?? Please Answer Me It's very essential to complete my concept digitalization system project. This comes up somewhat often - pyaudio has not released new binary installer pack

Re: on writing a while loop for rolling two dice

2021-09-19 Thread Hope Rouselle
dn writes: [...] > Further, if you look at the OP's original solution, it only publishes > the last pair, ie the match, without mention of the list of non-matches. > Was it perhaps only a means of testing the solution? It was a means of showing the student that indeed they obtained a match. If

Re: How to support annotations for a custom type in a C extension?

2021-09-19 Thread Serhiy Storchaka
19.09.21 05:59, MRAB пише: > On 2021-09-18 16:09, Serhiy Storchaka wrote: >> "(PyCFunction)" is redundant, Py_GenericAlias already has the right >> type. Overuse of casting to PyCFunction can hide actual bugs. >> > I borrowed that from listobject.c, which does have the cast. Fixed. https://github.

query

2021-09-19 Thread Shashwat Pandey
-- Forwarded message - From: Date: Sun, Sep 19, 2021, 13:20 Subject: query To: Hello! I see you want to post a message to the Python List. We would be happy to help, but you must subscribe first: https://mail.python.org/mailman/listinfo/python-list After you have subscribe

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-19 Thread Mostowski Collapse
The trail itself can possibly not be eliminated. Its like a database logfile. The trail is used during backtracking to undo variable bindings. Which is like a database rollback. Here is an example where a tail is used: /* X equals 1 or X equals 2 */ ?- X=1; X=2. X = 1; X = 2. In the first answer

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-19 Thread Mostowski Collapse
I am refering to: Greg Ewing schrieb: > where [w] is a weak reference object. Then you could periodically > scan the trail looking for dead weakref objects and remove the > corresponding [*] node from the list. > > You can also attach callbacks to weakref objects that are triggered > when the ref

Re: How to "cast" an object to a derived class?

2021-09-19 Thread Dieter Maurer
Robert Latest wrote at 2021-9-18 13:03 GMT: >Stefan Ram wrote: >> Robert Latest writes: But how can I "promote" a >>>given Opaque instance to the derived class? >> >> Sometimes, one can use containment instead of inheritance. > >Nah, doesn't work in my case. I'm trying to write a wrapper