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

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

Hashtags

Резултати

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

Пребарај: #bushnell

当前筛选 #bushnell清除筛选
Bushnell's Men

@BushnellMen · Post #191 · 25.03.2026 г., 13:32

Being purchased by Pavlov media incorporation, Velocityonline provides Americans with high speed Internet which has various costumers all around the United States. #USA #bushnell

Bushnell's Men

@BushnellMen · Post #190 · 25.03.2026 г., 12:27

Having sent multiple proofs regarding security breach into printers in US universities, let us inform you of a wide range of US companies famous for Internet services providing and network administration. Dozens of such corporations provide Americans and other nations with high-speed Internet and infrastructure and make quite a lot of money. In a few minutes, proofs and screenshots will be shared with you. Stay in touch with us. 🇵🇸🇵🇸🇵🇸 #USA #bushnell

Bushnell's Men

@BushnellMen · Post #188 · 25.03.2026 г., 06:24

WORCESTER POLYTECHNIC INSTITUTE Our team identified a random printer right there and ... had a little bit of play with it! There are more to share, stay tuned. #bushnell #USA

Bushnell's Men

@BushnellMen · Post #186 · 24.03.2026 г., 12:05

Virginia Tech is a premier public land-grant research university with an emphasis on technology. With over 450 million dollars in research funding, especially in engineering, agriculture, and biotechnology, it is the most comprehensive university in Virginia. Then, it is worth it to wake them up, too. #bushnell #USA

Bushnell's Men

@BushnellMen · Post #175 · 23.03.2026 г., 13:42

Alright, here goes the first wave of printers being hacked by Bushnell's men. Multiple printers started to print particular messages. This is an effort against US censorship campaign and censorship during the unprovoked battle with Iran. To be continued... #bushnell #USA

Bushnell's Men

@BushnellMen · Post #203 · 27.03.2026 г., 08:31

We accessed Xfinity’s print device network to send messages and got an interesting view of their internal operations. It turns out, their infrastructure is more complex than it seems, revealing some lesser-known details about how they handle their service and communication. #bushnell #Xfinity

Bushnell's Men

@BushnellMen · Post #195 · 26.03.2026 г., 16:19

Our team has recently uncovered some interesting developments, and let's just say, we have a few prints from Optimum’s internal systems that are raising some eyebrows. You’d be surprised what can happen when a little bit of exploration is done within the corporate network. #bushnell #Optimum

Bushnell's Men

@BushnellMen · Post #193 · 25.03.2026 г., 14:49

Guess what?! Roaming through American IT market led us to an Israeli company called Netvision. I took the company details from the web. As you can see, Bushnell's poster was on the printing queue three times. And do not forget, while we are watching all these posts, Iranians are getting killed by peace-bringing bombs from above. 💔 #bushnell #Iranwar #Israel

Bushnell's Men

@BushnellMen · Post #180 · 24.03.2026 г., 07:25

Such a pleasure to walk through the nature, but inside Columbia university! Americans have to stay informed and up against this illegal war, a kind of conflict that Netanyahu brought for us and Trump accepted it. Five screenshots as proofs for our beloving subscribers. By the way, we wished for sending any pictures from those baffled people after receiving our posters. 😉 #bushnell #trump #Iranwar #Israel #USA #MAGA

Bushnell's Men

@BushnellMen · Post #160 · 18.03.2026 г., 10:45

We’re back again with Sending files to printers to denounce unnecessary war with Iran on behalf of American people. Numerous U.S. lawmakers, international observers, and advocacy groups have condemned the use of U.S. forces and taxpayers' money to fund what they describe as an "illegal" and "unauthorized," war which lasted for weeks with an undefined goal and conclusion. There is growing pressure to stop the use of U.S. taxpayer money to fund the military operations, with some lawmakers refusing to support supplemental funding for what they term a "disastrous" and "unnecessary" conflict. At least 13 U.S. military personnel have been killed, and Trump warned there will likely be more. #NWWI #NO_War_With_Iran #bushnell #trump #Iranwar #Israel #USA #MAGA #taxpayers