mirror of
https://github.com/micropython/micropython.git
synced 2025-08-23 02:50:24 +02:00
py: Add hex builtin function.
A one-liner, added especially for @pfalcon :)
This commit is contained in:
@@ -16,6 +16,7 @@ codepoint2name[ord('-')] = 'hyphen';
|
||||
codepoint2name[ord('.')] = 'dot'
|
||||
codepoint2name[ord(':')] = 'colon'
|
||||
codepoint2name[ord('/')] = 'slash'
|
||||
codepoint2name[ord('%')] = 'percent'
|
||||
|
||||
# this must match the equivalent function in qstr.c
|
||||
def compute_hash(qstr):
|
||||
|
Reference in New Issue
Block a user