Re: python developer

2022-09-30 Thread Mike Dewhirst
On 30/09/2022 3:31 pm, Jan van den Broek wrote: 2022-09-29, Mike Dewhirst schrieb: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) Why? Good question. Further to Peter's explanation, email is the primary conduit for hackers. At this point in time human education and training is

Re: PyObject_CallFunctionObjArgs segfaults

2022-09-30 Thread Greg Ewing
On 1/10/22 8:18 am, MRAB wrote: It's OK to INCREF them, provided that you DECREF them when you no longer need them, and remember that if it's a "new reference" you'd need to DECREF it twice. Which means there would usually be no point in doing the extra INCREF/DECREF. You still need to know wh

Re: PyObject_CallFunctionObjArgs segfaults

2022-09-30 Thread Jen Kris via Python-list
That's great.  It clarifies things a lot for me, particularly re ref count for new references.  I would have had trouble if I didn't decref it twice.  Thanks very much once again.  Sep 30, 2022, 12:18 by [email protected]: > On 2022-09-30 17:02, Jen Kris wrote: > >> >> Thanks very

Re: PyObject_CallFunctionObjArgs segfaults

2022-09-30 Thread MRAB
On 2022-09-30 17:02, Jen Kris wrote: Thanks very much for your detailed reply.  I have a few followup questions. You said, “Some functions return an object that has already been incref'ed ("new reference"). This occurs when it has either created a new object (the refcount will be 1) or has

Re: python developer

2022-09-30 Thread Peter J. Holzer
On 2022-09-30 05:31:15 -, Jan van den Broek wrote: > 2022-09-29, Mike Dewhirst schrieb: > > This is an OpenPGP/MIME signed message (RFC 4880 and 3156) > > Why? Why not? Signing an email protects against impersonation and tampering. While you may not be assured that my name is indeed "Peter J

Re: Implementation of an lru_cache() decorator that ignores the first argument

2022-09-30 Thread Heinrich Kruger
On Thursday, September 29th, 2022 at 07:18, Robert Latest via Python-list wrote: > Hi Chris and dh, > > thanks for your --as usually-- thoughtful and interesting answers. Indeed, > when > doing these web applications I find that there are several layers of useful, > maybe less useful, and unk

Re: PyObject_CallFunctionObjArgs segfaults

2022-09-30 Thread Jen Kris via Python-list
Thanks very much for your detailed reply.  I have a few followup questions.  You said, “Some functions return an object that has already been incref'ed ("new reference"). This occurs when it has either created a new object (the refcount will be 1) or has returned a pointer to an existing objec

Re: python developer

2022-09-30 Thread Jan van den Broek
2022-09-29, Mike Dewhirst schrieb: > This is an OpenPGP/MIME signed message (RFC 4880 and 3156) Why? [Schnipp] -- Jan v/d Broek [email protected] -- https://mail.python.org/mailman/listinfo/python-list