Что нового добавили в REPL в Python 3.13
На самом деле серьезно его прокачали!
▫️Както я писал, что для выхода из REPL приходится писать exit, еще и скобки для вызова. И было бы удобней сделать это по аналогии с обычным терминалом.
Видимо, я не один такой😁 В новом REPL добавили несколько команд:
exit или quit: для выхода. Именно так, без вызова функции!
clear: для очистки терминала
help или F1: для входа в режим справки (q для выхода)
▫️ Автокомплит по TAB аналогичный Linux-терминалу. Одиночный TAB заполняет самое пхожее совпадение, двойной показывает все доступные варианты. Эти варианты фильтруются по мере набора.
▫️ Ранее при вставке многострочного кода с пустыми строками мы получали ошибку IndentationError, теперь это исправили.
Хотя, в некоторых терминалах это даже с 3.6 работает нормально, но зависит от конкретной реализации именно терминала а не Python. На винде точно не работает до 3.13.
Пример кода для теста в 3.12 и 3.13
class A:
def test(self):
pass
▫️ История ввода теперь учитывает многосрочные команды.При нажатии стрелки вверх появятся все строки из прошлого многосрочного ввода, по ним даже можно перемещаться и редактировать.
По нажатию F2 можно открыть всю историю ввода.
▫️ Колоризация кода для tracebacks и doctest. Также я заметил что имеет цвет промт функции input().
Кстати, для тестов на винде без установки можно использовать портейбл версию из проектаWinPython.
#release
UN chief warns of "immense suffering" as Gaza aid remains inadequate. Israel's relentless bombardment overwhelms hospitals and leaves Gaza without essential supplies. More than 8,500 lives, including children, have been lost. The situation is "absolutely horrific", says Red Crescent. Calls for a ceasefire and increased humanitarian aid are rejected by the US, prioritizing their support for Israel. As the death toll rises, the UN pleads for an end to this "spiral of death". The world must act now to prevent further tragedy. #GazaCrisis#HumanitarianAid
https://www.aljazeera.com/news/2023/10/31/un-chief-guterres-says-aid-trickling-into-gaza-is-completely
Subscribe to @BadVolfNews
🇷🇺🚛 Russian servicemen delivered more than 90 tons of humanitarian aid to residents of Dergachevsky district of Kharkov region.
▪️Humanitarian aid from Russia was delivered to the liberated settlements of the Kharkov region (Ukraine).
▪️The cargo includes food, bottled drinking water, medication for medical institutions, as well as warm clothes for children and adults.
▪️Due to the fact that during the retreat the Ukrainian Armed Forces blew up the road bridge, the delivery of humanitarian cargo was complicated.
▪️Russian servicemen provided security of the humanitarian convoy.
#MoD#Russia#Ukraine#HumanitarianAid
@mod_russia_en
🇷🇺🚛 Russian servicemen delivered more than 4 tons of humanitarian cargo to residents of Izyum district of Kharkov region.
🚁 The cargo was delivered by a helicopter of the Russian Aerospace Forces from Belgorod region.
▪ It includes food, baby food, bottled drinking water and medication.
#MoD#Russia#Ukraine#HumanitarianAid
@mod_russia_en
🇷🇺🚛 Russian military personnel deliver more than 20 tons of humanitarian cargo for residents of Ivankovsky district, Kiev region.
#MoD#Russia#Ukraine#HumanitarianAid
@mod_russia_en
🏆MISSION EST ACCOMPLIE
Deuxième convoi humanitaire de l’association Sos Donbass s’est terminé hier 13 décembre. Tous les bénévoles participants à cette entreprise sont rentrés chez eux sains et saufs.
🙏🏻Énorme merci à Marc Bocquier pour son dévouement. Il est resté en mission du début à la fin. Deux mois au total 👏🏼💪🏼
▫️Merci à Michel de l’avoir épaulé, malgré les circonstances qui l’ont forcé à rentrer plus tôt, mais il est revenu dès qu’il a pu.
▫️Merci à Gilles d’avoir accompagné Marc pendant les longues jours d’attentes à la douane.
▫️Merci à Yury notre jeune bénévole, très engagé.
▫️Merci à Vincent Perfetti pour son travail médiatique pendant et après le convoi.
▫️Merci à Elvira pour son travail en arrière plan. Grâce à sa persévérance la situation avec les papiers a été résolue.
🙏🏻Merci a tous les donateurs qui nous ont fait confiance et sont restés fidèles malgré les difficultés.
🕊️Ensemble nous parviendront à la victoire et à la paix !
#sosdonbass#humanitarianaid#donbass
📰 NEWS | Venezuela Calls for Release of Gaza Freedom Flotilla Activists, Condemns Israeli Blockade and Genocide
🇻🇪 Venezuela has condemned Israel’s interception of the Madleen vessel in international waters and called for the release of its 12-member crew, including activist Greta Thunberg. The ship carried humanitarian aid bound for Gaza.
Caracas described Israel’s blockade and attacks on aid distribution as part of a “systematic extermination” of Palestinians. Over 54,000 have been killed since October 2023.
🔗 Full story here: https://venezuelanalysis.com/news/venezuela-calls-for-release-of-gaza-freedom-flotilla-activists-condemns-israeli-blockade-and-genocide
#Gaza#HumanitarianAid#Palestine
💊Notre bénévole Nikolai, l’ancien combattant a reçu enfin les médicaments commandés par des personnes âgées de Lougansk.
🕊️Il a été blessé, il ne peut plus défendre sa région, mais il veut rester utile, comme ça est devenu bénévole de l’association Sos Donbass.
🕊️Nikolai s’occupe des personnes âgées qui vivent seuls et qui ont besoin d’aide.
🚗Bientôt il va réceptionner une voiture offerte par un donateur français, pour qu’il puisse continuer à aider nos aïeux.
SUIVRE SOS DONBASS
#sosdonbass#EuropeSolidarity#humanitarianaid
Samedi 16 septembre 2023,
l’équipe Sos Donbass en plein préparation pour le convoi humanitaire d’octobre.
#sosdonbass#aidehumanitaire#humanitarianaid#donbass
🚛 Convoi humanitaire pour Donbass printemps 2023. Paprasse pour la douane 🛃
Merci à tous les donateurs pour les dons et la confiance.
🕊️Notre premier , beaucoup de préparations, beaucoup d’incertitudes, de stresse et de pression, mais on ira jusqu’au bout💪🏼
#donbass#aidehumanitaire#sosdonbass#humanitarianaid