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

Parsing hexadecimal characters #906

Open
mmatera opened this issue Aug 14, 2023 · 1 comment
Open

Parsing hexadecimal characters #906

mmatera opened this issue Aug 14, 2023 · 1 comment

Comments

@mmatera
Copy link
Contributor

mmatera commented Aug 14, 2023

In the task of migrating from private doctests to pytests, I hit the following bug when characters are written as escaped hexadecimal characters:

In[1]:= \.78\.79\.7A
Out[1]= xyz

but
In[2]:= F[.78.79.7A]
Syntax::sntxf: "xyz" cannot be followed by "]" (line 1 of "").
Out[2]=

and

In[3]:= ".78.79.7A"

Syntax::sntxf: "xyz" cannot be followed by "]" (line 1 of "").


However,

In[4]:= ".78.79.7A""
Out[4]= xyz


@mmatera
Copy link
Contributor Author

mmatera commented Aug 14, 2023

Notice the comments in the test module introduced in #907

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

1 participant