X Tutup
Skip to content

Show source in Python 3 #465

@thomasballinger

Description

@thomasballinger
(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup