title: 1, == (1,) - SyntaxError: invalid syntax
body: <pre><code>&gt;&gt;&gt; 1, == (1,)
    File "&lt;ipython-input-34-bddb0dd08d2c&gt;", line 1
      1, == (1,)
          ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Why am I getting a <code>SyntaxError</code>? The line in the console points to the comparison operator '=='. I was trying to compare 2 tuples. Yes, <code>(1,) == (1,)</code> works.</p>
  
  <p>Is this related to this ... ?</p>
  
  <pre><code>    1,
  
  Out[1]: (1,)
  ,1
  Traceback (most recent call last):
  File "&lt;ipython-input-2-d73977cd7b2e&gt;", line 1, in &lt;module&gt;
  1("")
  TypeError: 'int' object is not callable
  def h():
  print("hello from h")
  h
  Out[4]: &lt;function __main__.h&gt;
  h()
  hello from h
  ,h
  Traceback (most recent call last):
  File "&lt;ipython-input-6-89db5d24b531&gt;", line 1, in &lt;module&gt;
  h("")
  TypeError: h() takes 0 positional arguments but 1 was given
  def h(""):
  print("hello from h")
  File "&lt;ipython-input-7-e4606aaf3740&gt;", line 1
  def h(""):
  ^
  SyntaxError: invalid syntax
  def h(a):
  print("hello from h")
  ,h
  hello from h
  </code></pre>
  
  <p>I am finding it funny - Python 3.6.3, doesn't happen on 2.7 or 3.5...</p>
  
  <pre><code>,ord A
  Out[112]: 65
  </code></pre>
  
  <p>This is getting a bit ugly. Just tried new IDE - Pycharm with python 3.6.3. Console gives me syntax error on ",ord A" but Spyder 3.3.1 doesn't. Is this something to do with IPython? 7.2 gives same result on ",ord A" >> 65.</p>
  
  <p>Ok, 5 Feb 2019. I seem to have fallen into a black hole. An IPython black hole. Seems Like I was getting confused by another sub language IPython which is what the console uses. %Autocall in IPython 'Make functions callable without having to type parentheses'.  Although setting %Autocall to 0 still seems to enable this behaviour.</p>