Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pygolang
pygolang
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • nexedi
  • pygolangpygolang
  • Merge Requests
  • !5

Merged
Opened Jul 28, 2020 by Kirill Smelkov@kirr
  • Report abuse
Report abuse

gpython: Add way to run it with threads runtime

Until now gpython was always activating gevent on startup + adding goodness such as "always UTF-8 default encoding"; go, chan, b/u and friends available from builtin namespace, etc... While those goodness are sometimes useful on their own, it is not always appropriate to force a project to switch from threads to gevent.

For this reason add a flag to select which runtime - either gevent or threads - gpython should use.

    gpython -Xgpython.runtime=gevent        selects gevent,

while

    gpython -Xgpython.runtime=threads       selects threads.

Gevent remains the default.

It is also possible to specify desired runtime via $GPYTHON_RUNTIME environment variable.

The main change is in patch4. Patch3 is purely preparatory. Patch2 adds support for -V/--version along the way. Patch1 fixes -c/-m handling.

/cc @gabriel, @jerome, @klaus

  • Discussion 6
  • Commits 4
  • Changes 3
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/pygolang!5

Revert this commit

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7