Jun-17-2018, 03:24 PM
i want to get to the point of thinking Python instead of C when i code Python. but it is hard when so many of my "applications" are system level things. i have no doubt they can be done the Python way like high level applications. so, now i need a way to do the pivot_root() syscall in Linux. i also need to write a UDP forwarder with rules about where datagrams may come from to be forwarded.
i do know it is the Python Way to use modules that can help, like twisted for UDP networking. but in quite many cases my scripts need to "just run" with what each Linux distro comes with (hopefully python3). that means i am limited to the modules that come in the python package the distro has. and i know of at least one distro that comes with python2, only, even though python3 is available to install from the official repository.
i do know it is the Python Way to use modules that can help, like twisted for UDP networking. but in quite many cases my scripts need to "just run" with what each Linux distro comes with (hopefully python3). that means i am limited to the modules that come in the python package the distro has. and i know of at least one distro that comes with python2, only, even though python3 is available to install from the official repository.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.