# Question about license of a python re-implementation

**URL:** <https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297>\
**Category:** Newbie\
**Tags:** python\
**Created:** [January 27, 2021, 9:10pm UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297 "2021-01-27T21:10:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@dirk](https://root-forum.cern.ch/u/dirk)\
**Post date:** [January 27, 2021, 9:10pm UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297/1 "2021-01-27T21:10:08Z")

</div>

Dear root experts,

I’m a former user of root and I was using it quite extensively throughout my time as a PHD student at CERN.  
I have a python re-implementation in place of a small part of root, which I’d like to distribute as a standalone python package. Can you please advise me which license I have to use in such a case and in what extend I have to link to the original root-code?

Thanks a lot in advance,  
Dirk

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [January 28, 2021, 9:32am UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297/2 "2021-01-28T09:32:56Z")

</div>

@Axel do you have a suggestion here? Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 28, 2021, 10:31am UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297/3 "2021-01-28T10:31:39Z")

</div>

Hi Dirk,

Good to hear that ROOT was useful, thanks for sharing!

Most of ROOT’s own code (i.e. not contributed packages such as cppyy) are LGPL’ed. I’m no lawyer, and so I cannot answer your question. But I have a personal opinion / expectation, and that is that a re-implementation does not depend on the license of the original software, but that we would certainly appreciate a “kudos” in publications / documentation / code!

Out of curiosity, which part are we talking about?

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![dirk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@dirk](https://root-forum.cern.ch/u/dirk)\
**Post date:** [January 28, 2021, 9:16pm UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297/4 "2021-01-28T21:16:10Z")

</div>

Hi @Axel,

from what I understand, I think I have to use at least LGPL2.1, or higher, right? And of course, documentation etc. would include kudos to the original code 😉  
The re-implementation is basically about the functionality of the TGraphAsymmErrors.Divide() function, so basically the calculation of uncertainties for efficiencies and 2 Poisson means.

Cheers,  
Dirk

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 29, 2021, 7:50am UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297/5 "2021-01-29T07:50:26Z")

</div>

Hi Dirk,

ROOT is indeed licensed LGPL 2.1 or higher. My opinion / understanding on whether a reimplementation has to have the same license didn’t change, now that I know it’s just about a couple of additions, multiplications, and divisions! 😉

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![dirk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@dirk](https://root-forum.cern.ch/u/dirk)\
**Post date:** [January 30, 2021, 10:47pm UTC](https://root-forum.cern.ch/t/question-about-license-of-a-python-re-implementation/43297/6 "2021-01-30T22:47:58Z")

</div>

Hi @Axel,

alright, then I’ll go with your suggestion. Thanks for the discussion.

Cheers,  
Dirk
