Start Contributing to Python: Your First Steps

Start Contributing to Python: Your First Steps

If you want to start contributing to open source, then Python is a great project to start with. You’ll not only be making your mark on one of the biggest projects out there, but you’ll also be doing it as part of a vibrant and welcoming community. Open source projects rely on contributions from volunteers like you to grow and evolve, so you’ll be making a real difference to the future of open source software.

On top of that, contributing to open source is a great way to learn and build your skills, so don’t worry if you don’t feel like an expert. There may be a way to contribute that’s perfect for you, even if you don’t know about it yet. It all starts with your first contribution!

By the end of this tutorial, you’ll know:

  • How you can contribute in a way that matches your skills and interests
  • What resources and tools you can use to help you contribute confidently
  • Where you can find ideas for fixes to propose in your first contribution

How You Can Contribute

Depending on your interests and skills, you can contribute in a number of different ways. For example, if you want to contribute to CPython, you can:

But if you want to contribute in other areas, you can:

You can also help review pull requests from other contributors. The core developers have a lot of work on their hands, so if you can help move some issues forward, then you’ll be helping Python get better faster.

How to Get the Resources You’ll Need

When you start contributing to an open source project, there can be a lot of information to take in all at once.

To help you navigate it all, your first port of call should be the Python Developer’s Guide. It’s a super important resource that all contributors and core developers rely on since it covers everything from how to assess a potential contribution to how to deal will issue tracking. (If you contribute to this guide, then you’ll be able to make a big impact on what contributing to Python is like.)

Once you get down to the nuts and bolts of contributing, it’ll be useful to get familiar with a few tools:

Although you don’t need to have experience with the C programming language to contribute to Python, it can open up some new ways of contributing. Here are some resources you can check out to learn more:

To get a feel for how the interpersonal aspects of contributing to Python work, you can also check out Brett Canon’s PyCascades talk Setting Expectations for Open Source Participation. It’s about setting reasonable expectations of each other so we can make open source pleasant for everyone involved.

How to Pick Your First Issue

If you see something in Python that you think should be improved, then you’re welcome to suggest it. But for your first contribution, it can be easier to start with an issue that has already been flagged by someone else.

If you want to contribute to the Python Developer’s Guide or Python’s official site, then you can check out the issues listed on GitHub:

If you want to contribute to CPython, which is what most people mean when they say “Python,” then you’ll need to create an account at Python’s bug tracker, which is called BPO because it’s at bugs.python.org. You can register yourself as a user by going to User → Register in the menu on the left.

The information in the default view can be a lot to take in since it shows issues raised by users as well as issues raised by core developers, which may already have been fixed. Fortunately, you can filter this list to find exactly what you’re looking for.

To filter the list, start by logging in and then go to Your Queries → Edit in the menu on the left. You’ll get a list of queries that you can leave in or leave out:

Filtering issues with queries at bugs.python.org

Here’s an example of what you’d see if you edited your queries to leave in only easy documentation issues:

A filtered list of easy documentation issues at bugs.python.org

Now that you’ve filtered your list to leave in only easy documentation issues, you’re seeing just documentation issues that are suitable for beginners.

If you’d like to work on something other than documentation, you can also try some other queries to help you find an issue that interests you:

Query Types of Issues
Easy Tasks Issues that have been flagged as good for beginners
Reports Without Replies Issues that have been reported but not discussed
Unread Issues that have been reported but not read
Recently Created Issues that were reported recently
50 Latest Issues The top fifty issues that have had the most recent updates

Once you’ve decided which issue you want to work on for your first contribution, it’s good to check the comments to see if:

  • There’s still some ongoing discussion about whether it should be resolved and how it should be approached
  • Someone else is already working on the issue

You can also check the latest version of the code and documentation to see if the issue has already been resolved but hasn’t been closed by a core developer yet.

Once you’ve determined which issue you want to start with, you can leave a comment on the issue to:

  • Say that you’re going to work on it
  • Let others know when you plan to submit your pull request

If you clearly communicate your plans, then other contributors will know that someone else is already working on the issue and be able to focus their energy on solving other issues instead.

How to Submit Your First Contribution

Be sure to check out Python’s official documentation about the lifecycle of a pull request. It’ll walk you through the step-by-step mechanics of submitting a pull request, give you tips on making good commits, and more.

Since most core developers are volunteers, you may not get a response right away, but there are couple things you can do to speed up the process:

  • Give a clear explanation of the problem you solved and how you solved it: This will help reviewers get up to speed quickly and have the information they need to accept your pull request.
  • Resolve only one issue in each pull request: If you notice another problem while you’re working on your contribution, then you can resolve it in a second pull quest.

Contributing to open source is all about collaboration, so communication is super important. To learn more, check out what Open Source Guides has to say about communicating effectively when you submit a contribution.

When you’ve submitted your first pull request, kick back and celebrate! You’ve taken your first big step on a journey that could lead to some cool places.

What’s Next?

If you decide that you’d like to get more involved, then there are some opportunities you can explore. Maybe you’d like to:

There’s a lot going on in the world of Python, so look around and see what strikes your fancy. Let’s be kind to each other and build something great together.

Conclusion: Start Contributing to Python

Congratulations on taking your first steps toward contributing to Python! If you take the plunge and get started, then you’re sure to learn a lot while making an impact on an important open source project.

In this tutorial, you learned:

  • How you can contribute to Python in a way that matches your skills and interests
  • What resources and tools you can use to help you contribute confidently
  • Where you can find ideas for fixes to propose in your first contribution

Everyone who’s on the core developer team started with just one contribution, so why not give it a try? You’re sure to learn something along the way!

🐍 Python Tricks 💌

Get a short & sweet Python Trick delivered to your inbox every couple of days. No spam ever. Unsubscribe any time. Curated by the Real Python team.

Python Tricks Dictionary Merge

About Joanna Jablonski

Joanna is the Executive Editor of Real Python. She loves natural languages just as much as she loves programming languages!

» More about Joanna

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Master Real-World Python Skills With Unlimited Access to Real Python

Locked learning resources

Join us and get access to thousands of tutorials, hands-on video courses, and a community of expert Pythonistas:

Level Up Your Python Skills »

Master Real-World Python Skills
With Unlimited Access to Real Python

Locked learning resources

Join us and get access to thousands of tutorials, hands-on video courses, and a community of expert Pythonistas:

Level Up Your Python Skills »

What Do You Think?

Rate this article:

What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment below and let us know.

Commenting Tips: The most useful comments are those written with the goal of learning from or helping out other students. Get tips for asking good questions and get answers to common questions in our support portal.


Looking for a real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!

Keep Learning