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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:760d8748-5f20-e9a5-dcc0-3f28e21d50db |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 96A0:277CBD:35D1EB:46660D:696B9C99 |
| html-safe-nonce | 0665e6986e1c7c9c98bb2f539b13606aaeacf768b232794d14e3ba5355c30688 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkEwOjI3N0NCRDozNUQxRUI6NDY2NjBEOjY5NkI5Qzk5IiwidmlzaXRvcl9pZCI6IjgwMzY5Mjc4NzYxODQ2NDQ3NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e59ced41a8faf85c3604b8be43891487844c93bba90068be406ca1efe549a816 |
| hovercard-subject-tag | pull_request:88658852 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| 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