S
S
Sergey Matkovsky2021-11-05 22:31:40
Python
Sergey Matkovsky, 2021-11-05 22:31:40

Is it possible to get an already existing object in python from another file?

The essence of the question is whether it is possible to create an object in one program and get it, in another program, through some identifier of the same object, as well as interact with it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LXSTVAYNE, 2021-11-06
@anitop

It turns out your program is two processes. Client - where you will send data from and your own discord bot. You can communicate between processes using pipes. https://docs.python.org/3/library/multiprocessing.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question