question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@ankenyr, I’d like to open up a discussion about python3 support. As the countdown clock points out, this is a decision we’ll need to confront at some point. In an effort to get this dialog started, I submitted a PR to add future imports to all of the python files we have. I’ll be following the recommendations here and here. One item of note that the PR brings up is this:

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

This is the big key to writing python2.7/3 compatible code. It isn’t the whole story, but it’s the first part of it. The big question I have is how long should we support python2.7? Supporting only 3.5 and up will let us do some things that would give us some perf gains. Supporting both might slow things down a little. So supporting both isn’t without a cost. Thoughts?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ankenyrcommented, Dec 21, 2016

Yup, once we can move internally over to python 3 I expect we will drop 2.7. Does that sound fine to you and anyone else? Would it be preferred if I give some head notice before a change to pure python 3?

0reactions
sneakywombatcommented, Dec 21, 2016

sounds good to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Status of Python Versions
Supported Versions#. Dates shown in italic are scheduled and can be adjusted. Branch. Schedule. Status. First release. End of life. Release manager. main....
Read more >
Python
Release Released Security Support 3.11 1 month and 4 weeks ago. (24 Oct 2022) Ends in 4 years and 10 months. (24 Oct 2... 3.10...
Read more >
Is there official guide for Python 3.x release lifecycle?
Is there an official guide on how long Python 3.x gets support, backports, etc.? I couldn't find any information about Python release ...
Read more >
Python 3 Support
Click supports Python 3, but like all other command line utility libraries, it suffers from the Unicode text model in Python 3. All...
Read more >
Welcome! — Supporting Python 3: An in-depth guide
Supporting Python 3 doesn't have to be daunting. This book guides you through the process of adding Python 3 support, from choosing a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found