Project

General

Profile

Feature #5853

Support python3 as well as python 2.x in codebase

Added by Erik Blaufuss over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Low
Assignee:
Start date:
04/09/2014
Due date:
% Done:

0%

Estimated time:
Duration:

Description

A long term goal given direction of python development. Some notes from John Jacobsen's early work:

I'm finding (e.g. in https://github.com/pytoolz/toolz) that supporting Python 3 isn't particularly hard. With the following, you can test both versions of Python:

conttest 'source ~/env/bin/activate && \
nosetests -s -x --with-doctest && \
deactivate && \
source ~/env32/bin/activate && \
nosetests -s -x --with-doctest && \
deactivate && \
pep8 .'
This assumes ~/env and ~/env32 are Python 2.x and Python 3 virtualenvs, respectively.

Turns out this is harder than I thought: http://stackoverflow.com/questions/19126182/hints-for-nested-context-managers-in-a-python-2-6-python-3-neutral-way

History

#1 Updated by Erik Blaufuss over 5 years ago

  • Priority changed from Normal to Low

#2 Updated by Erik Blaufuss over 5 years ago

  • Assignee set to Erik Blaufuss


Also available in: Atom PDF