You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The canonical starlark implementation does not have these methods.
Describe the feature
Implementing the Python functions ord, chr, hex. At the moment, I don't see a way to do this code-points (ord) without a lookup table; but it's certainly possible. url_encode and url_decode could also be neat; e.g. becomes %20.
The text was updated successfully, but these errors were encountered:
% bazel run src/main/java/net/starlark/java/cmd:starlark
>> ord
<stdin>:1:1: name 'ord' is not defined
>> hash('a')
97
>> hash('/')
47
% python3 -c "print(ord('a'), ord('/'))"
97 47
What is the current behavior?
The canonical starlark implementation does not have these methods.
Describe the feature
Implementing the Python functions ord, chr, hex. At the moment, I don't see a way to do this code-points (ord) without a lookup table; but it's certainly possible.
becomes
url_encode
andurl_decode
could also be neat; e.g.%20
.The text was updated successfully, but these errors were encountered: