Skip to content

Instantly share code, notes, and snippets.

@ambv
Created July 28, 2010 12:18
Show Gist options
  • Save ambv/494288 to your computer and use it in GitHub Desktop.
Save ambv/494288 to your computer and use it in GitHub Desktop.

Possible solutions

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment