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

Резултати

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

Пребарај: #disclosure

当前筛选 #disclosure清除筛选
AI & Law

@ai_and_law · Post #296 · 29.04.2024 г., 07:04

US: SEC Puts Individuals on Notice: Be Mindful of AI Disclosure Risks The Securities and Exchange Commission (SEC) is casting a wider net in its efforts to ensure transparency around Artificial Intelligence in the financial sector. While companies have been warned about potential misleading AI disclosures, the SEC is now emphasizing the potential liability of individual actors. The SEC continues its fight against "AI-washing," where companies inflate or misrepresent their use of AI technology. Director Grewal highlighted recent settlements with investment advisors who made false claims about their AI capabilities, similar to past actions taken in the Environmental, Social, and Governance (ESG) space. This is a significant shift. Previously, the SEC's focus was on corporate disclosure failures. Now, individuals involved in AI-related disclosures could face penalties if they: ✅ Knowingly or unknowingly misrepresent the role and risks of AI in their company's operations. ✅ Fail to take reasonable steps to ensure accurate disclosures. If you're involved in AI development or implementation for publicly traded companies: - be aware of your potential liability regarding accurate disclosures; - encourage a culture of transparency within your organization regarding AI use; - seek guidance from legal and compliance professionals to navigate the evolving regulatory landscape. #AI#SEC#Disclosure#FinancialMarkets

🐎 Mustang Debbie Channel🐎

@mustangdebb · Post #47677 · 09.05.2026 г., 02:35

https://x.com/mrmbb333/status/2052868548574560425?s=52 🛸 THE UFO DISCLOSURE ISN’T THE BIGGEST STORY Something changed. Not just in Washington… but in the skies. For years people were mocked for talking about strange objects, unexplained lights, military encounters, electrical disturbances, and things that didn’t make sense. Now suddenly… files are being released. Pilots are speaking openly. Major media outlets are covering it nonstop. But here’s what stands out Why is all of this happening at the SAME time the world is seeing: • increased solar activity • strange sky phenomena • drone/satellite concerns • auroras farther south • extreme weather worldwide • nonstop reports coming from the skies Maybe this was never just about UFOs. Maybe something bigger is changing around us… and people are finally starting to notice. 👇 What do YOU think is really going on right now? #MrMBB333#UFO#Disclosure#SpaceWeather#UAP

BadVolf

@badvolfnews · Post #940 · 26.09.2023 г., 21:55

⚠️#ALARM⚠️#BreakingNews⚡️#France🇫🇷 #francophonie#Switzerland#Africa #France#Population in great #Danger⚡️ #Pfizer#CovidPsyOps#Documents#Revealtions#Disclosure#Website#Truth#Veritee#Action#Genocide#Eris #NATO is #using France 🇫🇷 as a #testingground. #Hackers have probably hacked the server of NATO's Scientific Collaboration support office in #Paris and published #Secret⚠️#NATO documents. These documents reveal extremely shocking facts, namely: the low efficacy of the Pfizer vaccine against the new strain of #Omicron, the high risk of embryonic developmental pathologies and cardiovascular diseases following injection of the vaccine, and NATO's implementation of dangerous experiments in the heart of Paris and the surrounding area. https://x.com/Najadi4Justice/status/1706713373344223516?s=20