Title: Fix crash when using getargspec with xmlrpclib · Issue #202 · bpython/bpython · GitHub
Open Graph Title: Fix crash when using getargspec with xmlrpclib · Issue #202 · bpython/bpython
X Title: Fix crash when using getargspec with xmlrpclib · Issue #202 · bpython/bpython
Description: Attached diff fix a crash when bpython tries to retrieve the arguments of a function provided by python's xmlrpclib module: >>> import xmlrpclib >>> api = xmlrpclib.Server("http://localhost") >>> api.login Then I hit '(' and get : Traceb...
Open Graph Description: Attached diff fix a crash when bpython tries to retrieve the arguments of a function provided by python's xmlrpclib module: >>> import xmlrpclib >>> api = xmlrpclib.Server("http://localhost") >>> a...
X Description: Attached diff fix a crash when bpython tries to retrieve the arguments of a function provided by python's xmlrpclib module: >>> import xmlrpclib >>> api = xmlrpclib.Server(&qu...
Opengraph URL: https://github.com/bpython/bpython/issues/202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix crash when using getargspec with xmlrpclib","articleBody":"Attached diff fix a crash when bpython tries to retrieve the arguments of a function provided by python's xmlrpclib module:\n\n```\n>>> import xmlrpclib\n>>> api = xmlrpclib.Server(\"http://localhost\")\n>>> api.login\n```\n\nThen I hit '(' and get :\n\n```\nTraceback (most recent call last): \n File \"/usr/local/bin/bpython\", line 8, in \u003cmodule>\n load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')()\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 1756, in \nmain\n banner=banner)\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 1658, in \ncurses_wrapper\n return func(stdscr, *args, **kwargs)\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 1727, in \nmain_curses\n clirepl.repl()\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 1015, in \nrepl\n inp = self.get_line()\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 600, in g\net_line\n if self.p_key(key) is None:\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 911, in p\n_key\n self.addstr(key)\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 290, in a\nddstr\n self.complete()\n File \"/usr/local/lib/python2.7/site-packages/bpython/cli.py\", line 383, in $\nomplete\n self.list_win_visible = repl.Repl.complete(self, tab)\n File \"/usr/local/lib/python2.7/site-packages/bpython/repl.py\", line 540, in \ncomplete\n if not self.get_args():\n File \"/usr/local/lib/python2.7/site-packages/bpython/repl.py\", line 511, in \nget_args\n self.argspec = inspection.getargspec(func, f)\n File \"/usr/local/lib/python2.7/site-packages/bpython/inspection.py\", line 23\n2, in getargspec\n or (func_name == '__init__'))\n File \"/usr/local/lib/python2.7/xmlrpclib.py\", line 1224, in __call__\n return self.__send(self.__name, args)\n File \"/usr/local/lib/python2.7/xmlrpclib.py\", line 1570, in __request\n verbose=self.__verbose\n File \"/usr/local/lib/python2.7/xmlrpclib.py\", line 1264, in request\n return self.single_request(host, handler, request_body, verbose)\n File \"/usr/local/lib/python2.7/xmlrpclib.py\", line 1297, in single_request\n return self.parse_response(response)\n File \"/usr/local/lib/python2.7/xmlrpclib.py\", line 1468, in parse_response\n return u.close()\n File \"/usr/local/lib/python2.7/xmlrpclib.py\", line 793, in close\n raise Fault(**self._stack[0])\nxmlrpclib.Fault: \u003cFault 1: 'Method \"login.__name__.__eq__\" is not supported'>\n```\n\nI'm using bpython 0.10.1 with Python 2.7.1 on OpenBSD\n\n---\n- Bitbucket: https://bitbucket.org/bobf/bpython/issue/202\n- Originally Reported By: [ ](http://bitbucket.org/mpieuchot)\n- Originally Created At: 2011-10-10T15:08:28.468\n","author":{"url":"https://github.com/ikanobori","@type":"Person","name":"ikanobori"},"datePublished":"2014-07-04T23:07:24Z","url":"https://github.com/bpython/bpython/issues/202"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2e78e46-8a9e-7026-fb2d-2819239981c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 878C:19E4BB:39CC723:49B78EC:6B020120 |
| html-safe-nonce | 99eab0c0b9c6b09f044fb9b2e8c64504b5751f657b27f6d5c1f2e00d735a8b60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzhDOjE5RTRCQjozOUNDNzIzOjQ5Qjc4RUM6NkIwMjAxMjAiLCJ2aXNpdG9yX2lkIjoiNDg3NTQzMjU5MTcwNjE2MTQ0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7b219a251cf3c033adc25696620b0f3f07060acfec8ce4b5fe2e773d8e12b1d4 |
| hovercard-subject-tag | issue:37188816 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8948008b73b6325c217cd7ae756db03cd63c1c3a10a62d1f6339880e82daa67/bpython/bpython/issues/202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8948008b73b6325c217cd7ae756db03cd63c1c3a10a62d1f6339880e82daa67/bpython/bpython/issues/202 |
| og:image:alt | Attached diff fix a crash when bpython tries to retrieve the arguments of a function provided by python's xmlrpclib module: >>> import xmlrpclib >>> api = xmlrpclib.Server("http://localhost") >>> a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ikanobori |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width