AeroEng43 / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

inheritance from extension class should either work or give a proper error #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. shedskin test.py
2.
3.

What is the expected output? What do you see instead?

expected: successful compilation or an error telling me I can't do this
instead: 

Traceback (most recent call last):
  File "/lfs1/chiang/pkg/shedskin-0.2/ss.py", line 433, in <module>
    main()
  File "/lfs1/chiang/pkg/shedskin-0.2/ss.py", line 430, in main
    annotate()
  File "/lfs1/chiang/pkg/shedskin-0.2/ss.py", line 216, in annotate
    paste(callfunc.node, typesetreprnew(callfunc, inode(callfunc).parent,
False))
  File "/lfs1/chiang/pkg/shedskin-0.2/ss.py", line 163, in paste
    line = source[expr.lineno-1][:-1]
IndexError: list index out of range

What version of the product are you using? On what operating system?
0.2
Linux

Please provide any additional information below.

Original issue reported on code.google.com by miriam.h...@gmail.com on 12 Dec 2009 at 12:37

Attachments:

GoogleCodeExporter commented 8 years ago
thanks for reporting! as mentioned in the tutorial, inheritance from builtins is
normally not supported. I personally also much prefer delegation over 
inheritance in
most cases, but I digress.. :) I improved the check for inheritance from 
builtins in SVN:

http://code.google.com/p/shedskin/source/detail?r=1051

thanks again, and please let me know if you encounter anything else.

Original comment by mark.duf...@gmail.com on 12 Dec 2009 at 9:30

GoogleCodeExporter commented 8 years ago

Original comment by mark.duf...@gmail.com on 12 Dec 2009 at 9:31

GoogleCodeExporter commented 8 years ago

Original comment by mark.duf...@gmail.com on 14 Dec 2009 at 8:53