Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
No Suits. No Filters. Just real talk.
We're proud to announce that Simon Westbury, Strategic Advisor at 1xBet, will be speaking at SiGMA Euro-Med in Malta, September 1-3:
The panel session is entitled "No Suits, No Filters: The Real Talk from the Top – and takes place on Day 1 of the Show."
Simon shall be joined by:
Alexandre Tomic, Founder – Alea
Dmitry Starostenkov, CEO – EvenBet Gaming
Oliver De Bono, CEO – Quantum Gaming
The topic: What happens when the industry's key decision-makers step away from the boardroom script?
👉 Expect candid stories of learnings, near-misses, risk, resilience, and even the competitors they quietly admire.
This is one conversation you won't want to miss.
#1xBet#iGaming#IndustryLeaders#PanelDiscussion#SiGMA#BusinessLeadership