Skip to content

small pypanda interface fixes#1532

Draft
zestrada wants to merge 1 commit intodevfrom
pypyanda_small_fixes
Draft

small pypanda interface fixes#1532
zestrada wants to merge 1 commit intodevfrom
pypyanda_small_fixes

Conversation

@zestrada
Copy link
Copy Markdown
Member

A few minor usability things

@AndrewFasano
Copy link
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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