Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🤖 Bot Downtime Update 🔧
Hey everyone,
Our bot is currently down due to a server-side issue from our hosting provider. This outage is not caused by us directly, but we’re in constant contact with the provider to ensure it gets resolved as quickly as possible.
We truly understand how frustrating this is — we’re equally affected and doing everything we can behind the scenes to bring the service back online.
🙏 Thanks for your patience and support.
We’ll keep you updated here. Please stay tuned.
#fixed✈️
Fixed an issue where @ChatNetworkBot in some cases didn't reply when it should send an invite link after the /start via deeplinking.
Thanks in helping diagnose, L.s. and C.
#fixed#ChatNetworkBot
🎈Hot Game This Week🎈
#Minecraft 1.21.92 LIVE!!
What's New?
🌟1.21.90 bugs #fixed!
Resolved a problem where adding split-screen players could disconnect users from multiplayer worlds.
🌟Visual Arts Adjusments!
Items with dimensions smaller than 16 pixels in width or height now display correctly once more.
🔗Minecraft 1.21.92 APK Patch Update
It was brought to attention that with some bots admin commands were no longer working.
That was happining for the bots migrated yesterday, because of the new bot API version.
This is #fixed now.
Thanks for letting me know, A. A.!
#BanWarnBot#RulesRulesBot#JoinCaptchaBot