Yes, I know `chattr` and I already use it on Linux. But referring to http://docs.python.org/library/os.html#os.chflags the "flags" feature IS the chattr on Linux ("Availability: Unix", not just MacOS and FreeBSD).
Reading further http://bugs.python.org/issue1490190 , the flags/chattr seems understood as different by upstream, but it is really the same system call. Though it has not the same name, it does the same thing (both "flags" and "chattr" have "SF_IMMUTABLE", "SF_APPEND", and more in common). Doing `os.chflags()` in python on Linux should make the `chattr` equivalent syscall on Linux, if I understand the Python documentation correctly. Only some flags values would be different (some missing and some more than on other OSes). It seems to be a good candidate for an upstream bug, though. I will investigate a little more in this direction. ** Bug watch added: Python Roundup #1490190 http://bugs.python.org/issue1490190 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/969032 Title: Python os module lacks the chflags/lchflags methods To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/969032/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs