Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
Algebra is powering some of the top DEXes by TVL across various EVM chains!
Here’s the latest:
⚔️ Camelot DEX: #2 on Arbitrum & #1 across Orbit chains
💨 QuickSwap: #1 on Polygon #zkEVM, #2 on Polygon & XLayer
⚖️ THENA: #2 on BNB chain
🌿 Hercules DEX: #1 on Metis L2
🔪 Bladeswap: #3 on Blast
👾 Glyph Exchange: #2 on Core DAO
🖤 Lynex: #2 on Linea
🍣 Kim Protocol: #1 on Mode Network
Algebra continues to conquer DeFi! Check it out: defillama.com/chains
Hey fam!💜Have you checked out Pentagon Testnet Score in the rewards hub?
Well, you should! Mint your Score and grab a slice of $PEN -->nomis.cc/pentagon-testnet🪂
Pentagon Games is #zkEVM that powers the next generation interactive game & social experiences. We're teaming up to drop rewards for top scorers during the Pentagon Games Testnet 👾🎮
👑 Higher Score = bigger shot at the Royal Badge + even more $PEN🪂
New here? No sweat, plenty of time to grind it out and level up!
💠Nomis tApp | X | Discord | YouTube | Check Scores⚖️
🚀 Symbiosis to Cease Support for Polygon zkEVM Network
Cross-chain protocol Symbiosis will discontinue support for cross-chain swaps on the Polygon zkEVM network starting May 16. According to Foresight News, users holding liquidity on this network are advised to withdraw their funds before the network is fully shut down. The liquidity withdrawal feature will remain available until the network is completely disabled.
#Symbiosis#Polygon#zkEVM#CrossChain#Liquidity#ForesightNews#NetworkShutdown