AllenDowney / ThinkPython2

LaTeX source and supporting code for Think Python, 2nd edition, by Allen Downey.
Other
2.49k stars 1.65k forks source link

sharp-sign (#) filtered out in pronounce.py #101

Closed waebbl closed 2 years ago

waebbl commented 2 years ago

In https://github.com/AllenDowney/ThinkPython2/blob/master/code/pronounce.py#L31 the pronounciation of the sharp-sign from line 57 of c06d is removed as well. Comments in the pronounciation file always start with ##.

AllenDowney commented 2 years ago

Fixed. Thanks for letting me know!

waebbl commented 2 years ago

Thanks for fixing it. However, now the last (empty) line of the comment block at the beginning isn't filtered out. I've found, that a solution like if line[0:2] == '##': continue gives a correct result.