-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Treat an empty sep on binascii.hexlify as no sep. #1898
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
Conversation
|
I'm not sure: did you want to submit this to circuitpython or micropython? Looking at https://docs.python.org/3/library/binascii.html#binascii.hexlify, it appears that CPython doesn't take a second argument in any case. We aspire to be the same as "regular" Python or be a subset, not a superset, so just dropping the second argument is something we'd probably do in the long run. |
|
it's a good question... I'm happy to make a PR removing it instead if you'd like. I was pondering adding the feature to CPython but realistically, MicroPython doesn't appear to have those. They would get rid of the need for This fix if it stays anywhere does make more sense in micropython proper. (i was originally going to send a PR there given where this function comes from but github won't let me fork micropython due to my circuitpython fork existing - apparently i'm supposed to learn crazy git voodoo to branch off of the last micropython sync point or pull a new upstream remote into my circuitpython repo as an alternate master from the micropython repo? i'm not really sure... ugh, guess i need to untangle that) |
|
+1 To having CircuitPython work the way you'd do it in CPython. (Though it's tricky if you, @gpshead, makes it a moving target. :-P) Here is the git voodoo I think you'd need:
The critical piece to realize is that circuitpython and micropython are different remote versions of the same code repo. circuitpython/master and micropython/master are just two branches from the same lineage. The "fork" relationship is a GitHub-ism that only manifests as the (sometimes not great) PR default target. |
|
@gpshead If you'd like to make a PR to remove it that's fine. But another thing on the lis to do is to refactor I notice we're missing issues for this refactoring, so I'll open individual ones. Added #1899 for |
|
@gpshead Closing this for now. Let's remove the extra argument to be compatible with CPython. |
|
fyi - I added |
This fixes micropython#2287.