Re: [Python-Dev] conceptual clarity

2009-09-19 Thread David Harrison
2009/9/18 Peter Moody :
> On Thu, Sep 17, 2009 at 6:17 PM, Andrew McNamara
>  wrote:
>>>off to patch the pep and implement some of the non controversial changes.
>>
>> It might be a good idea to add some use-cases to the PEP.
>
> There are several use-cases in the PEP already.
>
> The problem is, for every use-case where one can show that the
> existing implementation is confusing, I can come up with a use-case
> showing where the existing implementation makes more sense than
> anything proposed.
>
> Cheers,
> /peter

For any given use-case there is bound to be an opposing one, but the
goal is to satisfy the most common or relevant use-cases that we all
experience - can't please all the people all the time etc.

I think that alot of the confusion and disagreements surrounding the
API are due to the absence of use-cases in the PEP - we can all
probably agree an IP address module has intrinsic merit, but how we
expect to use it may vary significantly.  As a result the discussion
seems to be driven by the example implementation, instead of the by
the use-cases that make the module worthwhile being added - I would
normally think it would be the other way round.  Without a clear set
of expectations and use-cases, it would also be hard to propose an
alternate implementation.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Warn about mktemp once again?

2008-04-29 Thread David Harrison
2008/4/29 "Martin v. Löwis" <[EMAIL PROTECTED]>:
> > Same here. In fact, is there a good reason to have mkstemp() return the
>  > fd (except backward compatibility)?
>
>  Except for backwards compatibility: is there a good reason to keep
>  os.mkstemp at all?

Greg Ewing's use-case is one I've also had at times - ie. as a
convenience function for creating a "somewhat temporary" file that is
randomly named, but persists beyond the closing of the file.  If the
function doesn't stay in os it doesn't make any difference to me
though :-)
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com