[IronPython] Default lineno attribute on SyntaxError

Michael Foord michael.foord at resolversystems.com
Fri Jun 22 17:42:21 CEST 2007


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


-- 
Michael Foord
Resolver Systems
michael.foord at resolversystems.com

Office address:     17a Clerkenwell Road, London EC1M 5RD, UK
Registered address: 843 Finchley Road, London NW11 8NA, UK

Resolver Systems Limited is registered in England and Wales as company number 5467329.
VAT No. GB 893 5643 79 




More information about the Ironpython-users mailing list