Yep, it's set explicitly above, to 511, which == 0o777. It is rather confusing, but I guess that it's done that way to support older versions of Python where the 0o syntax didn't work.