Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-10-04
2
Medium Priority
?
242 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Variable is a place holder or reserved memory locations to store any value. Which means whenever we create a variable, indirectly we are reserving some space in the memory. The interpreter assigns or allocates some space in the memory based on the d…
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. …
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 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…

719 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