daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SMLA():
  2.    
  3.     ##some code
  4.    
  5.    
  6.     def retire_users(self,
  7.                        amount=10,
  8.                        fromUsernames=(False, [], "all"),
  9.                        fromAutoData=(False, "all"),
  10.                        onlyMissing=False,
  11.                        allData=False,
  12.                        style='LIFO',
  13.                        retire_after=None,
  14.                        sleep_delay=450):
  15.                        
  16.     ##other code
  17.    
  18.     """
  19.    All four technics are:
  20.       fromUsernames, fromAutoData, onlyMissing, allData
  21.      
  22.       The program user can choose only one of those technics in one run.
  23.      
  24.       All of those technics are gonna generate a List in final
  25.       and do retirement activity based on the usernames in that list.
  26.      
  27.       so in final all of their content will be like
  28.      
  29.       final_names = ["user1", "user2", "user3", "user4", "etc."]
  30.      
  31.  
  32.    
  33.    Other parameters are general and will be used with any technic chosen:
  34.    amount, style, retire_after, sleep_delay
  35.    
  36.    """
  37.    
  38.     """
  39.    In final
  40.    
  41.    
  42.    for `fromUsernames` argument (I called it technic above) the second element is giving data
  43.    and I want it to be either a list, tuple, set, or a simple dict or anything that can be iterable.
  44.    
  45.    e.g  somelist = ["adsad", "adfaasd"]
  46.    
  47.    SMLA.retire_users(amount=10,
  48.                       fromUsernames=(True, somelist, "all"),
  49.                       fromAutoData=(False, "all"),
  50.                       onlyMissing=False,
  51.                       allData=False,
  52.                       style='LIFO',
  53.                       retire_after=None,
  54.                       sleep_delay=450)
  55.    
  56.    """
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top