Skip to content

Using \N after exiting and restarting results in a function signature mismatch #69

@treyhunner

Description

@treyhunner

Series of steps which reveal the bug:

  1. Click Start REPL button
  2. Type print("\N{digit nine}") and hit Enter
  3. See that 9 printed out
  4. Type exit() and hit Enter (to exit the process)
  5. Click Start REPL button again
  6. Type print("\N{digit nine}") and hit Enter
  7. Watch the process hang and an error message print to the console (this is the bug)

image

Similar series of working steps (notice no \N{...} was used)

  1. Click Start REPL button
  2. Type print("9") and hit Enter
  3. See that 9 printed out
  4. Type exit() and hit Enter (to exit the process)
  5. Click Start REPL button again
  6. Type print("9") and hint Enter
  7. See that 9 printed out

image


Context

This might seem like a strange bug to care about, but it's causing my Python pastebin site (which now runs Python code in-browser) to fail on some code examples. Specifically the "Run in Browser" button works the first time it's pressed but hangs the second time it's pressed. Here's a page that demonstrates the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions