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


Groups > comp.lang.python > #35183

Re: Why does os.stat() tell me that my file-group has no members?

From Kushal Kumaran <kushal.kumaran+python@gmail.com>
Subject Re: Why does os.stat() tell me that my file-group has no members?
References <ec7fc1b0-1553-4e17-8d2f-71de44ed2840@googlegroups.com> <50d24afc$0$6955$e4fe514c@news2.news.xs4all.nl> <c4fa639f-5959-4a65-9d54-33e51d1acb50@googlegroups.com>
Date 2012-12-20 12:46 +0530
Newsgroups comp.lang.python
Message-ID <mailman.1092.1355987831.29569.python-list@python.org> (permalink)

Show all headers | View raw


saqib.ali.75@gmail.com writes:

> Thanks!! This was very helpful. It worked perfectly.
> I had no clue about the intricacies of how python represents the group data from the underlying OS.
>
> This page doesn't go into to detailed explanation like you did: http://docs.python.org/2/library/grp.html
>

That's mostly because it represents the group data almost exactly as the
underlying OS, including using the same structure member names as
defined in pwd.h.  The unix-specific modules often assume the user is
familiar with the underlying library calls and data structures, and is
looking for a way to use them from python.

> <snip>

-- 
regards,
kushal

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Why does os.stat() tell me that my file-group has no members? saqib.ali.75@gmail.com - 2012-12-19 13:40 -0800
  Re: Why does os.stat() tell me that my file-group has no members? Hans Mulder <hansmu@xs4all.nl> - 2012-12-20 00:17 +0100
    Re: Why does os.stat() tell me that my file-group has no members? saqib.ali.75@gmail.com - 2012-12-19 17:23 -0800
      Re: Why does os.stat() tell me that my file-group has no members? Chris Angelico <rosuav@gmail.com> - 2012-12-20 13:28 +1100
      Re: Why does os.stat() tell me that my file-group has no members? Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2012-12-20 12:46 +0530

csiph-web