Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
9 days left. Mark your calendar.
Green Insect🪲 drops on Pump.fun in:
📅 April 10, 2026
⏰ 12:00 PM US Time
Your wallet should be ready before the clock hits zero.
This is the moment years of work led to. Don’t watch from the sidelines👀🔥
Retweet♻️ Like👍🏻 Be part of history✅
💬 Telegram: t.me/Green_Insect
(Chat group is inside the channel)
#GreenInsect🪲#GRN#pumpfun