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

Резултати

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

Пребарај: #senate

当前筛选 #senate清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4064 · 04.02.2025 г., 10:00

US Sovereign Fund Eyes Bitcoin Investment After Trump's new decree, bullish sentiments rise as Senator Lummis hints at potential government investment in $BTC that could drive significant market growth. Read more: Impact #BTC#Crypto#VC#Trump#Senate#Investment#MarketTrends#Blockchain#DigitalAssets

Reuters: World

@reutersworldchannel · Post #149197 · 11.10.2021 г., 00:30

Yellen confident Congress will raise debt ceiling U.S. Treasury Secretary Janet Yellen said that it will be lawmakers' responsibility to raise the federal debt limit and expressed confidence that Congress would do so after the temporary reprieve runs out on Dec. 3 #Debt#Senate#JanetYellen#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

NIDO Russia (НИДО)

@nido_russia · Post #1770 · 24.08.2024 г., 15:32

Promise of more focus on Nigerian Issuestowards speedy resolution In my meeting yesterday and today with the Honorable Director, Diaspora & International Affairs, from National Assembly of Nigeria, Hon. Shadé Adepeju-Joseph, she promised to bring governmental attention to most of the plight that Nigerians face here, including unpaid student stipends/salaries and documentation. She also promised to take back home, much of the beautiful experience she got in Russia towards the betterment of bilateral ties, increased cultural exchange and trade. Sputnik Africa also interviewed us to get to the bottom of these issues and brainstorm potential solutions. Stay tuned! Yours in Service, Dr. Godwin Ibe Chairman, NIDO Russia https://t.me/nido_russia/1770 #senate#Nigeria#nationalassembly#nido

America 🇺🇸 News & Politics

@America · Post #10381 · 13.03.2026 г., 06:06

🏛️🇺🇸SENATE BANS FEDERAL RESERVE CBDC — CRYPTO WINS BIG! 🔹 Senate votes 89-10 to BLOCK Fed from issuing digital dollar through 2030 💰 🔹 Bipartisan victory for financial privacy and traditional banking system 🏦 🔹 Prevents Fed from issuing CBDC directly OR through intermediaries 🚫 🔹 Freedom Caucus wants PERMANENT ban, not just temporary restriction 🔥 🔹 Trump position unclear — may demand voter ID bill passage first 🗳️ MASSIVE win for crypto advocates who warned CBDCs = surveillance! 👀 House vote uncertain, but momentum building against digital dollar 💪 Private crypto looking STRONGER! 🚀 #USNews#CBDC#crypto#Senate#privacy @america

Venture Village Wall 🦄

@venturevillagewall · Post #3833 · 09.01.2025 г., 22:00

U.S. Senate to Form Crypto Subcommittee The U.S. Senate Banking Committee, led by Senator Tim Scott, is set to establish its first cryptocurrency subcommittee, with Cynthia Lummis tentatively selected as chair. A vote to confirm her appointment and new members is expected soon. Read more: link #Crypto#Senate#USDC#XLM#Uniswap#Ethereum#AI#VC

Libertà è ragione

@libertaeragione · Post #4118 · 12.02.2024 г., 08:37

#USA#Ucraina#Israele#Taiwan Il #Senate ha approvato, con 67 voti favorevoli e 27 contrari, la chiusura dell’accordo per la fornitura di aiuti per un ammontare pari a 95 miliardi di dollari a Ucraina, Israele e Taiwan. Anche 18 senatori repubblicani hanno votato a favore dell’accordo, mentre Bernie #Sanders (#D|Centro-sinistra) è stato l’unico dem ad opporsi alla fornitura di aiuti a tali nazioni. @OsservatorioEsteri

Crypto M - Crypto News

@CryptoM · Post #64638 · 09.04.2026 г., 12:15

🚀 U.S. Treasury Secretary Urges Senate to Advance CLARITY Act U.S. Treasury Secretary Besant has emphasized the need for the Senate Banking Republicans to review and advance the CLARITY Act for President Donald Trump's signature. According to Odaily, the legislation has been in development for nearly five years, aiming to secure the future growth of the financial industry. #USTreasury#CLARITYAct#Senate#FinancialIndustry#USPolitics

Libertà è ragione

@libertaeragione · Post #4276 · 05.11.2024 г., 10:02

#Elezioni#USA#Presidenziali Urne aperte in #Vermont per le elezioni presidenziali, il primo Stato americano ad aprire i seggi ufficialmente per il voto nell’Election Day. Oltre ad eleggere il nuovo Presidente degli Stati Uniti si vota a livello federale per rinnovare completamente la #House ed eleggere 1/3 dei membri del #Senate. In alcuni Stati si vota per rinnovare le legislature statali, i governatori e le altre cariche esecutive oltre che votare diversi quesiti referendari. In #Oregon si vota solo via posta, quindi non vi è un voto in presenza. @OsservatorioEsteri

Crypto M - Crypto News

@CryptoM · Post #64680 · 09.04.2026 г., 13:56

🚀 Wyoming's Digital Asset Regulation Discussed in Senate Roundtable U.S. Senator Cynthia Lummis, chair of the Senate Digital Assets Banking Subcommittee, hosted a roundtable at the Wyoming State Capitol. According to Foresight News, the event included discussions with Comptroller Jonathan V. Gould and Governor Mark Gordon on the state's current digital asset regulatory landscape, the significance of a dual banking system, and how banking regulation can support responsible financial innovation. Lummis emphasized Wyoming's leadership in the digital asset sector, noting that efforts initiated nearly a decade ago in the state have laid the groundwork for current federal initiatives. She highlighted Wyoming's comprehensive digital asset regulatory framework and expressed the importance of Comptroller Gould's visit to ensure federal policies reflect effective practices. #Wyoming#DigitalAssets#Regulation#Senate#Banking#FinancialInnovation#Cryptocurrency#USPolitics

Crypto M - Crypto News

@CryptoM · Post #65086 · 10.04.2026 г., 22:56

🚀 Treasury Secretary Advocates for Clarity Act Advancement Amid Senate Review Treasury Secretary Scott Bessent has called on the Senate to expedite the passage of the Clarity Act, with Polymarket estimating a 59% probability of its approval by 2026. According to NS3.AI, the White House's Council of Economic Advisers released a report indicating that permitting stablecoin yields would minimally impact lenders' financial outcomes. The Senate Banking Committee is scheduled to evaluate the bill in the closing weeks of April. #TreasurySecretary#ClarityAct#Senate#Stablecoins#Finance#Legislation#EconomicPolicy#BankingCommittee

ПретходнаСтраница 1 од 3Следна