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

TASK DESCRIPTION
  Introduction
  ------------
  
  The new choices() function returns a list of elements of specified size from 
the given population.
  https://docs.python.org/3.6/whatsnew/3.6.html#random
  
  What to do
  ----------
  
  `site_tests` uses shuffle over a given list and copies a sublist:
  
    great_wikis = self.site.family.languages_by_size[:-size]
    random.shuffle(great_wikis)
    great_wikis = great_wikis[:size]
  
  This can be simplified with `random.choises()`.
  These issues can be found at 
https://codesearch.wmcloud.org/pywikibot/?q=shuffle&i=nope&files=&excludeFiles=&repos=
  
  Split patches into parts of only a couple of affected files. This makes it 
easier to review.
  **This task is not ready to go yet.** We are waiting for Python 3.5 support 
has been dropped; this will become a `good-first-task` then.
  
  Usefull links
  -------------
  
  - Pywikibot documentation <https://doc.wikimedia.org/pywikibot/master/>
  - Pywikibot Manual <https://www.mediawiki.org/wiki/Manual:Pywikibot>
  - Python Coding Convention 
<https://www.mediawiki.org/wiki/Manual:Coding_conventions/Python>
  - Pywikibot Development Guidelines 
<https://www.mediawiki.org/wiki/Manual:Pywikibot/Development/Guidelines>

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

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

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, 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