3.5e Racial Substitution Levels Eijilund Plushie

Eijilund Plushie Racial Substitution Levels

Note: Only Plushies are eligible for these.



Back to Main Page 3.5e Homebrew Character Options Racial Substitution Levels

gollark: It'd hit `while True: pass` on all the executor threads first.
gollark: In parallel!
gollark: It enumerates and executes all possible strings.
gollark: ```pythonimport itertoolsimport multiprocessing as mchars = [chr(x) for x in range(32, 126)]chars.extend(["\t", "\n"])def generate_for_length(length): return map(lambda chars: "".join(chars),itertools.combinations(chars, length))def generate(): for i in itertools.count(): for s in generate_for_length(i): yield sif __name__ == "__main__": def start(func): proc = m.Process(target=func) proc.start() io_queue = m.Queue(maxsize=128) def printer(): while True: print(io_queue.get()) code_queue = m.Queue(maxsize=128) def generator(): for x in generate(): code_queue.put(x) def executor(): while True: code = code_queue.get() result = None try: result = repr(exec(code)) except Exception as e: result = repr(e) if result != "None": io_queue.put(code + ": " + result) start(generator) for _ in range(4): start(executor) printer()```Expanded version.
gollark: But the exec is *important*.
This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.