4 ms·
WAT?. Python can parse the above very nicely, thank you. >>> value = "example # no that's not a comment" # but here's one >>> value "example # no
by aroberge 14y ago
WAT?. Python can parse the above very nicely, thank you.
>>> value = "example # no that's not a comment" # but here's one
>>> value
"example # no that's not a comment"
- laurent123456 14y agoAt the time I wrote that, the only Python parser was removing the comments by splitting the line on "#", which mean it wouldn't work with the example I mentioned. It seems there are now several other Python parsers, so some of them are probably getting it right.