Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have found several functions in python 2.7.2 to be very useful and I recreated them in C++ for my own uses. How do I properly give python credit for them? Do I even have to? I never actually looked at their source codes. I just wrote functions that output the same values as the python versions of the function.

share|improve this question

migrated from Jul 22 '13 at 16:54

This question came from our site for professional and enthusiast programmers.

As a sidenote, you might be interested in nuitka, which translates Python code to C++ – Tobias Kienzler Feb 18 '15 at 10:12
up vote 3 down vote accepted

You don't need to give any credit if you don't want to.

Most computer languages are inspired by other languages and have features like those languages. Just check Python's own tutorial on classes and library reference for itertools. While reading these I thought they were advertising and nearly gave up reading the tutorial on classes as it was too much in the beginning.

The point is that if you want you can mention that in a comment or fill paragraphs about how you were inspired by Python but it is not necessary as you never used/saw their actual code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.