Skip to content

Conversation

@ckane
Copy link

@ckane ckane commented Jan 9, 2020

Numerous fixes to make this work with Python3. I have tested this with Python2.7 and the safety mechanisms I put in place should preserve backward compatibility with Python2.

  • print -> print()
  • cStringIO -> io.BytesIO (aliasing StringIO or BytesIO to sio)
  • x / y -> int(x/y) (because division seems to yield a double in Python3?)

ckane added 5 commits January 8, 2020 21:26
The StringIO interfaces now reside within the io module and are
implemented as BytesIO and StringIO implementation options. Modify it
so that Python3 uses io.BytesIO, and update the string handling code
where necessary.

Additionally, account for the fact that divisions return doubles now,
and always class them to an int afterward.
@frenzymadness
Copy link

Hello.

Please, take a look on #19 . We already started with an implementation of Python 3 compatibility but it's stalled now. We can either merge the PR #19 or you can continue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants