[IronPython] Default lineno attribute on SyntaxError
Michael Foord
fuzzyman at voidspace.org.uk
Fri Jun 22 17:55:20 CEST 2007
Oh - and if this the fix for this could be backported to 1.1 that would
be really helpful, this bug is really inconvenient for us.
Thanks
Michael
Michael Foord wrote:
> Hello all,
>
> CPython:
>
> >>> s = SyntaxError('s')
> >>> s.lineno
> >>>
>
>
> IP 1.1:
>
> >>> s = SyntaxError('hello')
> >>> s.lineno
> Traceback (most recent call last):
> AttributeError: 'instance' object has no attribute 'lineno'
>
> :-(
>
> Michael
> http://www.voidspace.org.uk/ironpython/index.shtml
>
>
>
More information about the Ironpython-users
mailing list