ChatCrawlersearch across public Telegram Open the app
P

Python 中文交流群

snapshot for May 2025
May 2025 ×
28 May 2025
X
一上来就是一堆 Could not find import of
不是,就是没找到,好像找错我项目根目录了?(没找错)
而且不对,我用户全局是装了 httpx 的,他也没找我 pip 的安装目录
不过其他基本功能没啥大问题
还是有问题,itertools.chain 的类型推导看起来出问题了
X
溜了,先换回 basedpyright 了
🍳
但記得設定 semaphore
X
🍳asyncio.gather
不是,我是指两个 async for 的列表推导式能不能并发 itertools.chain 不行的,我搜了一下得找第三方库了,小脚本,不想装,就算了
🍳
這個可行嗎,把 iterator 放在 async function 裡面
需要手动拼接结果,稍微麻烦一点点,不过也可以
这看起来好像不需要 async def
还是需要的,没事,我以为可以直接 gather 两个 async for 来着(
"AsyncGenerator[int, None]" is not assignable to "Future[_T@gather]" "AsyncGenerator[int, None]" is incompatible with protocol "Generator[Any, None, _T@gather]"
感谢,主要是下载的文件也不多,我就懒得折腾了
X
(已经下载完了)
X
而且就算类型对了,这也不是并发的,async for 本身是自带 await 的
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