> > Can someone please clarify the exact behaviour of "async with"?
>
> "async with" is expected to behave essentially the same way that
> normal "with" does as far as return, break, and continue are concerned
> (i.e. calling __aexit__ without an exception set, so it's more like
> try/finally than
Hi all,
Regarding the behaviour of the "async with" statement: it seems that the
description of it in PEP492, and the language documentation, do not match
the behaviour of CPython (v3.6.1).
The PEP and the docs here:
Hi Yury,
That's great news about the speed improvements with the dict offset cache!
> The cache struct is defined in code.h [2], and is 32 bytes long. When a
> code object becomes hot, it gets an cache offset table allocated for it
> (+1 byte for each opcode) + an array of cache structs.
Ok, so
Hi Yury,
> An off-topic: have you ever tried hg.python.org/benchmarks
> or compare MicroPython vs CPython? I'm curious if MicroPython
> is faster -- in that case we'll try to copy some optimization
> ideas.
I've tried a small number of those benchmarks, but not in any rigorous
way, and not
Hi Yuri,
I think these are great ideas to speed up CPython. They are probably
the simplest yet most effective ways to get performance improvements
in the VM.
MicroPython has had LOAD_METHOD/CALL_METHOD from the start (inspired
by PyPy, and the main reason to have it is because you don't need to
Hi Yury,
(Sorry for misspelling your name previously!)
> Yes, we'll need to add CALL_METHOD{_VAR|_KW|etc} opcodes to optimize all
> kind of method calls. However, I'm not sure how big the impact will be,
> need to do more benchmarking.
I never did such fine grained analysis with MicroPython.
Hi python-dev,
We have a Python script that runs correctly under Python 2.6, 2.7 and 3.3+.
It is executed on a *nix system using the "python" executable (ie not
python2 or python3 specifically). This works just fine for systems that
have Python 2 installed, or 2 and 3, or just 3 and symlink
Hi Yury,
In your PEP 492 draft, in the Grammar section, I think you're missing
the modifications to the flow_stmt line.
Cheers,
Damien.
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: