[ https://issues.apache.org/jira/browse/CASSANDRA-10190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16895682#comment-16895682 ]
Patrick Bannister commented on CASSANDRA-10190: ----------------------------------------------- [~djoshi3] the behavior of the {{make_range}} function was different under Python 2.7 and Python 3.6. For a quick demonstration of the reason, try running this in a Python 2 interpreter, and then again in a Python 3 interpreter: {code:python} assert 0 > None {code} Under Python 2 this is fine, but under Python 3, attempting to compare {{NoneType}} to anything else will throw a {{TypeError}}. This problem was exposed by failures in the dtest {{test_writing_with_token_boundaries}} (from cqlsh_tests/test_cqlsh_copy.py). When the test ran the COPY command with the WITH BEGINTOKEN and WITH ENDTOKEN options, cqlsh crashed because of the {{TypeError}}. I like the idea of adding some unit tests around this, I'll do it next time I get a solid hour to work on this. > Python 3 support for cqlsh > -------------------------- > > Key: CASSANDRA-10190 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10190 > Project: Cassandra > Issue Type: Improvement > Components: Legacy/Tools > Reporter: Andrew Pennebaker > Assignee: Patrick Bannister > Priority: Normal > Labels: cqlsh > Attachments: coverage_notes.txt > > > Users who operate in a Python 3 environment may have trouble launching cqlsh. > Could we please update cqlsh's syntax to run in Python 3? > As a workaround, users can setup pyenv, and cd to a directory with a > .python-version containing "2.7". But it would be nice if cqlsh supported > modern Python versions out of the box. -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org