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

Support for creating binary (bytes) parsers (Python 3 only) #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hernot
Copy link

@hernot hernot commented Jun 29, 2022

This is my suggestion for resolving issue #13. The precondition is that python 2 support officially has ended as proposed solution is python3 only. It removes python 2 from tox.ini and appveyor.yml.

Awaiting your review and appreciating any input also regarding any suggestions on how to deal with commons which are currently str (utf8) only and additional tests which i should add, amend or improve

If necessary i'm fine to rebase to updated upstream head whenever you will merge an earlier pull request.

Apart from the purpose of this pull request and the small advice requested for in issue #14 may i suggest to enforce that tests are run in order of dependencies between modules? Currently some of the feature and issue tests are run before the unit tests for simpleparse/generator.py, simpleparse.simpleparsegrammar.py and simpleparse/commons modules which are essential for proper operation of simple parse and have dependencies in the mentioned order. (The best of all worse solutions i have found in this context so far is prefixing test files by test_NN_´ instead of plain test_` )

Would you be interested in a tox based github action for CI testing on linux and mac in addition to appveyor or even in replacement on windows too?

Suggestion for supporting creation of parsers for parsing binary data
by creating simpleparse.Parser from binary (bytes) declaration string instead
of python standard string (str) type.

Precondition:
=============
- simpleparse Python 2 support ended
Suggestion for supporting creation of parsers for parsing binary data
by creating simpleparse.Parser from binary (bytes) declaration string instead
of python standard string (str) type.

Precondition:
=============
- simpleparse Python 2 support ended
@hernot
Copy link
Author

hernot commented Jul 30, 2022

@mcfletch how likely is it that you find the next weeks mont some time to review and decide how to continue on this.

No hurry it is just that i came across your or somebody elses thoughts about adding support for mmap objects. I might have an idea/suggestion on how to add support for parsing any contigous blob of byte and want to give ti a try. I do thereby not want to mix things.

@hernot
Copy link
Author

hernot commented Aug 3, 2022

Should read my own issue #9. According to my own finding precondition for this pr met.

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.

None yet

1 participant