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

TGINSIGHT SIMILAR POSTS

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

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

Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱 Всё потому, что появилась коллизия имён. Например, изучаете вы модуль datetime, и создаёте с таким именем файл (ну логично же😄) прямо в рабочей директории. Потом, при попытке импортировать datetime модуль, из-за приоритета импорта будет импортирован файл из рабочий директории а не оригинальная библиотека. Ведь имя файла это суть имя модуля! А знаете ли вы, что не все стандартные модули можно так перезаписать? Коллизии имён не подвержены builtin модули. Они всегда стоят на первом месте в приоритете импорта, поэтому их нельзя заменить. Полный список таких модулей можно посмотреть в списке sys.builtin_module_names. То есть, вы сломаете весь Python если назовёте свой модуль os или site, но если назовёте time или gc то ничего страшного не случится))) Тем не менее, никогда не называйте модули уже занятыми именами!!!⚠️ Я всегда рекомендую всем своим файлам делать именной префикс из 2-3 символов. Например я называю свои проекты так: pw_project_name pw_ui_tools.py pw_something/main.py Либо под ситуацию tst_scriptname.py (не "test" чтобы не подхватывал pytest) dbg_script.py maya_ui.py hou_menu_tools.py И искать проще, и коллизий нет. #tricks#basic

Резултати

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

Пребарај: #profittaking

当前筛选 #profittaking清除筛选
Crypto M - Crypto News

@CryptoM · Post #65211 · 12.04.2026 г., 02:14

🚀 Crypto Whale Adjusts Stop-Loss to Secure Profits On April 12, a prominent crypto trader known as 'Set 10 Big Goals' (@Jason60704294) announced adjustments to their stop-loss positions to prevent targeted liquidation. According to BlockBeats, the trader has already secured profits from their current short positions. Previously, it was reported that the trader held a short position of 2,567.49 BTC with an entry price of $71,554.61, and a short position of 38,465.22 ETH with an entry price of $2,248.74. #Crypto#Bitcoin#Ethereum#Trading#StopLoss#ProfitTaking#CryptoWhale#BTC#ETH

Venture Village Wall 🦄

@venturevillagewall · Post #3996 · 27.01.2025 г., 07:00

Bitcoin Dips Below $100,000 🚨 55,375 #ETH ($171.7M) transferred between unknown wallets, per Whale Alert. Bitcoin's price drops under $100K, causing a market decline over 5% and liquidations reaching $610M. Analysts note profit-taking following regulatory developments regarding Donald Trump. More details: News. #ETH#Bitcoin#Crypto#Market#Whales#Regulation#ProfitTaking#Liquidations#BearMarket#Analysis#News#Blockchain#Finance#Investing#Trading#Tech#Investors#Volatility#Trends#VC

Crypto M - Crypto News

@CryptoM · Post #64554 · 09.04.2026 г., 07:45

🚀 Abraxas Capital's Oil Short Positions Recover Following Ceasefire Announcement On April 9, Hyperinsight reported significant financial recovery for Abraxas Capital, a major oil short institution on the Hyperliquid platform. According to BlockBeats, the recovery occurred within a week following the announcement of a ceasefire, with funds rebounding by over $12 million. The combination of oil shorts and crypto longs, which previously faced a floating loss of $9.7 million, has now turned profitable. As of the latest update, the two addresses continue to synchronize profit-taking and position reduction, maintaining a floating profit of $8.7 million. Following the recent reduction in positions, the total holding size remains at $152 million. This includes approximately $126 million in short positions on U.S. and Brent crude oil, and $26.1 million in long positions in the crypto market. Details of the oil short positions are as follows: Brent Oil shorts (5x leverage) have decreased from $92 million to $78 million, with an average price of around $96. WTI Crude shorts (5x leverage) have reduced from $51 million to $48.5 million, with an average price of approximately $95. Addresses involved are 0x5b5d51203a0f9079f8aeb098a6523a13F298C060 and 0xb83de012dba672c76a7dbbbf3e459cb59d7d6e36. #AbraxasCapital#OilShortPositions#CeasefireAnnouncement#FinancialRecovery#Hyperinsight#BlockBeats#CryptoLongs#ProfitTaking#WTICrude#BrentOil#OilMarket#LeverageTrading#PositionReduction#FloatingProfit#CryptoMarket#U.S.Crude