Message147827
| Author | eric.smith |
|---|---|
| Recipients | baptiste.carvello, docs@python, eli.bendersky, eric.araujo, eric.smith, eric.snow, ezio.melotti, georg.brandl, petri.lehtinen, terry.reedy |
| Date | 2011-11-17.22:15:34 |
| SpamBayes Score | 5.7128677e-06 |
| Marked as misclassified | No |
| Message-id | <1321568135.54.0.373452698441.issue13386@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I just ran across the other reason that having the actual default values documented is important. Sometimes I want to do this: some_func(param if some_condition else <use the default value>) If some_condition is False, I want the default behavior, if not, I want to pass in a parameter. If I don't know the real default value, I have to write: if some_condition: some_func(param) else: some_func() |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-11-17 22:15:35 | eric.smith | set | recipients: + eric.smith, georg.brandl, terry.reedy, ezio.melotti, eric.araujo, eli.bendersky, docs@python, eric.snow, baptiste.carvello, petri.lehtinen |
| 2011-11-17 22:15:35 | eric.smith | set | messageid: <1321568135.54.0.373452698441.issue13386@psf.upfronthosting.co.za> |
| 2011-11-17 22:15:34 | eric.smith | link | issue13386 messages |
| 2011-11-17 22:15:34 | eric.smith | create | |