Kludge_copy question


I have a class that inherits from “gr.kludge_copy”. For now this class
does nothing but to copy the inputs to outputs:

class MyClass (gr.kludge_copy):

def __init__(self, size):


I might not have done something correctly so when I used MyClass as one
of the blocks in my flow graph, the error was:

TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str

I looked at the kludge_copy QA code. It’s used as a standalone not an
inherited object. So am I using it correctly in MyClass?


  • David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs