[MacPorts] #55474: Python any version - slow interactive startup and exit

MacPorts noreply at macports.org
Wed Dec 6 09:06:34 UTC 2017


#55474: Python any version - slow interactive startup and exit
-----------------------+-----------------
  Reporter:  Tatsh     |      Owner:
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  python35  |
-----------------------+-----------------

Comment (by Tatsh):

 I figured out the issue by checking `python` output while it waited and
 using `^C`. The exception traceback showed a call to
 `readline.read_history_file()`. I emptied my history file and everything
 is fine now. A large history file is the cause. To avoid this issue with a
 huge history file, `python -S`, and this may have to do with this in my
 `~/.inputrc`:

 {{{
 # Use the text that has already been typed as the prefix for searching
 through
 # commands (i.e. more intelligent Up/Down behavior)
 "\e[B": history-search-forward
 "\e[A": history-search-backward
 }}}

 {{{
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site.py",
 line 410, in register_readline
     readline.read_history_file(history)
 }}}

 Sorry for bothering.

--
Ticket URL: <https://trac.macports.org/ticket/55474#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list