@Aetatesolis · Post #4039 · 21.03.2025 г., 13:37
The Lord of the Rings 🎨 Darrell K. Sweet (🇺🇸, 1934-2011) #tolkien #lotr AETATESOLIS
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #197 · 4 јан.
Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep
Пребарај: #tolkien
@Aetatesolis · Post #4039 · 21.03.2025 г., 13:37
The Lord of the Rings 🎨 Darrell K. Sweet (🇺🇸, 1934-2011) #tolkien #lotr AETATESOLIS
@Aetatesolis · Post #4033 · 21.03.2025 г., 12:36
The Lord of the Rings 🎨 Darrell K. Sweet (🇺🇸, 1934-2011) Sweet was best known for providing cover art for science fiction and fantasy novels, in which capacity he was nominated for a Hugo Award in 1983. #tolkien #lotr AETATESOLIS
@Aetatesolis · Post #3779 · 13.01.2025 г., 12:46
The Lord of the Rings 🎨 Tim Kirk (🇺🇸, 1947 - ...) Art for the 1975 Tolkien Calendar. #lotr#tolkien AETATESOLIS
@filosofarsogood · Post #11933 · 07.10.2024 г., 10:02
Enrico Gamba, in arte 151eg, cogita sulla Favola moderna, tra #DISNEY, #MIYAZAKI e #TOLKIEN: simbolismo, significato ed educazione, in una Cogitata stupenda! https://youtu.be/RmrW2ueDqCI
@sarconsulurals · Post #2976 · 03.01.2026 г., 04:16
🗓January 3 marks the birth of J.R.R. Tolkien (1892-1973), the legendary author of The Lord of the Rings and The Hobbit. 📍 He was born in Bloemfontein, now the capital of South Africa’s Free State province and the country’s judicial capital 🇿🇦📚 👨💼 Tolkien’s father, Arthur Tolkien, worked as a banker and was transferred from the United Kingdom to Bloemfontein for career advancement. The family’s African servants considered baby John exceptionally handsome and admired him greatly. 👶 On one occasion, a servant named Isaak took the infant Tolkien to his kraal for the night to introduce him to his family. Years later, he named his first son Isaak Mister Tolkien Victor in the child’s honor. ✈️ When Tolkien was three, he traveled to England with his mother Mabel and younger brother Hilary. During their stay, Arthur Tolkien died in Bloemfontein from acute rheumatic fever. The family never returned to South Africa after his death. 🧠 Tolkien later said he remembered very little of his early years in South Africa. Biographers note that he retained a few words of Afrikaans, though he was not fluent. 🏨 Today, Bloemfontein proudly highlights its link to Tolkien. The four-star Hobbit Boutique Hotel promotes itself as his birthplace, features a commemorative plaque, and names all its rooms after characters from The Lord of the Rings and The Hobbit. #Literature#Books#History#Tolkien#SouthAfrica#Africa
@Aetatesolis · Post #3798 · 21.01.2025 г., 17:32
Der Berggeist 🎨 Josef Madlener (🇩🇪, 1881-1967) Der Berggeist is "The Mountain Spirit". According to Carpenter, Tolkien bought the postcard during his trip to Europe. The envelope containing it was later found with the inscription: "Origin of Gandalf". However, the picture was painted about 1925-1930 and if I remember correctly the postcard was published 1935 in a folder with three or four other pictures. So the postcard must come by another way into Tolkien's hands. #tolkien#gandalf #lotr Source AETATESOLIS
@dreamsgallerys · Post #2282 · 23.04.2024 г., 09:36
by Rene Gross #арт#art#some#gross#lotr#baraddur#fantasy#tolkien#landscape Dreams Gallery
@dreamsgallerys · Post #2227 · 20.03.2024 г., 14:30
Ещё один любимый персонаж By Voodoont #voodoont #ai#арт#art#girl#elf#city#arwen#liv_tyler#tolkien#Middle_earth#old_work#lotr Dreams Gallery