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

Резултати

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

Пребарај: #sgx

当前筛选 #sgx清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4352 · 10.03.2025 г., 13:00

Singapore Exchange Launches Bitcoin Futures 🔵 The Singapore Exchange (SGX) will launch perpetual Bitcoin futures by H2 2025, marking the first such product on a traditional Asian stock exchange. This move aims to attract major institutional players to the cryptocurrency market, expanding access and trading opportunities. 🔗 Read more: Bloomberg #Bitcoin#Crypto#SGX#Futures#Investment#Asia#Finance#Trading#Blockchain#DigitalAssets#Market#Institutional#PerpetualFutures#CryptoMarket

Crypto M - Crypto News

@CryptoM · Post #64653 · 09.04.2026 г., 12:36

🚀 Pyth Launches Data Marketplace with Support from Major Financial Institutions Pyth has announced the official launch of its Pyth Data Marketplace, backed by six major financial institutions. According to Odaily, the participating entities include Euronext, Exchange Data International, Fidelity Investments, OTC Markets Group, SGX's FX data business, and Tradeweb. These institutions previously distributed data primarily through traditional data suppliers and proprietary terminals. The Pyth Data Marketplace enables institutions to distribute various proprietary data, such as macroeconomic indicators, OTC pricing, and foreign exchange benchmarks, while retaining ownership, pricing rights, and attribution. #Pyth#DataMarketplace#FinancialInstitutions#MacroeconomicIndicators#OTCpricing#FXbenchmarks#Euronext#FidelityInvestments#SGX#Tradeweb#PYTH

Crypto M - Crypto News

@CryptoM · Post #65144 · 11.04.2026 г., 12:05

🚀 Pyth Launches Data Marketplace with Support from Major Financial Institutions On April 11, Pyth announced the official launch of its Pyth Data Marketplace. According to BlockBeats, the marketplace has gained the backing of six major financial institutions as data providers. These institutions include Euronext, Exchange Data International, Fidelity Investments, OTC Markets Group, SGX's FX data business, and Tradeweb. Previously, these organizations primarily distributed data through traditional suppliers and proprietary terminals. The Pyth Data Marketplace allows institutions to distribute proprietary data, such as macroeconomic indicators, over-the-counter pricing, and foreign exchange benchmarks, while retaining ownership, pricing rights, and attribution. #Pyth#DataMarketplace#FinancialInstitutions#Euronext#FidelityInvestments#OTCMarketsGroup#SGX#Tradeweb#MacroeconomicIndicators#ForeignExchange#OTCpricing#PYTH