Re: [Python-ideas] Problems (and solutions?) in writing decorators

2019-03-20 Thread Sylvain MARIE via Python-ideas
All of your answers are true, > (Chris) > "my_decorator(x=foo)" is not going to look like "@my_decorator \n def foo". That’s one of the many ways that `decopatch` uses to perform the disambiguation, indeed. But that’s already the user helping the lib, not the other way round > (Christopher) >

Re: [Python-ideas] Add subprocess.Popen suspend() and resume()

2019-03-20 Thread eryk sun
On 3/18/19, Giampaolo Rodola' wrote: > > I've been having these 2 implemented in psutil for a long time. On > POSIX these are convenience functions using os.kill() + SIGSTOP / > SIGCONT (the same as CTRL+Z / "fg"). On Windows they use > undocumented NtSuspendProcess and NtResumeProcess Windows >

Re: [Python-ideas] PEP: Dict addition and subtraction

2019-03-20 Thread Christopher Barker
On Sat, Mar 16, 2019 at 12:39 AM Antoine Pitrou wrote: > On Sat, 16 Mar 2019 01:41:59 +1100 > Steven D'Aprano wrote: > > > Matrix multiplication is a perfect example: adding the @ operator could > > have been done in Python 0.1 if anyone had thought of it, but it took 15 > > years of numerical