Faster way to do this...
Robert Kern
rkern at ucsd.edu
Wed Mar 2 15:27:12 EST 2005
Will McGugan wrote:
> Warren Postma wrote:
>
>> Will McGugan wrote:
>>
>>> Isn't that equivalent to simply..
>>>
>>> nums= range(100)
>>
>>
>>
>> I remember the day I first realized that 900 lines of some C++ program
>> I was working on could be expressed in three lines of python. Ahh.
>
>
> Lately I've found myself commenting C++ code with the equivalent Python
> code. I find it clearer and more terse than simply commenting in English!
If you used literate programming tools, you might be able to get a
Python version and a C++ version of your code in one go!
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list