Re: [Python-ideas] parameter omit

On 5/11/07, Aaron Brady <castironpi@comcast.net> wrote:
def netretrieve(self): kwargs = {} if self.filename: kwargs['filename'] = self.filename if hasattr(self, 'hook'): kwargs['reporthook'] = self.hook urlretrieve(self.url, **kwargs) STeVe -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy

Right. That's the alternative, -as- I keep bringing up. Now let's compare, and judge if X is worth Y. My solution, 3 lines. Yours, 6. X = 50% profit, -plus- the attention you save. Y = a built-in, unobtrusive variable, a trivial cost. `None' doesn't get in your way, does it? As you can see, X -is- worth Y. Therefore, my proposal is better.

Right. That's the alternative, -as- I keep bringing up. Now let's compare, and judge if X is worth Y. My solution, 3 lines. Yours, 6. X = 50% profit, -plus- the attention you save. Y = a built-in, unobtrusive variable, a trivial cost. `None' doesn't get in your way, does it? As you can see, X -is- worth Y. Therefore, my proposal is better.
participants (2)
-
Aaron Brady
-
Steven Bethard