IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

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

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago
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 commented 9 years ago

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

This is still present in 2.7B2.