TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #199 · 8 јан.

Многие из тех кто активно работал с Python2 несколько удивлены, почему в Python3 удобная функция reload() переехала из builtin в imp а потом и в importlib? Ну было же удобно! А теперь лишний импорт😖 Дело в том, что начиная с Python3.3 функция reload() переписана на Python вместо Cи. Что это нам даёт? 🔸 Такой код проще поддерживать и развивать 🔸 Python код легче читать, изучать и понимать. Сравните это ➡️ и это ➡️. 🔸 Как результат пункта 2, проще писать свои расширения импорта. Например, пользовательский импортёр с какой-либо хитрой логикой по аналогии с импортом из zip архивов. А есть ли у этого решения недостатки? Да, они всегда есть. 🔹 Так как это не builtin функция, её следует импортнуть перед использованием 🔹 Скорость замедлилась примерно на 5%. Очевидно, что это совершенно не критично. К тому же от версии к версии логика импорта будет оптимизироваться и ускоряться. В самом начале файла importlib/__init__.py мы видим такой импорт: import _imp # Just the builtin component, NOT the full Python module То есть часть функционала по прежнему написана на Си, но достаточно низкоуровневая. #basic

Hashtags

Резултати

Пронајдени 7 слични објави

Пребарај: #henoa

当前筛选 #henoa清除筛选
Quiet World 🍁

@QuietWorld · Post #7416 · 17.06.2020 г., 04:12

I sprayed her butt just a little with hand sanitizer because she keeps on biting wires on the desk.. I swear just a little 🥺 & she slowly sit there, lying down, with her eyes looking at me for a while until slowly falls asleep 🥺 she stopped biting the wires but I feel bad 🥺 Is she sad? or just tired? 🥺 #random#Henoa @quietworld🍃

Quiet World 🍁

@QuietWorld · Post #7401 · 15.06.2020 г., 06:42

Today, a thought strucked me; I love looking at cats especially high breed cat but I never wanted to buy and take care of high breed cat because I'm scared that I'm not able to take good care of it since high breed requires high maintenance.. So, I only wanted to take care of village cat, but then, I treat the village cat like high breed cat 😂 So.. why was I scared to adopt/buy high breed cat, right? I treat my village cat like royal anyway 😂 * currently waiting for my kitten to come back from home-based grooming service (waiting anxiously) * I hope she comes back here safe 🥺😢 #thoughts#cat#Henoa @quietworld🍃

Quiet World 🍁

@QuietWorld · Post #7402 · 15.06.2020 г., 07:48

Yeyy she's finally back from grooming 😍 Her nails clipped, ears cleaned and she smells good ☺❤ I'll get no more scars because her habit of climbing me 🤣 for now.. until her nails grow long and sharp again 🤣 Worth the wait.. from 12:30PM until 03:40PM🥰 #cat#Henoa#chupdate @quietworld🍃

Quiet World 🍁

@QuietWorld · Post #7450 · 27.06.2020 г., 23:02

Shopping for Henoa le Kitten again! 😍 Unplanned but I found item that I didn't know exist before that I think Henoa & I needs and I read lots of reviews saying that this shop sells a lot cheaper than other stores so why not? 😂 Will be making a video of unboxing these + review once they arrived and tested 🥰💞 Stay tuned for this video upload in my channel 🥰 #marcegetaway#youtube#kitten#Henoa @quietworld🍃