Trivial snippets are released under a non-permissive license
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Snippets |
New
|
Undecided
|
Unassigned |
Bug Description
After taking a look at some of the snippets, there are some really trivial examples which basically do as the product intended and they are being released under a license.
Theres a couple of important points and questions here:
1) Attempting to claim copyright under a license of a trivial implementation would be almost impossible.
2) What if I want to release under a different license? For example GPL to MIT, BSD. Is that OK? Would it be a problem?
3) Assuming 2 is OK to do, there's almost no point in having a license. Same goes for 1.
4) What if I write a piece of code, release, then find a snippet which is almost the same and released under a different license. Do I/we have a problem?
Take for example the (currently) four snippets relating to CouchDB. This covers adding, deleting and fetching records and creating a database. They are all trivial implementations and the most basic way that a newcomer to a language is going to do those operations, yet that code is being released under the GPL.
Two other examples are the "Command line arguments" and "Iterating Numeric Lists" in the Python Core section. Both are three lines long and certainly aren't the first examples of them.
I have a real world example of this. Over the weekend I wrote some code on how to add close buttons to Notebook tabs in PyGTK. In the past two days an example has appeared which was almost exactly the same. I released mine in the Public Domain, the author of their example released under GPL. Is there a conflict even though neither developer had seen each others work?
It really needs to be considered whether snippets should have a license or instead be released in the public domain.
I too suggest to release most if not all snippets in the public domain. License doesn't mean much as you will find the same snippets scattered all over the internet.
python-snippets is actually a repo of python snippets categorized for easy use. I think it would be good, if we ask the submitters if they want the snippets under their license of public domain.
N.B.: I support Public Domain