Message from Python discussions

November 2018

— Why

— 

You can create a PHP script with your python code inside a string and then shell_exec($python_code)

<?php 
$python_code = "print('Hello World")";

shell_exec("python3 " . $python_code);
?>

— Can anyone tell me instruction for minimum element in numpy?

— For example compile to byte code or via python optmize

— No, you can run just "php script.php"

— But it was a joke

— Https://docs.python.org/3.7/tutorial/modules.html#compiled-python-files

— You say right , Not joke

— .pyc files can be reversed 🤷‍♂️

— As a varaint, or you can compile it to binary(via pyinstaller etc)

— Also how? dis module?

— Uncompyle6