Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99575 > unrolled thread

Re: Looking for ideas to improve library API

Started byChris Lalancette <clalancette@gmail.com>
First post2015-11-26 08:35 -0500
Last post2015-11-26 08:35 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Looking for ideas to improve library API Chris Lalancette <clalancette@gmail.com> - 2015-11-26 08:35 -0500

#99575 — Re: Looking for ideas to improve library API

FromChris Lalancette <clalancette@gmail.com>
Date2015-11-26 08:35 -0500
SubjectRe: Looking for ideas to improve library API
Message-ID<mailman.139.1448545321.20593.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web