Skip to content

Show source in Python 3 #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thomasballinger opened this issue Jan 25, 2015 · 0 comments
Closed

Show source in Python 3 #465

thomasballinger opened this issue Jan 25, 2015 · 0 comments

Comments

@thomasballinger
Copy link
Member

(bpython3)tom-mba:~ tomb$ bpython
bpython version 0.13-459 on top of Python 3.3.0 /Users/tomb/.virtualenvs/bpython3/bin/python3
>>> import code
>>> i = code.InteractiveInterpreter
>>> i.runsource
Traceback (most recent call last):
  File "/Users/tomb/.virtualenvs/bpython3/bin/bpython", line 9, in <module>
    load_entry_point('bpython==0.13-459', 'console_scripts', 'bpython')()
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsies.py", line 70, in main
    mainloop(config, locals_, banner, interp, paste, interactive=(not exec_args))
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsies.py", line 152, in mainloop
    process_event(e)
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsies.py", line 115, in process_event
    repl.process_event(e)
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsiesfrontend/repl.py", line 433, in process_event
    return self.process_key_event(e)
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsiesfrontend/repl.py", line 529, in process_key_event
    self.show_source()
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsiesfrontend/repl.py", line 1380, in show_source
    self.pager(source)
  File "/Users/tomb/.virtualenvs/bpython3/lib/python3.3/site-packages/bpython/curtsiesfrontend/repl.py", line 1367, in pager
    tmp.write(text)
TypeError: 'str' does not support the buffer interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant