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

Explorarion of the new *Reference types: reimplemented some of the PyList members using BorrowedReference#1068

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

Merged
filmor merged 2 commits intopythonnet:masterfromlosttech:PR/ReferenceExploration
Mar 3, 2020

Conversation

lostmsu
Copy link
Member

Just playing with the new *Reference types to see what patterns might arise.

This adds:

  • PyObject.Reference internal property, that exposes the same pointer asobj, but in a way, that it is clear, that the reference is borrowed
  • PyObject(BorrowedReference) constructor, that extracts the address from the reference andIncRefs it before storing in the instance
  • a few of thePyList_* methods now explicitly takeBorrowedReference instead of raw pointers

@lostmsu
Copy link
MemberAuthor

@amos402 I noticed you had to make code changes usingPyList in#958 . If you review this, those changes might not be needed anymore.

@lostmsulostmsu added this to the2.4.1 milestoneMar 3, 2020
@filmorfilmor merged commit9fd877e intopythonnet:masterMar 3, 2020
@amos402
Copy link
Member

@lostmsu Still needs, because I need to put them into collection and return somewhere. That's why I suggest making them copyable before.

@lostmsulostmsu deleted the PR/ReferenceExploration branchMarch 9, 2020 19:30
@amos402amos402 mentioned this pull requestMar 10, 2020
4 tasks
@lostmsulostmsu modified the milestones:2.4.1,2.5.0Apr 23, 2020
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorfilmor approved these changes

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

Successfully merging this pull request may close these issues.

3 participants
@lostmsu@amos402@filmor

[8]ページ先頭

©2009-2025 Movatter.jp