-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: Add StringMethods.isnumeric and isdecimal #9439
Conversation
c4d3505
to
0046100
Compare
# 0x2605: ★ not number | ||
# 0x1378: ፸ ETHIOPIC NUMBER SEVENTY | ||
# 0xFF13: 3 Em 3 | ||
values = ['A', '3', unichr(0x00bc), unichr(0x2605), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh... I guess we still support Python 3.2 :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't 3.2 tested in below? I've expected compat.unichr
can work for 3.2 also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, it works!
I was going to suggest just using u'¼'
but the u
unicode literal is not supported on Python 3.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I also tried to use u
at first and failed... Will wait a conclusion of #9118.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u(...) is the way to handle 3.2 compat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can't use u( )
here because escaped unicode is not handled as numeric or decimal.
ENH: Add StringMethods.isnumeric and isdecimal
thanks! |
Derived from #9111.