A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-August/000789.html below:

[Python-Dev] Portable and OS-dependent module idea/proposal/brain fart

[Python-Dev] Portable and OS-dependent module idea/proposal/brain fartFred L. Drake, Jr. Fred L. Drake, Jr." <fdrake@acm.org
Wed, 25 Aug 1999 12:22:52 -0400 (EDT)
Tim Peters writes:
 > os.path did a Good Thing by, e.g., introducing getmtime(), despite that
 > everyone knows <wink> it's just os.stat()[8].  New isreadonly(path) and
 > setreadonly(path) are more what I'm after; nothing beyond that is portable,

Tim,
  I think we can simply declare that isreadonly() checks that the file 
doesn't allow the user to read it, but setreadonly() sounds to me like 
it wouldn't be portable to Unix.  There's more than one (reasonable)
way to make a file unreadable to a user just by manipulating
permission bits, and which is best will vary according to both the
user and the file's existing permissions.


  -Fred

--
Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4