-
Notifications
You must be signed in to change notification settings - Fork 372
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
Always have a reasonable reader accessible #2494
Conversation
That was fast. Thanks so much. I'm a bit puzzled by It looks like GitHub isn't associating your commits with your account, maybe because of an email-address change. |
Those tests are to ensure that
👍
...weird, I'll fix up the author identity when I re-push. |
I see. You could add a comment saying that the point is just to check that these calls don't raise exceptions, or you could copy out the reader macros as you mentioned. |
wut. Need to catch a train soon but I'll dig in to this when I get the chance, sigh |
I don't understand the test error, but it reminds me of a transient error I've seen on PyPy on GitHub Actions where some other test of a reader macro fails, then passes when I rerun the job. I reran this job and it still failed. Could there be some weird race condition involving PyPy's JIT compiler? |
Nope it was a legit bug, What a wild ride. Anyways, I pushed the context-setting into |
That sounds like a nasty one. Good job.
Don't forget to remove your debugging prints in |
I pushed the fix for #2292 as an additional commit here, since it's pretty small and it's a lot easier to stick its test into the new tests here. |
Noice. I would write "is true" rather than "is |
Sorry, I forgot, the new option to |
hy.read
can't define a reader macro #2291.hy.read-many
andhy.read
#2292.hy.read
now attaches its reader to the form it returns, so patterns likework as expected.
If a reader can't be found, then we'll create one temporarily so that everything goes through.