list functions issue with python
-
This is a minimal recreate :
import re
class foo (object):
def init(self):
self.zing = “joemama”
def bar(self):
print “bar”When I list the function of this class it does not work. However if I add a space to the beginning of the class definition … list functions performs as desired. Sadly adding a space before class breaks the code, so there is no harmony here.
Why would this happen … my eol == LF (unix) encoding is utf, and this operates on a windows system with python 2.7.9Kinda mystified here. Esp since the only workaround is this (this works)
#<begin code>
import re
class foo (object):
def init(self):
self.zing = “joemama”
def bar(self):
#<end code>
print “bar”