xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


workshops:python_with_glue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
workshops:python_with_glue [2012/01/22 15:19] 62.235.231.149workshops:python_with_glue [2012/01/22 15:23] 62.235.231.149
Line 28: Line 28:
 # Creating a class # Creating a class
 class Hello: class Hello:
-    pass+    def method(self): 
 +        return 'hello'
          
-#  Or the now official way+#  Or the now official way (compatible with python3)
 class Hello(object): class Hello(object):
     pass     pass
workshops/python_with_glue.txt · Last modified: 2012/01/22 17:42 by 62.235.231.149