[Python-Dev] [Python-3000] pre-PEP: Default Argument Expressions (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 15 00🔞33 CET 2007
- Previous message: [Python-Dev] Twisted Isn't Specific (was Re: Trial balloon: microthreads library in stdlib)
- Next message: [Python-Dev] Twisted Isn't Specific (was Re: Trial balloon: microthreads library in stdlib)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Twisted Isn't Specific (was Re: Trial balloon: microthreads library in stdlib)
- Next message: [Python-Dev] Twisted Isn't Specific (was Re: Trial balloon: microthreads library in stdlib)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]