Title: bpdb: fix TypeError with pdbpp's `__init__` by blueyed · Pull Request #639 · bpython/bpython · GitHub
Open Graph Title: bpdb: fix TypeError with pdbpp's `__init__` by blueyed · Pull Request #639 · bpython/bpython
X Title: bpdb: fix TypeError with pdbpp's `__init__` by blueyed · Pull Request #639 · bpython/bpython
Description: When using bpdb together with pdb++ [1], using debug … will cause a TypeError, because pdbpp passes in a Config kwarg [2]. …/venv/lib/python3.5/site-packages/pdb.py:647: in do_debug return orig_do_debug(self, arg) /usr/lib64/python3.5/pdb.py:1090: in do_debug p = Pdb(self.completekey, self.stdin, self.stdout) …/venv/lib/python3.5/site-packages/pdb.py:636: in new_pdb_with_config return self.__class__(*args, **kwds) E TypeError: __init__() got an unexpected keyword argument 'Config' This patch fixes bpdb to accept and pass on any args/kwargs. For reference, this is the stacktrace when pdb++ gets instantiated: File "…/venv/lib/python3.5/site-packages/pytestbpdb/ptbpdb.py", line 50, in set_trace pdb.BPdb().set_trace(frame) File "…/venv/lib/python3.5/site-packages/bpdb/debugger.py", line 33, in init pdb.Pdb.init(self) File "…/venv/lib/python3.5/site-packages/pdb.py", line 198, in init print(traceback.print_stack()) 1: https://pypi.python.org/pypi/pdbpp/ 2: https://bitbucket.org/antocuni/pdb/src/cf937bbd910a8f7fe2b84af7cf5ee9dc96c2fe25/pdb.py?fileviewer=file-view-default#pdb.py-633
Open Graph Description: When using bpdb together with pdb++ [1], using debug … will cause a TypeError, because pdbpp passes in a Config kwarg [2]. …/venv/lib/python3.5/site-packages/pdb.py:647: in do_debug return orig...
X Description: When using bpdb together with pdb++ [1], using debug … will cause a TypeError, because pdbpp passes in a Config kwarg [2]. …/venv/lib/python3.5/site-packages/pdb.py:647: in do_debug return orig...
Opengraph URL: https://github.com/bpython/bpython/pull/639
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6e4e17f6-7360-446a-92fa-98a51d2d6df0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C956:2412E:191EE3:200191:696B9CAC |
| html-safe-nonce | 27335d3d76d792c47eaf6ff477d384c48368ca75fb3576c1a661910b63abd57c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTU2OjI0MTJFOjE5MUVFMzoyMDAxOTE6Njk2QjlDQUMiLCJ2aXNpdG9yX2lkIjoiMzgzNDk5ODk5MDY3OTI4NDkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2c36012b4d50fb57e858a662145cdcb21a11800509fd4d7bc42cde8bfd2a137a |
| hovercard-subject-tag | pull_request:88658852 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/bpython/bpython/pull/639/files |
| twitter:image | https://avatars.githubusercontent.com/u/9766?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9766?s=400&v=4 |
| og:image:alt | When using bpdb together with pdb++ [1], using debug … will cause a TypeError, because pdbpp passes in a Config kwarg [2]. …/venv/lib/python3.5/site-packages/pdb.py:647: in do_debug return orig... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width