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

TGINSIGHT SIMILAR POSTS

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

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

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

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

Пребарај: #hook

当前筛选 #hook清除筛选
Pro Analysis

@proanalysistrader · Post #28439 · 01.02.2025 г., 07:13

#HOOK/USDT analysis : #HOOK has successfully broken out from the trendline and subsequently retested it, indicating a shift in direction towards the upside. This suggests that bullish momentum is likely to persist, with potential for testing higher price levels in the near future. TF : 4h Entry : $0.2850 Target : $0.3240 SL : $0.2716

Hashtags

Pro Analysis

@proanalysistrader · Post #27896 · 02.09.2024 г., 13:07

#HOOK/USDT analysis : #HOOK is in a downtrend, trading below the 200 EMA. The price is currently experiencing a pullback and is expected to test the resistance zone before continuing its bearish trend. The price is expected to test the resistance zone while continuing its bearish momentum to test previous lows. TF : 4H Entry : $0.4173 Target : $0.3485 SL : $0.4477

Hashtags

Pro Analysis

@proanalysistrader · Post #27804 · 06.08.2024 г., 08:45

#HOOK/USDT analysis : #HOOK is in a downtrend, expected to keep up its bearish momentum. The price has already broken out of the trendline, triggering the entry. Target the previous swing low as a potential target level. TF : 15min Entry : $0.3558 Target : $0.3208 SL : $0.3746

Hashtags

Pro Analysis

@proanalysistrader · Post #27799 · 05.08.2024 г., 14:15

#HOOK/USDT analysis : #HOOK has broken out of the trendline with impulsive bullish momentum. It is expected to test the previous swing high. Aim for it as a potential target level, as bullish momentum is expected to continue on LTF. TF : 5min Entry : $0.3475 Target : $0.3696 SL : $0.3332

Hashtags

Pro Analysis

@proanalysistrader · Post #27750 · 10.07.2024 г., 09:57

#HOOK/USDT analysis - #HOOK shows a rejection from the resistance zone after establishing a lower low. There is an anticipation of further decline from this point with a potential retest of the previous low. For a short entry, wait for a pullback to the resistance zone. TF : 2h Entry : $0.4959 Target : $0.4003 SL : $0.5155

Hashtags

Pro Analysis

@proanalysistrader · Post #27705 · 25.06.2024 г., 12:18

#HOOK/USDT analysis - #HOOK is currently in a downtrend, hitting new lows and trading below the 200 EMA. The price is currently testing the resistance zone after an impulsive move. It is anticipated that the price will reject from there and continue to test new lows shortly. Enter when the price begins declining from the resistance zone. The previous swing low will be the target level. TF : 1h Entry : $0.5767 Target : $0.5316 SL : $0.6036

Hashtags

Pro Analysis

@proanalysistrader · Post #27686 · 20.06.2024 г., 12:51

#HOOK/USDT analysis - #HOOK is in a downtrend, trading below the 200 EMA. The price is currently going through a pullback and has retraced to previous support levels near the 200 EMA. Currently, the price is encountering resistance near the 200 EMA and has already broken the trendline, indicating an increase in bearish pressure on the price. To confirm entry, wait for the price to break below the $0.5997 level to go short, with previous swing lows as potential target levels. TF : 30min Entry : $0.5997 Target : $0.5446 SL : $0.6337

Hashtags

American Crypto©

@americancryptotrading · Post #27314 · 17.07.2025 г., 08:30

🇺🇸#HOOK/USDT is climbing above the descendingresistance on the daily chart👨‍💻 Up we go🐃 American Crypto©

Hashtags

ПретходнаСтраница 1 од 3Следна