Re: [Python-Dev] [Python-3000] pre-PEP: Default Argument Expressions
Feb. 14, 2007
11:18 p.m.
Another thing I don't like about this default argument proposal is that using it in any non-trivial way would tend to put implementation details of the function up in the header, which should be reserved for info describing the calling signature. The following example from the PEP is an extreme instance of this:
def bar(b=my_sum((["b"] * (2 * 3))[:4])): print b
-- Greg
7063
Age (days ago)
7063
Last active (days ago)
0 comments
1 participants
participants (1)
-
Greg Ewing