Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
📝 INTERVIEW | Seeds, GMOs and Sovereignty: A Conversation with Esquisa Omaña
Venezuelan researcher and activist Esquisa Omaña takes stock of the country's Seed Law and the struggle for food sovereignty.
Approved in 2015, the Seed Law bans the sowing of GMOs and uniquely recognizes two knowledge systems: certified seeds and those developed by campesino, Indigenous, and Afro-descendant communities.
But a decade later, Omaña warns that the law remains largely unimplemented. The biosecurity commission never took off, and the GMO detection lab remains unopened. As GMO imports continue and local varieties face contamination risks, the law’s vision, to protect agro-biodiversity and campesino knowledge, hangs in the balance.
🔗 Read the full interview here: https://shorturl.at/eGGWP
#FoodSovereignty#GMO#SeedLaw