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

PyObject was made IEnumerable#596

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

Conversation

dmitriyse
Copy link
Contributor

@dmitriysedmitriyse commentedJan 12, 2018
edited
Loading

What does this implement/fix? Explain your changes.

enumerable python object cannot be directly enumerated through PyObject.

dynamicpyCollectionObj=newPyObject(collectionObjIntPtr);foreach(dynamiciteminpyCollectionObj){// This code currently does not works.}...### Does this close any currently openissues?No...### Any othercomments?Tests are failed due to NUnit Assert.Equals behavior. Whenobjectis IEnumerable Assert.Equals also compares all items....### ChecklistCheck all those that areapplicable andcomplete.-[]Makesure to include one or more testsfor your change-[]Ifan enhancement PR,pleasecreate docs and at best an example-[]Addyourself to[`AUTHORS`](../blob/master/AUTHORS.md)-[]Updatedthe[`CHANGELOG`](../blob/master/CHANGELOG.md)

@den-run-aiden-run-ai merged commitb8cb6c4 intopythonnet:masterFeb 10, 2018
@den-run-ai
Copy link
Contributor

So weird, this pull request caused master to fail consistently in Travis CI on Python 3.5:

https://travis-ci.org/pythonnet/pythonnet/jobs/339756543#L2103

1) Failed : Python.EmbeddingTest.TestExample.TestReadme  Expected string length 16 but was 13. Strings differ at index 2.  Expected: "[  6.  10.  12.]"  But was:  "[ 6. 10. 12.]"  -------------^at (wrapper dynamic-method) System.Object.CallSite.Target(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,string,object)at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2] (System.Runtime.CompilerServices.CallSite site, T0 arg0, T1 arg1, T2 arg2) [0x00110] in <b0fca80f08474611b248e2d30bb75230>:0at Python.EmbeddingTest.TestExample.TestReadme () [0x00958] in <ee790b8ab98547918ddc44014a1093cd>:0

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

@den-run-aiden-run-aiden-run-ai approved these changes

@filmorfilmorAwaiting requested review from filmor

@vmuriartvmuriartAwaiting requested review from vmuriart

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

Successfully merging this pull request may close these issues.

2 participants
@dmitriyse@den-run-ai

[8]ページ先頭

©2009-2025 Movatter.jp