main icon indicating copy to clipboard operation
main copied to clipboard

".". does not generate a SyntaxError in interactive sessions

Open ironpythonbot opened this issue 11 years ago • 4 comments

Version: 2.0 Alpha 8(ish)
Flags: None
Platforms affected: all

E:\Main\Languages\IronPython\Tests>cpy
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

".".
File "", line 1

".".
   ^

SyntaxError: invalid syntax

^Z

E:\Main\Languages\IronPython\Tests>ipyd
IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
".".
...
...
...
...
... ^Z

Work Item Details

Original CodePlex Issue: Issue 15428 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Mar 3, 2008 at 10:59 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:15 AM Updated by: jdhardy

ironpythonbot avatar Dec 09 '14 16:12 ironpythonbot

On 2009-08-18 01:34:09 UTC, unknown user commented:

Error message should be the same as CPython too: E:\vslrgrs\Merlin\Main\Languages\IronPython\Tests>26 -c "'.'."  File "", line 1    '.'.       ^SyntaxError: invalid syntax E:\vslrgrs\Merlin\Main\Languages\IronPython\Tests>ipyd -c "'.'."  File "", line 1    '.'.        ^SyntaxError: syntax error

ironpythonbot avatar Dec 09 '14 16:12 ironpythonbot

On 2009-09-23 06:12:18 UTC, dinov commented:

The error message now only differs by the reported span. We report it as being 1,5 and CPython reports it as 1,4

ironpythonbot avatar Dec 09 '14 16:12 ironpythonbot

Seems to be solved.

simplicbe avatar Jul 19 '16 14:07 simplicbe

Error messages are still different.

slozier avatar Oct 26 '16 03:10 slozier