This question was asked here about an hour ago. @Mast was kind enough to explain what was wrong with the first revision and pointed OP to the help center. OP then revised the question (revision 2) to include more context. I found it looked hypothetical, judging by names like MyClass
and f
, the # stub
comment and the rather meaningless docstring. I commented:
The class seems pretty hypothetical still (with names like MyClass and comments like # stub). Please edit your question to include the actual code you're using.
To which OP replied:
This is the actual code I'm using. I haven't implemented the other functions yet, and I was hoping to just get the code implemented thus-far reviewed. ... [omitted]
The question got put on hold as off-topic about 15 minutes later. Was this justified?
Further, the code was apparantly 'not working as expected', but OP never mentioned that, nor does it contain any obvious problems regarding syntax (or even anything that could raise a NameError
). Did anybody run it?