Многие из тех кто активно работал с 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
Episode 1: She’s in his hoodie, sitting cross-legged on the kitchen counter while he flips pancakes. Music plays low, something nostalgic. She sways, miming the lyrics with lazy exaggeration. He grins—half amusement, half adoration. There’s no rush. No plan. Just the rhythm of a morning made soft by love.
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
We keep finding heaven in the smallest things.
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
#lovelived#iloveyou
Episode 16
The villa deck hums with sunlight, the ocean below impossibly clear — liquid turquoise stretching forever. He hits the water first, surfacing with a splash and boyish triumph, pushing wet hair from his eyes.
“Come on!” he calls, treading water, arms open like the sea is his idea.
She sits at the top of the slide, toes curled over the edge, laughter already bubbling in her chest. The world feels weightless up here — sky, water, horizon all blending into one endless promise. She looks at him, glowing down there, and shakes her head like she can’t believe this is real.
He cheers louder. She leans back, breath caught between thrill and trust — and lets go.
If you jump, I jump. Every lifetime.
📖 Read on Wattpad
🎧 Love, Lived I Album
#lovelived#lovelived2#theeverydaymagic
❤️ YouTube | Instagram ❤️
Episode 15
Thursday afternoons belong to sugar and sunlight. They don’t debate flavors anymore—she reaches for hers, he for his, like muscle memory. The shop owner already knows their order. They walk slowly, cones melting faster than planned, shoulders brushing, trading bites without asking. Workdays soften. The week exhales. Love tastes like something cold and sweet, shared halfway down the block.
Traditions are just love that learned the schedule. 🍦✨
📖 Read on Wattpad
🎧 Love, Lived I Album
#lovelived#lovelived2#theeverydaymagic
❤️ YouTube | Instagram ❤️
Episode 14
The kitchen smells like garlic and sun-warmed tomatoes. She stirs the pasta with one hand, dancing slightly to a morning playlist. He sits at the table, laptop open but eyes drifting. The new vase sits between them, holding sunflowers like a little sun of its own. He types. She tastes. The space hums—spoon clinks, keys click, love simmering in the background.
A bouquet, a bowl of pasta, and you across the table. Perfect.
📖 Read on Wattpad
🎧 Love, Lived I Album
#lovelived#lovelived2#theeverydaymagic
❤️ YouTube | Instagram ❤️
Episode 13
She wakes to the smell of something warm, sweet, familiar. The dining room glows—sunlight spilling in through the floor-to-ceiling glass wall, kissing every detail he carefully placed: fresh fruit gleaming in bowls, milk in a glass pitcher, her favorite breakfast dish plated like art, dessert waiting with a ribbon on the side, the sunflower-filled vase watching quietly.
He stands there—apron still crooked, cheeks a little pink.
“I want you to break your fast with your favorite dish made by me. I poured all my love into it. Happy birthday, my love.”
She doesn’t sit right away.
She hugs him first. Slow. Long. Like she tasted the love before the food.
This morning, love tasted homemade.
📖 Read on Wattpad
#lovelived#lovelived2#theeverydaymagic
Episode 12
The beach is empty—except for them. Lanterns flicker in glass jars, fairy lights drape over driftwood like fallen stars. A small table for two sits on a sand-carved rug, scattered with rose petals and sea breeze. She stops walking, hand over her mouth, dress brushing the shore. He watches her—not the waves, not the lights—her. She turns, eyes glossy, and breathes, “This feels unreal.” He smiles. “Then we’re right on time.”
The world paused—so we could celebrate you.
📖 Read on Wattpad
#lovelived#lovelived2#theeverydaymagic