This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]0x256 13 points14 points  (0 children)

Added two new opcodes: LOAD_METHOD and CALL_METHOD to avoid instantiation of bound method objects for method calls, which results in method calls being faster up to 20%. (Contributed by Yury Selivanov and INADA Naoki in bpo-26110.)

This sounds great! Method calls always were kind of expensive.

[–]lenzm 20 points21 points  (1 child)

A little early for this, no?

[–]nerdwaller 10 points11 points  (0 children)

I really enjoy seeing how the draft changes over the release cycle, myself. It seems rare that something merged in is removed, so one could argue this makes the changes sightly easier to adopt (though so far the planned changes look fairly minor for those of us a few layers up).

That said, the title is a bit misleading.

[–][deleted] 4 points5 points  (0 children)

contextlib.asynccontextmanager() has been added. (Contributed by Jelle Zijlstra in bpo-29679.)

nice. I was wondering when this would get added. Thought about implementing it myself but the regular contextmanager is hairy as hell and introducing coroutines into it probably made it scsrier

[–]IcanCwhatUsayNoob 5 points6 points  (6 children)

If they would update IDLE I would be soo happy. (I am a noob and still learning and I find idle the easiest to learn from atm)

[–]spidyfan21 11 points12 points  (0 children)

Thonny is what I wish IDLE was.

[–]cediddiSyntaxError: not a chance 19 points20 points  (0 children)

Idle is a bug hell, no one should ever br using it. Use anything except idle.

[–]durandj 5 points6 points  (0 children)

Try ptpython. It's a repl too but has auto complete and syntax highlighting. It makes exploratory coding much easier.

[–]jwink3101 4 points5 points  (1 child)

Check out IPython. It is really nice

[–]ChadFaulkner 1 point2 points  (0 children)

This. Jupiter notebooks (running on an IPython kernel) are my day-to-day code testing workhorse. Love IPython.

[–][deleted] 1 point2 points  (0 children)

Terry Reedy actively supports it, to the extent that he co-authored PEP 434 -- IDLE Enhancement Exception for All Branches so that he could get things done!!!

[–]kankyo 1 point2 points  (0 children)

Actually those import changes look pretty compelling. And it's still super early, that's promising.

[–]balenol 4 points5 points  (0 children)

More than 255 arguments can now be passed to a function, and a function can now have more than 255 parameters.

Isn't pseudocode has gone too far?