English
Open in Telegram

Thread Under pep 255:

8 messages · –
A
Link
click to show
Under pep 255: When a generator function is called, the actual arguments are bound to function-local formal argument names in the usual way, but no code in the body of the function is executed. Instead a generator-iterator object is returned; this conforms to the iterator protocol, so in particular can be used in for-loops in a natural way. Note that when the intent is clear from context, the unqualified name "generator" may be used to refer either to a generator-function or a generator-iterator.
  1. M
    در واقع تا زمانی که ایتریت نشه اون تابع اصلا فرواخوانی نمیشه درسته؟
      1. M
        یه سوال این چیزارو بر اساس تجربه متوجه شدید؟ یعنی به این مشکل خوردید و رفتید سرچ کردید و متوجه شدید یا کلا از اول از داکیومنت خوندید برای همین میدونید؟
          1. M
            ببخشید ولی اگر میشه منبع هایی که استفاده کردی برای asyncio معرفی کن خیلی هم ممنون بابت راهنمایی ها
PPython + Linux ExpertsPython + Linux Experts@PythonLinuxExperts · group · Tech
4 287members20writing in 30 days
Venue feed Open in Telegram

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 · Index limits · Remove a page · Catalog · Search · How we count