Вторая по частоте future-функция, которую я использовал, это абсолютный импорт
from __future__ import absolute_import
Что она делает?
Изменения, которые вносит эта инъекция описаны в PEP328
Покажу простой пример.
Допустим, есть такой пакет:
/my_package
/__init__.py
/main.py
/string.py
Смотрим код в my_package/main.py
# main.py
import string
Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта:
1. модуль в моём пакете my_package.string
2. стандартный модуль string
И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string.
Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать.
from my_package import string
или относительный импорт, но с указанием пути относительно текущего модуля main
from . import string
Еще одной неоднозначностью меньше 😎
Подробней про импорты здесь:
https://docs.python.org/3/tutorial/modules.html
#2to3#pep#basic
#CHESS/USDT analysis :
#CHESS is currently in an uptrend, consistently making higher highs (HHs) and higher lows (HLs), while finding support along the trendline. A breakout above the counter-trendline is anticipated, which will lead to a test of previous highs.
TF : 1D
Entry : $0.1945
Target : $0.2730
SL : $0.1586
#CHESS/USDT analysis :
#CHESS is currently going through a correction phase and retracing back to the 200 EMA before continuing its bearish move. The price is bouncing back from the support line and is expected to test the 200 EMA.
TF : 1h
Entry : $0.1358
Target : $0.1419
SL : $0.1315
#CHESS (Binance Futures and Spot)
✅Sub $10 million market cap coin
✅Fully bottomed
✅Loking exactly like MYX at $1, before making a 1800% move to $18
CHESS is an easy 10x move, grabbing a big bag here below $0.05
#CHESS (Binance Futures and Spot)
✅Sub $10 million market cap coin
✅Fully bottomed
✅Loking exactly like MYX at $1, before making a 1800% move to $18
CHESS is an easy 10x move, grabbing a big bag here below $0.05
LONGING $CHESS HERE
Exchanges: Binance (Spot and Futures)
#CHESS is not only a gem, it’s what we call a once in a lifetime trade. Fully bottomed, momentum stronger than anything we’ve seen, and an easy short term target at $0.25 - $0.5. Buy it below $0.045 while you can
Entry: Below 0.045
Targets: 0.047 - 0.049 - 0.052 - 0.059 - 0.072 - 0.095 - 0.120 - 0.142 - 0.231 - OPEN
SL: Below 0.034