The community solution preview (python/proverb
) for my solution is displaying just the docstring and nothing else. I’m pretty sure this isn’t supposed to work this way.
(Colors changed by Chrome DarkReader)
The community solution preview (python/proverb
) for my solution is displaying just the docstring and nothing else. I’m pretty sure this isn’t supposed to work this way.
(Colors changed by Chrome DarkReader)
Sounds like a bug in the snippet extractor.
This is the Python snippet code (see the README to know what’s going on!)
I’d happily a PR to that repo!
I see mismatched quotes on line 1:
"Recite a proverb."""
That would cause the snippet extractor to “invert” what’s considered to be inside the docstrings I assume.
Heh. That’s definitely not what I intended in my code and I can fix it … but it’s a valid (albeit not Pythonic) docstring and the parser ought to handle that better.
Thanks for catching that!
The downside of parsing by regex.