[Python-Dev] mkdir -p in python (original) (raw)
Fred Drake fdrake at acm.org
Tue Jul 20 17:43:27 CEST 2010
- Previous message: [Python-Dev] mkdir -p in python
- Next message: [Python-Dev] mkdir -p in python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jul 20, 2010 at 9:09 AM, Steven D'Aprano <steve at pearwood.info> wrote:
It refers to the guideline that you shouldn't have a single function with two (or more) different behaviour and an argument that does nothing but select between them.
In particular, when that argument is almost never given a variable value, but is specified using a constant at the call site.
-Fred
-- Fred L. Drake, Jr. "A storm broke loose in my mind." --Albert Einstein
- Previous message: [Python-Dev] mkdir -p in python
- Next message: [Python-Dev] mkdir -p in python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]