Odd syntactic NON-error?

Jean-Paul Calderone exarkun at divmod.com
Fri Jan 30 12:39:48 EST 2009


On Fri, 30 Jan 2009 11:36:45 -0600, Alaric Haag <haag at lsu.edu> wrote:
>Hello,
>
>I just noticed that I've been successfully importing a module I wrote
>which contains a class definition that begins with (docstring removed):
>
>class TDF():
>    def __init__(self, name='', mode=tscan. GP_NOCLOBBER):
>
>Note the "space" which shouldn't be here---^

The space is irrelevant.

  >>> object. __init__
  <slot wrapper '__init__' of 'object' objects>
  >>> object.__init__ is object. __init__
  True
  >>> 

Jean-Paul



More information about the Python-list mailing list