A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/python/peps/commit/a459539920b9b8c8394ef61058e88a076ef8b133 below:

Tweak C API (#555) · python/peps@a459539 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-2

lines changed Original file line number Diff line number Diff line change

@@ -556,9 +556,13 @@ C API

556 556 557 557

5. ``PyContext * PyContext_New()``: create a new empty context.

558 558 559 -

6. ``PyContext * PyContext_Copy()``: get a copy of the current context.

559 +

6. ``PyContext * PyContext_Copy(PyContext *)``: return a shallow

560 +

copy of the passed context object.

560 561 561 -

7. ``int PyContext_Enter(PyContext *)`` and

562 +

7. ``PyContext * PyContext_CopyCurrent()``: get a copy of the current

563 +

context.

564 + 565 +

8. ``int PyContext_Enter(PyContext *)`` and

562 566

``int PyContext_Exit(PyContext *)`` allow to set and restore

563 567

the context for the current OS thread. It is required to always

564 568

restore the previous context::

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4