Avoid C style comments while reading a file
<p>I am parsing a C file for LOC in a function using python.
I am starting from first line of function definition and skipping all lines till i met first "{".</p>

<p>The issue is that "{" can also come as a part of comment. I just want to skip all "{" present inside comments.</p>

<p>e.g</p>

<pre><code>100: int func(
102:         int i, // some comment { ....
103:         float f,
104:         char c /* some comment here { ...
105:                .... more comment */
106:         )
107:{
</code></pre>

<p>Whats the best pythonic way to acheive this.</p>
