Does the lack of actual hiding essentially make all of Python open source? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does the lack of actual hiding essentially make all of Python open source?

25th Jul 2016, 10:17 PM
Barcode
Barcode - avatar
1 Answer
0
you can ship files with python byte code (pyc files) which are not readable directly but can be decompiled and read. you can use obfucators to mess with the code to make it less readable. this will change names of functions and variables to some nonsense (and some other stuff), so it will be harder to continue to develop on top of that code. apart from that i don't think there is a real way to protect python code. keep in mind that java also suffers from this problem and i would say probably all other languages which use some kind of virtual machine to execute the code.
29th Jul 2016, 7:08 AM
RedAnt
RedAnt - avatar