| ▲ | Metacode: The new standard for machine-readable comments for Python(github.com) | |||||||||||||||||||||||||||||||
| 21 points by pomponchik 7 days ago | 7 comments | ||||||||||||||||||||||||||||||||
| ▲ | pomponchik 7 days ago | parent | next [-] | |||||||||||||||||||||||||||||||
In the Python ecosystem, there are many tools dealing with source code: linters, test coverage collection systems, and many others. Many of them use special comments, and as a rule, the style of these comments is very similar. But you know what? There is no single standard for such comments. Seriously. The internal implementation of reading such comments is also different. Someone uses regular expressions, someone uses even more primitive string processing tools, and someone uses full-fledged parsers, including the Python parser or even written from scratch. This is exactly the problem that this library solves. It describes a simple and intuitive standard for action comments, and also offers a ready-made parser that creators of other tools can use. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | est 19 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Perhaps in the future, coding is done in rich text editors. | ||||||||||||||||||||||||||||||||
| ▲ | throwaway290 19 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||
What's the old standard? Why not update it? | ||||||||||||||||||||||||||||||||