main icon indicating copy to clipboard operation
main copied to clipboard

str(...)._formatter_field_name_split() allowed in 2.7

Open ironpythonbot opened this issue 9 years ago • 1 comments

D:\rft\vsl\dlr\Languages\IronPython\Tests>27  
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32  
Type "help", "copyright", "credits" or "license" for more information.  

>>> ''._formatter_field_name_split()  
>>> ('', <fieldnameiterator object at 0x02048428>)  
>>> ^Z  

D:\rft\vsl\dlr\Languages\IronPython\Tests>26  
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32  
Type "help", "copyright", "credits" or "license" for more information.  
''._formatter_field_name_split()  
Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  
ValueError: empty field name  
^Z  

D:\rft\vsl\dlr\Languages\IronPython\Tests>ipyd  
IronPython 2.7 Alpha 1 DEBUG (2.7.0.1) on .NET 4.0.30319.1  
Type "help", "copyright", "credits" or "license" for more information.  
''._formatter_field_name_split()  
Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  
ValueError: empty field name  
^Z  

Work Item Details

Original CodePlex Issue: Issue 28224 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 22, 2010 at 12:27 AM Reported by: dfugate Updated on: Feb 22, 2013 at 2:10 AM Updated by: jdhardy Test: test_strformat.py (test_format_field_name_split_errors)

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

On 2011-02-13 13:35:17 UTC, jdhardy commented:

This is still present in 2.7B2.

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot