Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Feature summary**:
  
  api.APIGenerator should be a Generator as the class name says
  
  **Use case(s)** :
  
  Currenly all api generators are Iterables; they work with for loops but it 
doest not support next() function of an Iterator but this is used a couple o 
times: see here 
<https://codesearch.wmcloud.org/pywikibot/?q=next%5C(iter%5C(&i=nope&files=&excludeFiles=&repos=>
  
  **Benefits** (why should this be implemented?):
  
  Making api generators a collections.abc.Generator they are capable to be used 
as
  
  - Iterable (for loops etc.)
  - Iterator (next() function etc.)
  - Generator (close() method which is used by BaseBot; BaseBot tries to 
convert every Iterable to a Generator)

TASK DETAIL
  https://phabricator.wikimedia.org/T312654

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to