Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import
#7
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
import - by Skaperen - Jun-15-2018, 04:25 AM
RE: import - by Larz60+ - Jun-15-2018, 09:54 AM
RE: import - by Skaperen - Jun-16-2018, 01:35 AM
RE: import - by Larz60+ - Jun-16-2018, 07:15 AM
RE: import - by Skaperen - Jun-16-2018, 11:21 PM
RE: import - by Larz60+ - Jun-17-2018, 02:19 AM
RE: import - by Skaperen - Jun-17-2018, 03:24 PM

Forum Jump:

User Panel Messages

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