1

According to Stack Overflow and Quora, a semicolon at the end of a Python statement does nothing. When I type dir() at the iPython prompt, I see a list of variables in my namespace. If I type dir();, however, I see nothing. What could explain this?

I am getting to know Pyhon 3.7 using Spyder, installed using Anaconda.

Jonathon Reinhart
  • 124,861
  • 31
  • 240
  • 314
user2153235
  • 262
  • 1
  • 9
  • 1
    It’s an [IPython-specific feature](https://ipython.org/ipython-doc/dev/interactive/tips.html#suppress-output). You won’t see the same behaviour in the normal Python REPL, for example. – Ry- Jun 13 '19 at 01:15
  • @JonathonReinhart: Just weighing whether where I got it from is a good duplicate :) – Ry- Jun 13 '19 at 01:17

0 Answers0