[Python-Dev] PEP for Better Control of Nested Lexical Scopes (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 22 08:54:45 CET 2006
- Previous message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Next message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Josiah Carlson wrote:
In this particular example, there is no net reduction in line use. The execution speed of your algorithm would be reduced due to function calling overhead.
If there were more uses of the function, the line count reduction would be greater.
In any case, line count and execution speed aren't the only issues -- there is DRY to consider.
-- Greg
- Previous message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Next message: [Python-Dev] PEP for Better Control of Nested Lexical Scopes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]