Skip to content

BUG: fix unicode -> str cast in tslib #3900

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
merged 1 commit into from
Jun 15, 2013
Merged

BUG: fix unicode -> str cast in tslib #3900

merged 1 commit into from
Jun 15, 2013

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Jun 14, 2013

This should use format since calling str on a unicode string is a bad idea
because it may or may not repr correctly.

closes #3875.

another error is created from fixing this issue.

@cpcloud
Copy link
Member Author

cpcloud commented Jun 14, 2013

the other error created is #3899

This should use format since calling str on a unicode string is a *bad* idea
because it may or may not repr correctly.
@cpcloud
Copy link
Member Author

cpcloud commented Jun 14, 2013

@jreback this is ready 2 go can i merge?

@jreback
Copy link
Contributor

jreback commented Jun 15, 2013

how was this breaking?

@cpcloud
Copy link
Member Author

cpcloud commented Jun 15, 2013

when the TypeError was raised the hebrew unicode would throw a UnicodeEncodeError because str was being called on it

@cpcloud
Copy link
Member Author

cpcloud commented Jun 15, 2013

this was also hiding the infinite recursion bug

@jreback
Copy link
Contributor

jreback commented Jun 15, 2013

ok then

cpcloud added a commit that referenced this pull request Jun 15, 2013
BUG: fix unicode -> str cast in tslib
@cpcloud cpcloud merged commit bd4b69f into pandas-dev:master Jun 15, 2013
@cpcloud cpcloud deleted the tslib-fix branch June 15, 2013 00:14
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.

unicode encode error on index joins
2 participants