Closed GoogleCodeExporter closed 8 years ago
thanks also for this one! unfortunately passing method references is not
supported at the moment. please see the documentation, section 'python subset
restrictions' for a description of this and other limitations.
the problem is that shedskin currently converts function references to C
function pointers, which can't hold state (such as a pointer to 'self' in case
of method references) or be easily put inside a container (such as a list).
this was an early mistake that might be quite a bit of work to correct..
Original comment by mark.duf...@gmail.com
on 30 Jan 2013 at 2:44
Original comment by mark.duf...@gmail.com
on 30 Jan 2013 at 2:45
I had not seen that in the python subset restrictions. I'll try to rework my
timer code to work within the limitations. It might not be too hard for me to
do - I think this is the only place I try to do this.
Also, I want to say that the process of making my python code avoid dynamic
types has actually made the code better. Most of the places I was using
dynamic types were not really that elegant or useful.
-p
Original comment by paulhaeb...@gmail.com
on 30 Jan 2013 at 2:55
[deleted comment]
this is my experience with dynamic types as well. the thing I love about
dynamic typing is not the actual dynamic typing, but the fact that you can
leave out all the type declarations.
Original comment by mark.duf...@gmail.com
on 16 Feb 2013 at 8:54
Original comment by mark.duf...@gmail.com
on 5 May 2013 at 12:54
Original issue reported on code.google.com by
paulhaeb...@gmail.com
on 30 Jan 2013 at 7:29Attachments: