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

Rebased PR 450 (Py_Initialize without overriding signals)#724

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

filmor
Copy link
Member

@rmadsen-ks

What does this implement/fix? Explain your changes.

Avoiding overriding signals from the application so that CTRL-C might be handled.

Using Py_InitializeEx(0) (instead Py_Initialize) to avoid overriding signals.

Does this close any currently open issues?

#449#450

Any other comments?

Just a rebased version of#450.

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

@den-run-ai
Copy link
Contributor

@filmor why is this failing CI?

@filmor
Copy link
MemberAuthor

Something aboutCSharpCodeProvider, I'll look into it. It's the same error that@rmadsen-ks had already when he pushed the PR, I think.

@filmorfilmor changed the titleRebased PR 450Rebased PR 450 (Py_Initialize without overriding signals)Aug 30, 2018
@filmorfilmor added this to the2.4.0 milestoneAug 30, 2018
@codecov
Copy link

codecovbot commentedOct 16, 2018
edited
Loading

Codecov Report

❗ No coverage uploaded for pull request base (master@e0f47ba).Click here to learn what that means.
The diff coverage is66.66%.

Impacted file tree graph

@@            Coverage Diff            @@##             master     #724   +/-   ##=========================================  Coverage          ?   75.58%           =========================================  Files             ?       60             Lines             ?     5627             Branches          ?      888           =========================================  Hits              ?     4253             Misses            ?     1060             Partials          ?      314
FlagCoverage Δ
#setup_linux68.55% <ø> (?)
#setup_windows74.56% <66.66%> (?)
Impacted FilesCoverage Δ
src/runtime/runtime.cs90.9% <0%> (ø)
src/runtime/pythonengine.cs78.09% <100%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatee0f47ba...3d6024d. Read thecomment docs.

@filmorfilmorforce-pushed the449_Py_Initialize_SignalConfiguration branch from168ec06 toe2b8c25CompareOctober 29, 2018 12:47
@filmorfilmor added the next labelOct 29, 2018
@rmadsen-ks
Copy link
Contributor

@filmor, the only change in this code is optionally calling InitializeEx instead of Initialize. This code is often being touched by tests. The actual change here is really simple, the unit test is excessively complex. Could you consider merging this without a unittest testing CTRL+C explicitly?

@filmorfilmorforce-pushed the449_Py_Initialize_SignalConfiguration branch fromcabeec8 tof9810f8CompareNovember 13, 2018 12:21
@filmor
Copy link
MemberAuthor

I think you are right. I'll merge the PR without the unit test using a merge commit, that way the test is at least present in the history.

den-run-ai reacted with thumbs up emoji

@filmorfilmor mentioned this pull requestNov 15, 2018
@filmorfilmor modified the milestones:2.4.0,3.0.0Nov 15, 2018
@filmorfilmor added test and removed next labelsNov 15, 2018
@filmorfilmorforce-pushed the449_Py_Initialize_SignalConfiguration branch frome38124a to3d6024dCompareNovember 15, 2018 13:17
@filmorfilmor closed thisMar 6, 2019
@filmorfilmor deleted the 449_Py_Initialize_SignalConfiguration branchMarch 6, 2019 16:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@den-run-aiden-run-aiAwaiting requested review from den-run-ai

@dmitriysedmitriyseAwaiting requested review from dmitriyse

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
3.0.0
Development

Successfully merging this pull request may close these issues.

3 participants
@filmor@den-run-ai@rmadsen-ks

[8]ページ先頭

©2009-2025 Movatter.jp