Skip to content
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

Always assume python bytes type IF not PILImage or np.ndarray #660

Closed

Conversation

syaifulnizamyahya
Copy link
Contributor

When working with pythonnet in c#, we can't provide python bytes types. Although this will fix the call from C#, not sure about other scenario.

When working with pythonnet in c#, we can't provide python bytes types. 
Although this will fix the call from C#, not sure about other scenario.
@syaifulnizamyahya
Copy link
Contributor Author

@danielgatis If you want, I can provide simple example complete with python virtual environment configured for pythonnet

@syaifulnizamyahya
Copy link
Contributor Author

Another idea is a parameter to force remove function to assume the type is python bytes.
Eg. remove(input, assume_bytes = true)

@danielgatis
Copy link
Owner

Another idea is a parameter to force remove function to assume the type is python bytes. Eg. remove(input, assume_bytes = true)

I think this path is perfect.
This way we maintain compatibility with old versions.

@syaifulnizamyahya
Copy link
Contributor Author

#663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants