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


Groups > comp.lang.python > #5552

Re: obviscating python code for distribution

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <dotancohen@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'something,': 0.07; '(possibly': 0.09; 'demonstrates': 0.09; 'gpl': 0.09; "person's": 0.09; 'linux': 0.11; 'written': 0.12; 'received:74.125.82.174': 0.12; 'received:mail- wy0-f174.google.com': 0.12; 'slightly': 0.12; 'wrote:': 0.14; 'subject:python': 0.15; 'authors.': 0.16; 'categories:': 0.16; 'firefox.': 0.16; 'glue': 0.16; 'invariably,': 0.16; 'served': 0.16; 'subject:distribution': 0.16; 'two.': 0.16; '16,': 0.16; 'code.': 0.18; 'meant': 0.18; 'foss': 0.19; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'code,': 0.20; 'discussion': 0.20; 'work,': 0.20; 'interface': 0.20; 'language': 0.20; 'maybe': 0.21; 'appropriate': 0.21; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'mon,': 0.22; 'purposes.': 0.23; 'subject:code': 0.23; 'unlikely': 0.23; "i'm": 0.26; "i'll": 0.26; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'beyond': 0.28; 'problem': 0.29; 'house,': 0.29; 'licenses': 0.29; 'probably': 0.30; "won't": 0.30; 'cc:addr:python.org': 0.31; 'grasp': 0.31; 'steal': 0.31; 'does': 0.31; 'it.': 0.31; 'fact': 0.31; 'however,': 0.31; 'separate': 0.31; 'anyone': 0.31; 'project': 0.32; 'source': 0.32; 'agree': 0.32; "i've": 0.33; 'someone': 0.33; 'generally': 0.33; 'there': 0.35; 'first.': 0.35; 'suggestion': 0.35; 'open': 0.35; 'missing': 0.36; 'think': 0.36; 'else': 0.37; 'two': 0.37; 'some': 0.37; 'exactly': 0.37; 'steven': 0.38; 'received:google.com': 0.38; 'goes': 0.38; 'less': 0.38; 'but': 0.38; 'files': 0.38; 'them,': 0.38; 'unless': 0.38; 'it!': 0.39; 'larger': 0.39; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'might': 0.40; 'simple': 0.60; 'learn': 0.60; 'give': 0.61; 'family': 0.62; 'huge': 0.62; '2011': 0.62; 'valuable': 0.63; 'worth': 0.64; 'human': 0.64; 'ever': 0.65; 'world': 0.65; 'afraid': 0.69; 'tiny': 0.69; 'online': 0.70; 'hey,': 0.74; 'spot': 0.77; 'worms': 0.84; 'technique': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=KTsC1KHj5Gq5O1WTm65kZ3yhhUwBhhpjJLqMA0TtpuE=; b=PV8FPmEzBO8TJ1yRqnSYINn6eoksvdHYihUASIhMo9siJ6b9avhkMWWtA1AcPwzBKX SvwXU4sB25I3AW8DZbQbibsiIgVSnqAqwXbMUGfqwEI5vv8D4GhXgk48WWbX33uFN7ch AcBn6xHYHg5AskWvpsmyZSldWWbGgUTtWFqdQ=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=hwiYFT9Rl0WthI198N6JpRDjZTfX/cmQYibMH1rUlCVd2CnESUtrULuSarcBY/x+B9 N+f/+09z7e1Q8MwnSAm4GoT0qgMMx79X7GnoYg9BNeXN6s5i4YfgRWXJEFfUa9DGnMi5 kwSv5sUX9s9LvuE59Z4ViP3tp/iXfqKwHlvZ8=
MIME-Version 1.0
In-Reply-To <BANLkTin8JUYbSCOvCHvXYt+LYZMn1Th1tA@mail.gmail.com>
References <mailman.1609.1305511928.9059.python-list@python.org> <87boz3gw5u.fsf@benfinney.id.au> <mailman.1614.1305517027.9059.python-list@python.org> <4dd0a1fc$0$29983$c3e8da3$5496439d@news.astraweb.com> <BANLkTin8JUYbSCOvCHvXYt+LYZMn1Th1tA@mail.gmail.com>
Date Tue, 17 May 2011 09:16:35 +0300
Subject Re: obviscating python code for distribution
From Dotan Cohen <dotancohen@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1659.1305612997.9059.python-list@python.org> (permalink)
Lines 44
NNTP-Posting-Host 82.94.164.166
X-Trace 1305612997 news.xs4all.nl 49046 [::ffff:82.94.164.166]:46331
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5552

Show key headers only | View raw


On Mon, May 16, 2011 at 07:40, Chris Angelico <rosuav@gmail.com> wrote:
> And I'm sure Steven will agree with me that this is not in any way a
> bad thing. I've written hundreds of such programs myself (possibly
> thousands), and they have all served their purposes. On a slightly
> larger scale, there are even more programs that have never left the
> walls of my house, having been written for my own family - not because
> I'm afraid someone else will steal them, but because they simply are
> of no value to anyone else. But hey, if anyone wants a copy of my code
> that's basically glue between [obscure application #1] and [obscure
> application #2] that does [obscure translation] as well to save a
> human from having to do it afterwards, sure! You're welcome to it! :)
>
> However, I do not GPL my code; I prefer some of the other licenses
> (such as CC-BY-SA), unless I'm working on a huge project that's not
> meant to have separate authors. For something that by and large is one
> person's work, I think it's appropriate to give attribution. But
> discussion of exactly _which_ open source license to use is a can of
> worms that's unlikely to be worth opening at this stage.
>

Actually, Chris, those applications are probably no less valuable to
be open source than Linux or Firefox. The reason is that when one goes
to learn a new language it is valuable to look at existing real world
code. However, the code available online generally falls into one of
two categories:
1) Simple sample code, which demonstrates a principle or technique
2) Full-blown FOSS application with hundreds of source files and a build

It sounds to me like your home-brew code might be one of the missing
links between the two. It won't be so tiny as to be trivial, but it
won't be so huge as to be beyond the grasp of novices.

I for one would love to look over such code. I'll learn something,
without a doubt. Maybe someone might even spot a bug or make a
suggestion to improve it. And almost invariably, any problem that I've
ever had someone has had first. So while you might have been one of
the first have a need to interface FooWidget with PlasmoidBar, someone
after you will in fact need just the code to do that.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

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


Thread

obviscating python code for distribution "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-05-15 20:04 -0600
  Re: obviscating python code for distribution Ben Finney <ben+python@benfinney.id.au> - 2011-05-16 13:29 +1000
    Re: obviscating python code for distribution "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-05-15 21:36 -0600
      Re: obviscating python code for distribution harrismh777 <harrismh777@charter.net> - 2011-05-15 22:48 -0500
      Re: obviscating python code for distribution Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-16 04:03 +0000
        Re: obviscating python code for distribution Chris Angelico <rosuav@gmail.com> - 2011-05-16 14:40 +1000
        Re: obviscating python code for distribution "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-05-15 23:41 -0600
          Re: obviscating python code for distribution Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-16 08:49 +0000
            Re: obviscating python code for distribution Chris Angelico <rosuav@gmail.com> - 2011-05-16 19:10 +1000
            Re: obviscating python code for distribution harrismh777 <harrismh777@charter.net> - 2011-05-16 14:40 -0500
          Re: obviscating python code for distribution Nobody <nobody@nowhere.com> - 2011-05-16 13:05 +0100
        Re: obviscating python code for distribution James Mills <prologic@shortcircuit.net.au> - 2011-05-16 16:00 +1000
        Re: obviscating python code for distribution Chris Angelico <rosuav@gmail.com> - 2011-05-16 16:12 +1000
        Re: obviscating python code for distribution "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-05-16 00:17 -0600
        Re: obviscating python code for distribution "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-05-16 00:20 -0600
          Re: obviscating python code for distribution Ben Finney <ben+python@benfinney.id.au> - 2011-05-17 10:22 +1000
        Re: obviscating python code for distribution James Mills <prologic@shortcircuit.net.au> - 2011-05-16 16:24 +1000
        Re: obviscating python code for distribution geremy condra <debatem1@gmail.com> - 2011-05-16 00:27 -0700
        Re: obviscating python code for distribution Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-05-16 11:36 +0200
        Re: obviscating python code for distribution "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-05-16 08:44 -0600
          Re: obviscating python code for distribution Ben Finney <ben+python@benfinney.id.au> - 2011-05-17 10:30 +1000
          Re: obviscating python code for distribution alex23 <wuwei23@gmail.com> - 2011-05-16 20:45 -0700
        Re: obviscating python code for distribution Dotan Cohen <dotancohen@gmail.com> - 2011-05-17 09:16 +0300
        Re: obviscating python code for distribution Chris Angelico <rosuav@gmail.com> - 2011-05-17 16:39 +1000
        Re: obviscating python code for distribution "D'Arcy J.M. Cain" <darcy@druid.net> - 2011-05-17 09:36 -0400
      Re: obviscating python code for distribution Ben Finney <ben+python@benfinney.id.au> - 2011-05-16 14:10 +1000
        Re: obviscating python code for distribution Grant Edwards <invalid@invalid.invalid> - 2011-05-16 13:52 +0000
          Re: obviscating python code for distribution Ben Finney <ben+python@benfinney.id.au> - 2011-05-17 10:27 +1000
    Re: obviscating python code for distribution Disc Magnet <discmagnet@gmail.com> - 2011-05-20 14:49 +0530

csiph-web