Solved

Python - Is my game's .py code an open book?

Posted on 2014-10-04
2
197 Views
Last Modified: 2014-10-07
Hi
I'm so used to the .class binary encoding for the Java interpreter, which is a little hard to inspect and decipher.
I wonder, is the user that runs my .py from online completely able to inspect and steal my code?
A binary .class is a little harder to inspect and steal. If I inspect a .py inside a browser view source, it seems to be all the code?

Can I make a get-around of sorts, but the .py code itself is unobtainable? Say I'd like to give a person my class's functionality, without them actually having the code?
Thanks
0
Comment
Question by:beavoid
2 Comments
 
LVL 2

Accepted Solution

by:
Nas-Banov earned 500 total points
ID: 40361610
.pyc files are to Python what .class files are to Java.

How exactly are you going to run Python in your browser though?
0
 

Author Comment

by:beavoid
ID: 40361628
Sorry
I thought Python was as runnable as html now, no? Only a ,pyc is. If I let a user of my system have access to my .py file, they can steal my code in text.
Is using pyc the way to go? I basically provide an interface


Basically, my RTS players will have my client network engine class running. I just don't want my code steal-able at a glance.
thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now