Weird behaviour with semicolon before function call in ipython/ipython notebook
问题 I stumbled upon some strange behaviour using ipython-notebook and wondered what, if any, the purpose was. If you enter a semicolon before a function call, you get the result of applying the function to a string which reflects all the code after the function name. For example, if I do ;list('ab') I get the result of list("('ab')") : In [138]: ;list('ab') Out[138]: ['(', "'", 'a', 'b', "'", ')'] I'm using jupyter with ipython 4 . It happens in ipython as well as ipython notebook . Has anyone