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.

12 comments:

DrKJam said...

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

Martijn Faassen said...

I like the name. :)

Praneeth M said...

It's very useful post and i had good experience with this salesforce training in Chennai who are offering good certificaiton assistance. I would say salesforce training is a best way to get certified on crm.

Anonymous said...

Erectile dysfunction treatment in chennai
Premature ejaculation treatment in chennai
Small penis size treatment in chennai
Ivf clinic in chennai

Addons said...

media entertainment it solutions in los angeles
emerging technology company in los angeles
artificial intelligence company in los angeles
blockchain technology company in los angeles
data science and analytics services in los angeles

Ramesh Sampangi said...

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

Anonymous said...

Thanks for Sharing sir this is important for me…
thejacketzone

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

Video Downloader said...

Awesome Post. Thanks For This Article

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.