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

small pypanda interface fixes #1532

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

small pypanda interface fixes #1532

wants to merge 1 commit into from

Conversation

zestrada
Copy link
Member

A few minor usability things

@AndrewFasano
Copy link
Contributor

I know it's a draft but all these changes look good to me - will hold off on merging until you mark it as ready for review.

@@ -1725,7 +1725,7 @@ def get_file_name(self, cpu, fd):
return None
if fname_ptr == self.ffi.NULL:
return None
return self.ffi.string(fname_ptr)
return self.ffi.string(fname_ptr).decode('utf8', 'ignore')
Copy link
Member

Choose a reason for hiding this comment

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

As much as I like this change it will break all the code that uses this currently.

Also: in Linux I'd expect Latin-1.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for Latin-1

PyPanda is versioned, are we not willing to make updates that break backwards compatibility with new versions? Or are you just suggesting we should update the in-tree uses of get_file_name to account for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

We use utf-8 everywhere else in these interfaces, so maybe we should change those too if we're wanting to use Latin-1?

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.

3 participants