Tuesday, June 29, 2010

Six: Python 2/3 compatibility helpers

Increasingly, I've seen a movement towards supporting Python 2 and Python 3 in the same code base. Having ported a few projects myself, I decided to collect the code I've duplicated between them into a library. The result is six. It includes fake byte and unicode literals, b() and u() and has wrappers for syntax changes such as print and exec. You can check out the documentation on PyPi.The license is MIT, so I hope it can see wide use in projects planning to support Python 2 and 3 simultaneously.

8 comments:

DrKJam said...

This is exactly what I've been looking for. Thanks for sharing!

Martijn Faassen said...

I like the name. :)

Ramesh Sampangi said...

AI Patasala Python Training Hyderabad is the best choice to leverage knowledge.

Tech Engineer BD said...

Thanks for the great content Sir, I wil also share with my friends & onece again thanks a lot.
Seo optimization (Seo Ready) Best Responsive Blogger Template FlatMag
how to increase blog traffic fast
remove realme c3 frp bypass 2021
How To optimize Twitter Meta Tags in Blogger Update -2021

eMexo Technologies said...

Pretty Post! Thank you so much for sharing this good content, it was so nice to read and useful to improve my knowledge as an updated one, keep blogging.

Python Certification Training in Electronic City

uniraj bsc 3rd year result 2021 name wise said...

Hey thank you!!! I was seeking for the particular information for long time. Good Luck ?

davv ba 3rd year result 2022 roll number wise said...

Hi, their colleagues, nice paragraph and nice arguments commented here, I am really enjoying by these.

bus rental dubai said...

Your blog is really interesting, and I love that you talk about a variety of topics. I'm always looking for new ways to improve my writing and communication skills, so your posts are great for me! bus rental Dubai