Trivial: isnumeric() gets differente results with 'str' / 'unicode' objects
- u''.isnumeric() returns 'True' in IronPython but 'False' in Cpython
u''.isnumeric()
2) 'str' objedt has no attribute 'isnumeric' in Cpython
''.isnumeric()
3) from u'\u2460' to u'\u2499' CPython returns True but IronPython returns False
u'\u2460' .isnumeric()
C:\Documents and Settings\v-sinis>ipy
IronPython console: IronPython 2.0A6 (2.0.11102.00) on .NET 2.0.50727.832
Copyright (c) Microsoft Corporation. All rights reserved.
u''.isnumeric()
True
''.isnumeric()
True
u'\u2460' .isnumeric()
False
^Z
C:\Documents and Settings\v-sinis>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
on
win32
Type ";help";, ";copyright";, ";credits"; or ";license"; for more information.
u''.isnumeric()
False
''.isnumeric()
Traceback (most recent call last):
File ";";, line 1, in
AttributeError: 'str' object has no attribute 'isnumeric'
u'\u2460'.isnumeric()
True
Work Item Details
Original CodePlex Issue: Issue 23849 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 28, 2009 at 12:01 AM Reported by: dfugate Updated on: Feb 22, 2013 at 2:12 AM Updated by: jdhardy Custom value: Reported internally at Microsoft. Test: test_unicode.py CreatedDate: 11/27/2007 NewInternalID: 409662 OldInternalID: 323667 AreaPath: IronPython\Runtime