{"action":"opened","issue":{"url":"https://api.github.com/repos/realgud/realgud/issues/160","repository_url":"https://api.github.com/repos/realgud/realgud","labels_url":"https://api.github.com/repos/realgud/realgud/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/realgud/realgud/issues/160/comments","events_url":"https://api.github.com/repos/realgud/realgud/issues/160/events","html_url":"https://github.com/realgud/realgud/issues/160","id":196710176,"number":160,"title":"Incorrect formatting of eval in pdb","user":{"login":"nordlow","id":829407,"avatar_url":"https://avatars.githubusercontent.com/u/829407?v=3","gravatar_id":"","url":"https://api.github.com/users/nordlow","html_url":"https://github.com/nordlow","followers_url":"https://api.github.com/users/nordlow/followers","following_url":"https://api.github.com/users/nordlow/following{/other_user}","gists_url":"https://api.github.com/users/nordlow/gists{/gist_id}","starred_url":"https://api.github.com/users/nordlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nordlow/subscriptions","organizations_url":"https://api.github.com/users/nordlow/orgs","repos_url":"https://api.github.com/users/nordlow/repos","events_url":"https://api.github.com/users/nordlow/events{/privacy}","received_events_url":"https://api.github.com/users/nordlow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-20T16:02:16Z","updated_at":"2016-12-20T16:02:16Z","closed_at":null,"body":"When debugging Python with `realgud:ipdb` pressing `e`  followed by `42` converts to\r\n\r\n`eval 12`\r\n\r\nwhich errors as\r\n\r\n```\r\n*** SyntaxError: invalid syntax (<stdin>, line 1)\r\n```\r\n\r\nI think we should default to either of\r\n\r\n- `eval(\"expr\")`\r\n- `p expr`\r\n- `pp expr`\r\n\r\nI've tried\r\n\r\n```Lisp\r\n(setf (gethash \"eval\" realgud:ipdb-command-hash) \"pp %s\")\r\n```\r\n\r\nbut it doesn't affect the behaviour of \r\n\r\n```Lisp\r\nrealgud:cmd-eval-dwim\r\n```\r\n\r\nwhich still prints\r\n\r\n```\r\neval 12\r\n```\r\n\r\nwhich errors in ipdb."}}
{"actor":{"display_login":"nordlow"}}