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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #iplaw

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

@ai_and_law · Post #677 · 13.10.2025 г., 07:04

🇺🇸DC Comics Rejects Generative AI in Creative Work DC Comics President and Publisher Jim Lee made a clear statement during New York Comic Con: the company will not support the use of generative AI for storytelling or artwork. “Not now, not ever, as long as Anne DePies and I are in charge,” Lee said, framing AI’s role in creative industries as a passing trend akin to the Millennium bug scare and NFT hype. DC has long required that all its artwork be original and authentically created by artists. Recent backlash over suspected AI use in variant comic covers prompted the company to take an even firmer stance. Lee emphasized that audiences value “what feels authentic,” adding: “AI doesn’t dream. It doesn’t feel. It doesn’t make art. It aggregates it.” #AIEthics#CreativeRights#IPLaw #

AI & Law

@ai_and_law · Post #588 · 10.06.2025 г., 07:04

🇺🇸Labels vs. AI Music: Licensing Over Litigation? Major record labels—Universal, Sony, and Warner—are now negotiating licensing and equity deals with AI music startups Udio and Suno. The goal: resolve ongoing copyright lawsuits and set a precedent for compensating artists whose work has been used to train generative models. The labels are reportedly demanding both financial licensing terms and equity stakes in the companies. This marks a strategic shift from past copyright wars. Instead of litigation-first tactics like with Napster, the industry is exploring commercial alignment. If finalized, these agreements could define how creative rights are protected in the era of synthetic content—and signal how future IP disputes with AI firms may be resolved. #AIandLaw#CopyrightAI#IPlaw

AI & Law

@ai_and_law · Post #591 · 13.06.2025 г., 07:04

🇺🇸🎬 Hollywood Declares War on Generative AI Disney, Universal, Marvel, and other entertainment giants have filed a lawsuit against Midjourney, alleging that its AI models are built on large-scale copyright infringement. The studios accuse Midjourney of scraping protected visual content to allow users to generate unauthorized versions of iconic characters — from Yoda to Shrek. This is the first major legal action from Hollywood targeting generative AI, and it could define how U.S. courts interpret “fair use” in the age of synthetic media. As Disney’s counsel put it: “Piracy is piracy.” The entertainment industry may no longer sit at the negotiating table — it’s headed to court. #Midjourney#AIandLaw#FairUse#IPLaw

AI & Law

@ai_and_law · Post #788 · 19.03.2026 г., 08:04

🇺🇸⚖️Britannica and Merriam-Webster Sue OpenAI Over Copyright and Trademark Claims Encyclopedia Britannica and Merriam-Webster have filed a lawsuit against OpenAI, alleging “massive copyright infringement.” The publishers claim that nearly 100,000 copyrighted articles were scraped and used to train OpenAI’s large language models without permission. The complaint also alleges that OpenAI reproduces full or partial verbatim excerpts of their content in outputs and uses their materials within ChatGPT’s retrieval-augmented generation (RAG) processes. The lawsuit further claims violations of the Lanham Act, arguing that OpenAI attributes hallucinated or fabricated content to Britannica, potentially misleading users. According to the filing, ChatGPT generates responses that directly compete with publishers’ content, reducing traffic and revenue while raising concerns about the reliability of online information. This case adds to a growing number of lawsuits against OpenAI, including claims brought by The New York Times and Ziff Davis, as well as multiple newspapers in the U.S. and Canada. A separate lawsuit filed by Britannica against Perplexity on similar grounds remains pending. #Copyright#AIRegulation#AIGovernance#IPLaw#GenerativeAI#Litigation#AIethics