[Python-Dev] Re: PoC: Subinterpreters 4x faster than sequential execution or threads on CPU-bound workaround

2020-05-07 Thread Cody Piersall
On Tue, May 5, 2020 at 6:44 PM Joseph Jenne via Python-Dev wrote: > > I'm seeing a drop in performance of both multiprocess and subinterpreter > based runs in the 8-CPU case, where performance drops by about half > despite having enough logical CPUs, while the other cases scale quite > well. Is

Re: [Python-Dev] PEP 549: Instance Properties (aka: module properties)

2017-09-06 Thread Cody Piersall
On Wed, Sep 6, 2017 at 10:26 AM, Guido van Rossum wrote: > > So we've seen a real use case for __class__ assignment: deprecating things on > access. That use case could also be solved if modules natively supported > defining __getattr__ (with the same "only used if attribute

Re: [Python-Dev] Recent changes to PyCodeObject

2016-11-17 Thread Cody Piersall
On Wed, Nov 16, 2016 at 6:18 PM, Ned Batchelder wrote: > > When I added Python 3.6 support to coverage.py, I posted a Mac wheel to > PyPI: https://pypi.python.org/pypi/coverage/ That wheel was built > against 3.6a3, the latest version at the time. When I use it now on >

Re: [Python-Dev] Smoothing the transition from Python 2 to 3

2016-06-10 Thread Cody Piersall
> One problem is that the str literals should be bytes > literals. Comparison with None needs to be avoided. > > With Python 2 code runs successfully. With Python 3 the code > crashes with a traceback. With my modified Python 3.6, the code > runs successfully but generates the following