Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64129

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

Date 2014-01-16 17:21 -0800
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?
References <7bf45fc1-e1c4-44f2-812c-e11ffa2c8ef3@googlegroups.com> <CAPTjJmp0T58xk1Ct6Pz43cH3y2fVwQJfy4Sk=QY0R1Vgps0uYQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5617.1389921693.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 01/16/2014 05:09 PM, Chris Angelico wrote:
> On Fri, Jan 17, 2014 at 11:58 AM, Sam <lightaiyee@gmail.com> wrote:
>> I would like to protect my python source code. It need not be foolproof as long as it adds inconvenience to pirates.
>>
>> Is it possible to protect python source code by compiling it to .pyc or .pyo? Does .pyo offer better protection?

No and no.

> Distribute your code with a copyright notice, accept that a few people
> will rip you off, and have done with it.

Yes.  One of the nice things about Python is being able to fix bugs myself [1].

--
~Ethan~


[1] Yes, I file upstream bug reports.  :)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is it possible to protect python source code by compiling it to .pyc  or .pyo? Sam <lightaiyee@gmail.com> - 2014-01-16 16:58 -0800
  Re: Is it possible to protect python source code by compiling it to .pyc or .pyo? Ned Batchelder <ned@nedbatchelder.com> - 2014-01-16 20:07 -0500
  Re: Is it possible to protect python source code by compiling it to .pyc or .pyo? Ben Finney <ben+python@benfinney.id.au> - 2014-01-17 12:07 +1100
  Re: Is it possible to protect python source code by compiling it to .pyc or .pyo? Chris Angelico <rosuav@gmail.com> - 2014-01-17 12:09 +1100
  Re: Is it possible to protect python source code by compiling it to .pyc or .pyo? Ethan Furman <ethan@stoneleaf.us> - 2014-01-16 17:21 -0800
  Re: Is it possible to protect python source code by compiling it to .pyc  or .pyo? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-17 05:11 +0000
  Re: Is it possible to protect python source code by compiling it to .pyc or .pyo? Joshua Landau <joshua@landau.ws> - 2014-01-17 21:31 +0000
  Re: Is it possible to protect python source code by compiling it to .pyc or .pyo? Tim Delaney <timothy.c.delaney@gmail.com> - 2014-01-18 09:02 +1100

csiph-web