News for hackers. Stuff that matters.
Re:“Python's batteries are leaking” by thaumasiotes on Saturday May 18, 2019 @04:05PM (#19949458)
> if you must have a system that parses XML but for company policy is not allowed to have even the means of performing a network request. With python you either have both xml and an http library and whatever else included and you will either have to do a special package with a striped down python+xml only or get a corporate exception. While on other languages you can install only the xml parser component package and your code will run happily and be compliant with company policy.

...wouldn't the company policy involve removing the means of performing a network request from the computer, making the notional capabilities of the software irrelevant?

Python will let you drive network requests through the OS. It's just that you wouldn't normally want to.

Re:“Python's batteries are leaking” by lalaland1125 on Sunday May 19, 2019 @02:32AM (#19951799)
+1 for this. Trying to ban programming languages that support network connections is both foolish and impossible. Any Turing complete language that allows any sort of OS interaction can be used to communicate over a network. Even if you have to manually do the syscalls yourself.
Re:“Python's batteries are leaking” by gcb0 on Wednesday May 22, 2019 @12:23AM (#19977748)
most companies i've worked for have special packages for perl/python/php/etc that compile the interpreter without support for system calls, for example.

That alone have probably paid of handsomely over the years considering all the XSS we patched, which could very well have been full network compromises.