Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-28810: Document BUILD_TUPLE_UNPACK_WITH_CALL bytecode added in 3.6 #239

Merged
merged 3 commits into from
Mar 10, 2017

Conversation

ilevkivskyi
Copy link
Member

This adds documentation for one more _UNPACK bytecode. This needs to be backported only to 3.6 and merged after #238

Documentation of other bytecodes added in 3.6 is discussed at http://bugs.python.org/issue28810

@serhiy-storchaka Please take a look.

@ilevkivskyi
Copy link
Member Author

@brettcannon Thank you for taking care of #238. I updated this PR accordingly, so that it is now ready for review. (This one only documents things added/changed in 3.6 so that it should be only backported to 3.6)

@brettcannon brettcannon self-assigned this Mar 4, 2017
@brettcannon brettcannon merged commit 7e52c3e into python:master Mar 10, 2017
brettcannon pushed a commit to brettcannon/cpython that referenced this pull request Mar 10, 2017
@brettcannon
Copy link
Member

Cherry-pick is in GH-605

akruis pushed a commit to akruis/cpython that referenced this pull request Apr 30, 2021
… function

Use a Py_LOCAL_INLINE function instead of a complicated macro. It is
much simpler to debug. In the next commit, we will context switching
to this function.
akruis pushed a commit to akruis/cpython that referenced this pull request Apr 30, 2021
Add a private context attribute and appropriate methods to class
tasklet. Document the changes in the manual.
New methods: tasklet.set_context(context), tasklet.context_run(...)
New readonly attribute: tasklet.context_id
akruis pushed a commit to akruis/cpython that referenced this pull request May 5, 2021
Add/improve pickling of the context of tasklets.
New pickle flag "PICKLEFLAGS_PICKLE_CONTEXT", new undocumented
function stackless._tasklet_get_unpicklable_state()
akruis pushed a commit to akruis/cpython that referenced this pull request May 5, 2021
akruis pushed a commit to akruis/cpython that referenced this pull request May 8, 2021
- better documentation of the concept
- fix a left-over from the time, when setting the context of a main-
  tasklet was not supported
- fix the context handling, when the main tasklet starts/ends. Copy the
  context from/to the thread state.
akruis pushed a commit to akruis/cpython that referenced this pull request May 8, 2021
- fix the context handling, when the main tasklet starts/ends. Copy the
  context from/to the thread state. Fix the test case.
akruis pushed a commit to akruis/cpython that referenced this pull request May 9, 2021
Use stackless._stackless._test_outside instead of
stackless.test_outside.
akruis pushed a commit to akruis/cpython that referenced this pull request May 13, 2021
Simplify context switching as sugested by Kristján.
akruis pushed a commit to akruis/cpython that referenced this pull request May 18, 2021
akruis pushed a commit to akruis/cpython that referenced this pull request May 18, 2021
… function

Use a Py_LOCAL_INLINE function instead of a complicated macro. It is
much simpler to debug. In the next commit, we will context switching
to this function.
akruis added a commit to akruis/cpython that referenced this pull request May 21, 2021
Add a private context attribute and appropriate methods to class
tasklet. Document the changes in the manual.
New methods: tasklet.set_context(context), tasklet.context_run(...)
New readonly attribute: tasklet.context_id
Add/improve pickling of the context of tasklets.
New pickle flag "PICKLEFLAGS_PICKLE_CONTEXT", new undocumented
function stackless._tasklet_get_unpicklable_state()
akruis pushed a commit to akruis/cpython that referenced this pull request Jun 5, 2021
… function

Use a Py_LOCAL_INLINE function instead of a complicated macro. It is
much simpler to debug. In the next commit, we will context switching
to this function.

(cherry picked from commit a11414b)
akruis added a commit to akruis/cpython that referenced this pull request Jun 5, 2021
Add a private context attribute and appropriate methods to class
tasklet. Document the changes in the manual.
New methods: tasklet.set_context(context), tasklet.context_run(...)
New readonly attribute: tasklet.context_id
Add/improve pickling of the context of tasklets.
New pickle flag "PICKLEFLAGS_PICKLE_CONTEXT", new undocumented
function stackless._tasklet_get_unpicklable_state()

(cherry picked from commit 032a566)
jaraco pushed a commit that referenced this pull request Dec 2, 2022
jaraco added a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
Replace tests of legacy API with comparable tests of traversable API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants