Teaching Programming
Martin P. Hellwig
martin.hellwig at dcuktec.org
Tue May 4 07:25:57 EDT 2010
On 05/04/10 11:28, superpollo wrote:
> Samuel Williams ha scritto:
>> I personally like indentation.
>>
>> I just wonder whether it is an issue that some people will dislike.
<cut>
> there might be problems if for example you
> generate code from a one-line template.
<cut>
Well a one-line template code generator are great and such, but if the
output should be human readable it is necessary to have at least some
form of mark-up control on it. Like newlines and indentations.
On the other hand if it is only meant to generate executable code,
generating an interpreted code might not be the best solution for the
actual problem.
For the corner cases (I can think of a couple) it is good to know you
can use ';' most of the time.
--
mph
More information about the Python-list
mailing list