[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Looking for ideas to improve library API
From: Devin Jeanpierre <jeanpierreda () gmail ! com>
Date: 2015-11-28 11:31:14
Message-ID: CABicbJKi=ZuCNhw2DTgn0F43=EYFvctjQiiRyyoceQA-QV7BvA () mail ! gmail ! com
[Download RAW message or body]
Documentation is all you can do.
-- Devin
On Thu, Nov 26, 2015 at 5:35 AM, Chris Lalancette <clalancette@gmail.com> wrote:
> On Thu, Nov 26, 2015 at 7:46 AM, Devin Jeanpierre
> <jeanpierreda@gmail.com> wrote:
>> Why not take ownership of the file object, instead of requiring users
>> to manage lifetimes?
>
> Yeah, I've kind of been coming to this conclusion. So my question
> then becomes: how do I "take ownership" of it? I already keep a
> reference to it, but how would I signal to the API user that they
> should no longer use that file object (other than documentation)?
>
> Thanks,
> Chris
--
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic