-
Notifications
You must be signed in to change notification settings - Fork 749
Fixed #296 Converter support for PyObject #297
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
den-run-ai
merged 7 commits into
pythonnet:master
from
rmadsen-ks:fix/develop/296-convert-PyObject
Dec 16, 2016
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7d132c9
Fixed #296
rmadsen-ks 2f367c0
Merge branch 'master' into fix/develop/296-convert-PyObject
rmadsen-ks bb73ed1
Added test for #296
rmadsen-ks 8d9d754
merged with master.
rmadsen-ks d5951f6
removed windows line endings
rmadsen-ks 335cd37
Fixed comment and removed \r from added source
rmadsen-ks 9033894
Merge branch 'master' into fix/develop/296-convert-PyObject
rmadsen-ks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
import System | ||
import six | ||
from Python.Test import ClassTest | ||
from System.Collections import Hashtable | ||
from System.Collections import Hashtable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where is this needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was not needed by me, but it seems I had added a windows line-ending. Its fixed now. |
||
|
||
if six.PY3: | ||
DictProxyType = type(object.__dict__) | ||
|
@@ -250,6 +250,21 @@ def testComparisons(self): | |
c2 = ClassTest() | ||
self.assertRaises(TypeError, lambda: c1 < c2) | ||
|
||
def testSelfCallback(self): | ||
""" Test calling back and forth between this and a c# baseclass.""" | ||
class CallbackUser(Test.SelfCallbackTest): | ||
def DoCallback(self): | ||
self.PyCallbackWasCalled = False | ||
self.SameReference = False | ||
return self.Callback(self) | ||
def PyCallback(self, self2): | ||
self.PyCallbackWasCalled = True | ||
self.SameReference = self == self2 | ||
|
||
testobj = CallbackUser() | ||
testobj.DoCallback() | ||
self.assertTrue(testobj.PyCallbackWasCalled) | ||
self.assertTrue(testobj.SameReference) | ||
|
||
class ClassicClass: | ||
def kind(self): | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor nitpick, but shouldn't that read "inherited by a Python class"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment has been changed.