{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaPy/SymPy.jl/issues/83","repository_url":"https://api.github.com/repos/JuliaPy/SymPy.jl","labels_url":"https://api.github.com/repos/JuliaPy/SymPy.jl/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/JuliaPy/SymPy.jl/issues/83/comments","events_url":"https://api.github.com/repos/JuliaPy/SymPy.jl/issues/83/events","html_url":"https://github.com/JuliaPy/SymPy.jl/issues/83","id":172890232,"number":83,"title":"Type instability from pyeval","user":{"login":"pabloferz","id":8410335,"avatar_url":"https://avatars.githubusercontent.com/u/8410335?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloferz","html_url":"https://github.com/pabloferz","followers_url":"https://api.github.com/users/pabloferz/followers","following_url":"https://api.github.com/users/pabloferz/following{/other_user}","gists_url":"https://api.github.com/users/pabloferz/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloferz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloferz/subscriptions","organizations_url":"https://api.github.com/users/pabloferz/orgs","repos_url":"https://api.github.com/users/pabloferz/repos","events_url":"https://api.github.com/users/pabloferz/events{/privacy}","received_events_url":"https://api.github.com/users/pabloferz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-24T08:09:06Z","updated_at":"2017-01-23T04:18:27Z","closed_at":null,"body":"Although all the methods that use `pyeval` over `sympy` functions return a `SymPy.Sym`, these are not inferable because of `pyeval`. A solution to this would be changing the definitions that rely on it, e.g.\n\n``` julia\n*(x::Sym, y::Sym) = pyeval(\"x * y\", x = project(x), y = project(y))::Sym\n```\n\n(note the `::Sym` at the end)\n\nSee also https://github.com/JuliaLang/julia/issues/18212\n"},"comment":{"url":"https://api.github.com/repos/JuliaPy/SymPy.jl/issues/comments/274397475","html_url":"https://github.com/JuliaPy/SymPy.jl/issues/83#issuecomment-274397475","issue_url":"https://api.github.com/repos/JuliaPy/SymPy.jl/issues/83","id":274397475,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2017-01-23T04:18:27Z","updated_at":"2017-01-23T04:18:27Z","body":"Note that `pyeval` is deprecated now in favor of `py\"....\"`, e.g. `py\"str($x)\"` rather than `pyeval(\"str(x)\", x=x)`, and you can get a specific output type `T` with e.g. `T(py\"str($x)\"o)`"}}
{"actor":{"display_login":"stevengj"}}