- Implement escaping by the backslash character
- advantages: elegant and predictable
- disadvantages: even more backwards incompatible than the current patch
- Make another list for the
__init__
method with prefixes disallowed for inline comments- advantages: backwards compatible
- disadvantages: awkward to use, complicates the API
- Make a switch in the
__init__
method for enabling/disabling inline comments whatsoever- advantages: better API than the backwards compatible solution
- disadvantages: backwards incompatible
I would be +1 on the first proposal, -0 on the rest.