Solved

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

Posted on 2014-10-04
2
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

710 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