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

Add very simple example editor#1333

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

Closed
gpetrou wants to merge1 commit intopythonnet:masterfromgpetrou:Editor

Conversation

gpetrou
Copy link
Contributor

@gpetrougpetrou commentedDec 19, 2020
edited
Loading

What does this implement/fix? Explain your changes.

I am doing my first steps in Python .NET and I created a small editor project in order to test the library. Looking for information on how to redirect output to C# and interrupt execution, I saw that other people had the same questions. So, I thought of making this small contribution to get other people started with this library instead of looking for the same things as I did.

Does this close any currently open issues?

Any other comments?

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

@dnfadmin
Copy link

dnfadmin commentedDec 19, 2020
edited
Loading

CLA assistant check
All CLA requirements met.

@gpetrougpetrouforce-pushed theEditor branch 4 times, most recently from67474eb to9889ff1CompareDecember 19, 2020 14:57
@filmor
Copy link
Member

Hi,

First, thank you for your contribution. To me, these really look like two separate PRs, one for theInterrupt function and one for theEditor example.

Regarding theInterrupt:

  1. This requires a test
  2. Strictly, the thread-id attribute isunsigned only for Python >= 3.7 and we still support 3.6
  3. Also, since the original type islong, the "correct" type is(U)IntPtr on everything but Windows
  4. (Not quite sure how far we have to go there compatibility-wise, the current implementation could be fine for the usual thread IDs)
  5. Maybe we should just expose the API function directly (i.e.RaiseInPythonThread onException objects or so) and makeInterrupt use that

Regarding theEditor:

  1. Should be in its own PR
  2. Should not be insrc/
    I didn't read the actual code yet, but a self-contained example like this is definitely a useful addition.

@lostmsu
Copy link
Member

I'd say example of this size should have its own repo.

@gpetrougpetrou changed the titleAdd very simple example editor and Interrupt method in RuntimeAdd very simple example editorFeb 13, 2021
@gpetrougpetrouforce-pushed theEditor branch 2 times, most recently from171fa42 toe97ff8aCompareFebruary 13, 2021 07:32
@gpetrou
Copy link
ContributorAuthor

@filmor any thoughts on this now that the Interrupt PR was separated?

@lostmsu
Copy link
Member

I'd say example of this size should have its own repo.

Copy link

@PACE100PACE100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

First Time Coding

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@PACE100PACE100PACE100 approved these changes

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

Successfully merging this pull request may close these issues.

5 participants
@gpetrou@dnfadmin@filmor@lostmsu@PACE100

[8]ページ先頭

©2009-2025 Movatter.jp