Многие из тех кто активно работал с Python2 несколько удивлены, почему в Python3 удобная функция reload() переехала из builtin в imp а потом и в importlib?
Ну было же удобно! А теперь лишний импорт😖
Дело в том, что начиная с Python3.3 функция reload() переписана на Python вместо Cи.
Что это нам даёт?
🔸 Такой код проще поддерживать и развивать
🔸 Python код легче читать, изучать и понимать.
Сравните это ➡️ и это ➡️.
🔸 Как результат пункта 2, проще писать свои расширения импорта. Например, пользовательский импортёр с какой-либо хитрой логикой по аналогии с импортом из zip архивов.
А есть ли у этого решения недостатки? Да, они всегда есть.
🔹 Так как это не builtin функция, её следует импортнуть перед использованием
🔹 Скорость замедлилась примерно на 5%. Очевидно, что это совершенно не критично. К тому же от версии к версии логика импорта будет оптимизироваться и ускоряться.
В самом начале файла importlib/__init__.py мы видим такой импорт:
import _imp # Just the builtin component, NOT the full Python module
То есть часть функционала по прежнему написана на Си, но достаточно низкоуровневая.
#basic
#ARPA/USDT analysis :
#ARPA is currently moving upward within a bullish channel, consistently forming higher highs (HHs) and higher lows (HLs). The price has recently rebounded from the support of the channel and is expected to test the resistance level of the channel soon.
TF : 4H
Entry : $0.05590
Target : $0.06165
SL : $0.05187
#ARPA/USDT Analysis-
ARPA has formed bullish symmetrical triangle pattern. Once it will break the high then it has high potential to go up till the target zone.
T.F.- 4-H
ENTRY- as soon as it gives breakout
SL- 0.04610
TARGET- 0.05500
Note: If the stop-loss is triggered before entry, disregard the trade as the price action may develop differently.
#ARPA/USDT analysis -
#ARPA is making new lows, the price is currently consolidating near the resistance zone. Wait for a pullback towards the resistance zone and wait for the price to be rejected from the zone for a short entry. The previous low is expected to be tested.
TF : 2h
Entry : $0.0486
Target : $0.0442
SL : $0.0506
#ARPA/USDT ANALYSIS
ARPA is currently consolidating within a descending triangle, with a rebound occurring from the horizontal demand zone at the base of the pattern.
The Ichimoku Cloud serves as a resistance overhead, situated above the triangle. A decisive move, either a breakout or breakdown, is needed before considering any trades.