Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adjust the Optional Restrictions of _Py_NewInterpreterFromConfig() #98610

Closed
Assignees
ericsnowcurrently
Labels
@ericsnowcurrently

Description

@ericsnowcurrently

(prerequisite:gh-98608)

Currently, the optional restrictions on subinterpreters are:

  • disallow fork
  • disallow subprocess
  • disallow threads
  • defaults for "isolated" interpreters: (no fork, no subprocess, no threads)

When we added those, were were being a bit conservative. At this point we should adjust to the following:

  • disallow fork
  • disallow exec
  • disallow threads
  • disallow daemon threads
  • defaults for "isolated" interpreters: (no fork, no exec, no daemon threads, regular threads OK)

That means we would stop disallowing subprocess (even if fork or exec are disabled). We'd add an option for "exec". We'd also add an option for daemon threads and disable only those (rather thanall threads) by default for isolated interpreters.

CC@gpshead

Metadata

Metadata

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp