Hi Community Python!
feature description
- I would like to know if it would be possible to limit the consumption of memory in Python:
- PHP has a configuration file where we can limit ram consumption, reference here understanding-php-memory_limit/
- PHP memory_limit directive specifies the memory limit that a given application has to run.
content
sample 1
import standard
memory_limit = 256M
sample 2
from memory import config
memory_limit = 256M
sample 3
from config import memory
memory_limit = 256M