ChatCrawlersearch across public Telegram Open the app
P

Python

snapshot for August 2025
August 2025 ×
28 August 2025
Help, please. Is this a valid approach? class ProtectionConfig[T](TypedDict, total=T): protect: tuple[str, ...] hide: tuple[str, ...]
B
Replymessage unavailable
Trying to create a type generic which will allow or restrict from specifying only one key (or no keys at all). UPD1: shown keys are just specific for target task. The question is about if it's "legal" to pass real-values in generic like in C++ templates. True or False for T. UPD2: The answer is no, it just doesn't work like that cause the Template parameter alwas has TypeVar type
elif user == "game".: consol = random.randint(1, 3) gus = input("hadst:") if gus == (consol): print (" afrin dorost bod !!") else: print (f" galat bod ! ): add man {consol} bod!") what is worng??
29 August 2025
P
x= [17,8,3] y=x y[0]=9 print (x) [9,8,3] What’s reason of it ?
S
Since x and y are pointing to the same list object. any change through one will reflect in the other. try checking their memory addresses using id(): x = [17, 8, 3] y = x print(id(x), id(y))
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog