The attached program initializes a member to 0, and then later redefines
the member to a class instance. This is not allowed within the shedskin model.
However, it should give an error message rather than crashing.
Running shedskin gives this output:
Traceback (most recent call last):
File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
6815, in <module>
main()
File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
6811, in main
analysis(name)
File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
6534, in analysis
analyze_virtuals()
File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
5444, in analyze_virtuals
if [cl for cl in concrete_cl.ancestors_upto(abstract_cl) if ident in
cl.funcs and not cl.funcs[ident].inherited]:
File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
108, in ancestors_upto
a = a.bases[0]
IndexError: list index out of range
Original issue reported on code.google.com by markdew...@gmail.com on 23 Jan 2008 at 5:40
Original issue reported on code.google.com by
markdew...@gmail.com
on 23 Jan 2008 at 5:40Attachments: