Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
#POLYX/USDT analysis :
#POLYX has rebounded from the previously respected support zone and is currently trading above a minor support level. The price is expected to move upward from this level and test the swing high resistance.
TF : 2h
Entry : $0.1790
Target : $0.2036
SL : $0.1688
#POLYX/USDT analysis :
#POLYX has broken out and retested the support zone above the 200 EMA. The price is expected to continue its bullish momentum and test previous highs.
TF : 15min
Entry : $0.2353
Target : $0.2593
SL : $0.2232
#POLYX/USDT analysis :
#POLYX is presently establishing a bullish channel. The price has recently rebounded from the support zone and is now progressing to test the previous swing high.
TF : 4H
Entry : $0.2231
Target : $0.2538
SL : $0.2029