6

We have nearly one million lines of Python 2 code in production – and now? – goc...

 2 years ago
source link: https://blog.gocept.com/2020/06/08/we-have-nearly-one-million-lines-of-python-2-code-in-production-and-now/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

We have nearly one million lines of Python 2 code in production – and now?

How to successfully migrate a Python 2 project to Python 3.

Python Web Conf

Still running Python 2 code in production is like steering a ship without radar in thick fog: You don’t know, which obstacle you will hit next. But there are ways to see the sun again even for large code bases.

I am Michael Howitz and I am going to present a talk at Python Web Conf 2020 on this topic.

In this talk I will show possible approaches for a Python 3 migration of existing Python code running on Python 2.7. I will evaluate which of these approaches seems suitable for a large code base and which principles should be paid attention to to increase the probability of a successful migration project.

I am going use union.cms (a content management system used by German trade unions) to show the story of a successful migration of a project with nearly one million lines of Python code. The story will include the obstacles we encountered and what we learned on the way.

I believe that most of the discussed ideas in the talk and experience can also be used unchanged in smaller projects as the presented principles are very much the same.

The talk is scheduled at 1:00 – 1:45 pm ET (UTC -4h) on Friday, June 19th. (That’s 7:00 pm in MEST (UTC+2)).

To see the talk live on your device, join Python Web Conf 2020 now.

13937bb10ef3b20c52616835c407e18c?s=42&d=identicon&r=G

Author: Michael Howitz

I am a software developer at gocept in Halle (Saale). To develop software, I mainly use Python, Zope, ZTK and Pyramid. View all posts by Michael Howitz

13937bb10ef3b20c52616835c407e18c?s=49&d=identicon&r=GAuthor Michael HowitzPosted on June 8, 2020Categories enTags event, Migration, presentation, python, python3, talk


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK