News for hackers. Stuff that matters.
Re:How to Write a Spelling Corrector by junke on Thursday September 08, 2016 @12:41PM (#12454619)
What is wrong with his docstrings?
Re:How to Write a Spelling Corrector by benhoyt on Thursday September 08, 2016 @12:46PM (#12454652)
Nothing's wrong with them. Though it is more usual to use triple quotes for docstrings even if they fit on one line (see PEP 257, "Triple quotes are used even though the string fits on one line. This makes it easy to later expand it.").
Re:How to Write a Spelling Corrector by xapata on Thursday September 08, 2016 @01:53PM (#12455348)
Easy in the sense of more pleasant version control diffs.
Re:How to Write a Spelling Corrector by leblancfg on Thursday September 08, 2016 @04:19PM (#12456902)
Couldn't it cause issues with "object definition" code in REPLs and editors, and interfere with documentation generators, i.e. [Sphinx](http://www.sphinx-doc.org/en/stable/)?
Re:How to Write a Spelling Corrector by xapata on Thursday September 08, 2016 @06:29PM (#12457974)
I'd be surprised if so. Most of those tools rely on the built-in parser, which treats all string literals similarly.