Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Function Not Working
Post: RE: Function Not Working

(Jul-19-2022, 05:42 AM)buran Wrote: remove the bare try/except and see what the error is we don't know what Input and Colony_Varables used when calling Mod.Input_Main_Colony are.I don't know why I ...
Alivegamer General Coding Help 7 1,919 Jul-19-2022, 11:36 AM
    Thread: Function Not Working
Post: RE: Function Not Working

(Jul-19-2022, 05:25 AM)ndc85430 Wrote: C is just another name for the os.system function. It is generally a bad idea to use single letter names for things, as they don't convey meaning. That lack of...
Alivegamer General Coding Help 7 1,919 Jul-19-2022, 11:32 AM
    Thread: Function Not Working
Post: RE: Function Not Working

(Jul-19-2022, 02:33 AM)Larz60+ Wrote: what does function C look like? Place a print statement print("Returned") after line 7 to see if flow is returnedIt's not a function its a varable (C = os.syst...
Alivegamer General Coding Help 7 1,919 Jul-19-2022, 02:37 AM
  Exclamation Thread: Function Not Working
Post: Function Not Working

I am making a text game. And what I am doing is using another python file as a module in the Main python file(Mod File). And The main file calls The Input_Main_Colony() function and I know it's going ...
Alivegamer General Coding Help 7 1,919 Jul-19-2022, 12:55 AM
  Question Thread: Can you put encoded strings into .txt files?
Post: Can you put encoded strings into .txt files?

I have been trying to encode a text and then put it into a txt file but it doesn't show correctly. When it's in the variable : b'\xff\xfe\x00\x00b\x00\x00\x00l\x00\x00\x00o\x00\x00\x00p\x00\x00\x00' w...
Alivegamer General Coding Help 0 1,279 May-04-2022, 12:50 AM
    Thread: multiprocessing
Post: RE: multiprocessing

(Mar-18-2022, 12:28 AM)snippsat Wrote: (Mar-18-2022, 12:01 AM)Alivegamer Wrote: Well i copied and paste your code to see if it's my errors but I still got the same problem where it will just print...
Alivegamer General Coding Help 12 2,537 Mar-18-2022, 12:50 AM
    Thread: multiprocessing
Post: RE: multiprocessing

(Mar-17-2022, 10:04 PM)Gribouillis Wrote: alivegamer Wrote:Thank you that workedIt does NOT work, your print were executed in the main process. It is the same as >>> import multiprocessing ...
Alivegamer General Coding Help 12 2,537 Mar-18-2022, 12:01 AM
    Thread: multiprocessing
Post: RE: multiprocessing

(Mar-17-2022, 09:35 PM)Gribouillis Wrote: I think args should be a tuple like ("Hello",) @Axel_Erfurt Your code amounts to passing target=None !!!I've tried that it still didn't work but thank you ...
Alivegamer General Coding Help 12 2,537 Mar-17-2022, 09:38 PM
    Thread: multiprocessing
Post: RE: multiprocessing

(Mar-17-2022, 09:31 PM)Axel_Erfurt Wrote: This is how it works for me import multiprocessing def test(rt): print(rt) def main(ar): print(ar) if __name__ == '__main__': p1 = ...
Alivegamer General Coding Help 12 2,537 Mar-17-2022, 09:37 PM
  Bug Thread: multiprocessing
Post: multiprocessing

So I'm trying to learn how to use multiprocessing and It looks like I have all the code correct but still returns "Done" and doesn't print hello and hi first.import multiprocessing def test(rt): ...
Alivegamer General Coding Help 12 2,537 Mar-17-2022, 09:16 PM
  Question Thread: Colored text
Post: Colored text

I've been looking on how to change your text in the command when you run python. class Colors: RED = "\x1b[0;31;40" def Starting(): print(Colors.RED + "Hello") time.sleep(100)This is my c...
Alivegamer General Coding Help 3 2,166 Feb-27-2022, 08:55 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020