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


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

Re: How to get the list of all my open file(descriptor)s and locks?

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2012-09-19 15:40 -0600
Last post2012-09-19 15:40 -0600
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: How to get the list of all my open file(descriptor)s and locks? Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-19 15:40 -0600

#29529 — Re: How to get the list of all my open file(descriptor)s and locks?

FromIan Kelly <ian.g.kelly@gmail.com>
Date2012-09-19 15:40 -0600
SubjectRe: How to get the list of all my open file(descriptor)s and locks?
Message-ID<mailman.943.1348090842.27098.python-list@python.org>
On Wed, Sep 19, 2012 at 2:36 PM, Ismael Farfán <sulfurfff@gmail.com> wrote:
> It seems like I can use os.fstat to find out if a fd exists and also
> get it's type and mode (I'm getting some pipes too : )

Sure, because files and pipes both use the file descriptor
abstraction.  If your process does any networking, you'll find sockets
in there as well.

[toc] | [standalone]


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


csiph-web