Re: Python 3.8 and :=

2019-12-25 Thread Jeff Gitlin
On Wednesday, December 25, 2019 at 9:13:09 AM UTC-5, Jeff Gitlin wrote: > With the new operator := in Python 3.8 > that allows you to do things like > > if ( x := f() ) == 1: > > Is there any reason to use just the assignment operator? ……….. Thanks. That web page is exactly what I was lookin

Re: Python 3.8 and :=

2019-12-25 Thread Chris Angelico
On Thu, Dec 26, 2019 at 4:21 AM Jeff Gitlin wrote: > > On Wednesday, December 25, 2019 at 9:22:56 AM UTC-5, Chris Angelico wrote: > > On Thu, Dec 26, 2019 at 1:16 AM Jeff Gitlin wrote: > > > > > > With the new operator := in Python 3.8 > > > that allows you to do things like > > > > > > if ( x :=

Re: Python 3.8 and :=

2019-12-25 Thread Jeff Gitlin
On Wednesday, December 25, 2019 at 9:22:56 AM UTC-5, Chris Angelico wrote: > On Thu, Dec 26, 2019 at 1:16 AM Jeff Gitlin wrote: > > > > With the new operator := in Python 3.8 > > that allows you to do things like > > > > if ( x := f() ) == 1: > > > > Is there any reason to use just the assignment

Re: How to call C functions from Linux C executable and vice-versa

2019-12-25 Thread Chris Angelico
On Thu, Dec 26, 2019 at 3:41 AM Manomugdha Biswas wrote: > > Hi, > I have a Linux C binary (executable, not .so file). i can update (add new > files/folders if it is required) but after compilation i will get a binary > executable file. > I want to access/call few functions of this executable from

How to call C functions from Linux C executable and vice-versa

2019-12-25 Thread Manomugdha Biswas
Hi, I have a Linux C binary (executable, not .so file). i can update (add new files/folders if it is required) but after compilation i will get a binary executable file. I want to access/call few functions of this executable from python. for this i want to use cython interface (most probably cython

Re: Python 3.8 and :=

2019-12-25 Thread Chris Angelico
On Thu, Dec 26, 2019 at 1:16 AM Jeff Gitlin wrote: > > With the new operator := in Python 3.8 > that allows you to do things like > > if ( x := f() ) == 1: > > Is there any reason to use just the assignment operator? I don't understand the question. Are you asking why the normal "=" operator shou

Python 3.8 and :=

2019-12-25 Thread Jeff Gitlin
With the new operator := in Python 3.8 that allows you to do things like if ( x := f() ) == 1: Is there any reason to use just the assignment operator? -- https://mail.python.org/mailman/listinfo/python-list