[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of Questions #2

Open
Temmie19 opened this issue Apr 27, 2021 · 1 comment
Open

Couple of Questions #2

Temmie19 opened this issue Apr 27, 2021 · 1 comment

Comments

@Temmie19
Copy link

Question 1: Is the Python port written in Python 2? Because when running it, it came up with some errors that upon searching pointed me to people trying to run Python 2 code in Python 3.

Question 2: Is there any way we could get a bit of documentation on how to use this? I get a base of what it's looking for, but even with the testers, it's hard to see what's happening.

@kosarev
Copy link
Owner
kosarev commented Jun 6, 2021

Hi Temmie, sorry for answering late. Yes, the Python version seems to be in Python 2. Just filed #3 to provide a Python 3 implementation.

As to the second question, I was hoping that the code is self-evident in terms of how to use it (filed #4 to improve the situation). So the encode() function takes the data to encode and the set of bytes to exclude from the output. What it returns is a tuple of which the first element is the output data and the second is the character to which the ones to be excluded are mapped to.

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

No branches or pull requests

2 participants