{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/8960","labels_url":"https://api.github.com/repos/sympy/sympy/issues/8960/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/8960/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/8960/events","html_url":"https://github.com/sympy/sympy/issues/8960","id":56849291,"number":8960,"title":"Why Function(u'f') raise exception?","user":{"login":"satels","id":220572,"avatar_url":"https://avatars.githubusercontent.com/u/220572?v=3","gravatar_id":"","url":"https://api.github.com/users/satels","html_url":"https://github.com/satels","followers_url":"https://api.github.com/users/satels/followers","following_url":"https://api.github.com/users/satels/following{/other_user}","gists_url":"https://api.github.com/users/satels/gists{/gist_id}","starred_url":"https://api.github.com/users/satels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satels/subscriptions","organizations_url":"https://api.github.com/users/satels/orgs","repos_url":"https://api.github.com/users/satels/repos","events_url":"https://api.github.com/users/satels/events{/privacy}","received_events_url":"https://api.github.com/users/satels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-06T18:33:18Z","updated_at":"2015-02-11T17:21:43Z","closed_at":null,"body":"```python\r\nIn [1]: from sympy import *\r\n\r\nIn [2]: Symbol(u'x')\r\nOut[2]: x\r\n\r\nIn [3]: Function(u'f')\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-3-8fff946617db> in <module>()\r\n----> 1 Function(u'f')\r\n\r\nsympy/core/cache.pyc in wrapper(*args, **kwargs)\r\n     91                     retval = cfunc(*args, **kwargs)\r\n     92                 except TypeError:\r\n---> 93                     retval = func(*args, **kwargs)\r\n     94                 return retval\r\n     95\r\n\r\nsympy/core/function.pyc in __new__(cls, *args, **options)\r\n    354         # Handle calls like Function('f')\r\n    355         if cls is Function:\r\n--> 356             return UndefinedFunction(*args, **options)\r\n    357\r\n    358         n = len(args)\r\n\r\nsympy/core/function.pyc in __new__(mcl, name, **kwargs)\r\n    708     \"\"\"\r\n    709     def __new__(mcl, name, **kwargs):\r\n--> 710         ret = BasicMeta.__new__(mcl, name, (AppliedUndef,), kwargs)\r\n    711         ret.__module__ = None\r\n    712         return ret\r\n\r\nTypeError: type() argument 1 must be string, not unicode\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/73922797","html_url":"https://github.com/sympy/sympy/issues/8960#issuecomment-73922797","issue_url":"https://api.github.com/repos/sympy/sympy/issues/8960","id":73922797,"user":{"login":"pelegm","id":3422626,"avatar_url":"https://avatars.githubusercontent.com/u/3422626?v=3","gravatar_id":"","url":"https://api.github.com/users/pelegm","html_url":"https://github.com/pelegm","followers_url":"https://api.github.com/users/pelegm/followers","following_url":"https://api.github.com/users/pelegm/following{/other_user}","gists_url":"https://api.github.com/users/pelegm/gists{/gist_id}","starred_url":"https://api.github.com/users/pelegm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelegm/subscriptions","organizations_url":"https://api.github.com/users/pelegm/orgs","repos_url":"https://api.github.com/users/pelegm/repos","events_url":"https://api.github.com/users/pelegm/events{/privacy}","received_events_url":"https://api.github.com/users/pelegm/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T17:21:43Z","updated_at":"2015-02-11T17:21:43Z","body":"Is this not a duplicate of #8312?"}}