TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #281 · 18 авг.

Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳 Действительно, что означают цифры которые мы получили в прошлом посте? Это кодировка, заключающая в себе режимы доступа к файлу. Подробней можно почитать в статье про chmod. Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение. Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция >>> stat.filemode(0o755) '?rwxr-xr-x' Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров. А что за знак вопроса в начале? Давайте передадим в эту функцию необрезанное значение от os.stat >>> stat.filemode(os.stat(path).st_mode) 'drwxr-xr-x' Это данные, которые мы безжалостно обрезали в прошлый раз😼 Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l). Вот простая схема данной кодировки [1][3][3][3] │ │ │ │ │ │ │ └──> Others Permissions │ │ └─────> Group Permissions │ └────────> Owner Permissions └───────────> File Type (разверните экран если вы с телефона) Если вы попробуете получить пермишены для симлинка то получите пермишены для файла >>> path = '.venv/bin/python3' >>> stat.filemode(os.stat(path).st_mode) '-rwxr-xr-x' Чтобы получить свойства именно симлинка, нужно это явно указать >>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode) 'lrwxrwxrwx' #tricks#basic

Резултати

Пронајдени 4 слични објави

Пребарај: #statehood

当前筛选 #statehood清除筛选
Red Nile

@rednile12 · Post #10508 · 27.12.2025 г., 23:14

Selective Sovereignty: Why Somaliland Remains Unrecognized By @rednile12 Media International law says sovereignty is universal—but in practice, recognition is political. The 2005 AU Fact-Finding Mission confirmed Somaliland’s independence claim as “historically unique and self-justified”, meeting all statehood criteria: population, borders, government, and capacity for international relations. Yet Somaliland remains unrecognized, while Eritrea, South Sudan, East Timor, and Kosovo gained recognition—often under weaker legal conditions. 💠The takeaway: Sovereignty isn’t earned by law or stability; it is granted selectively, depending on geopolitics and institutional convenience. ➡️READ MORE:Selective Sovereignty – Full Analysis #Somaliland#AfricanUnion#InternationalLaw#Sovereignty#Geopolitics#RedNileMedia#UN#EU#Africa#Statehood

MessageInABottle

@mib_messageinabottle · Post #6874 · 22.05.2024 г., 16:40

Official Representatives to the #UN from #Ireland, #Spain and #Norway pose for photos at the UN with the Palestinian UN representative, after the 3 became the first European countries to officialy recognise #Palestinian#Statehood. #Israel's current #genocide attempt in Gaza has revived support in #Europe for Palestinian statehood. Norway, Spain and Ireland have defied threats from Israel, which recently announced its intent to recall its envoys from Ireland and Norway for discussions over the move. Other European nations, such as #Malta and #Slovenia in March, have also expressed "readiness to recognise Palestine" when "the circumstances are right". #Australia has recently floated the possibility of unilaterally endorsing Palestinian statehood. Additionally French President Emmanuel #Macron has also said the question of recognising a Palestinian state without a negotiated peace is no longer "a taboo for #France".