From: Guido van Rossum Date: Thu, 26 Dec 1991 13:05:52 +0000 (+0000) Subject: New class syntax. X-Git-Tag: v0.9.8~654 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1820010c1a6e6338b8dd927364662aa99d18b1d4;p=thirdparty%2FPython%2Fcpython.git New class syntax. --- diff --git a/Lib/persist.py b/Lib/persist.py index e503d95ecf8f..065a3eaef3e9 100755 --- a/Lib/persist.py +++ b/Lib/persist.py @@ -148,7 +148,7 @@ def dumpstring(x, typedict, types, stack): # Function to dump type objects # typeswitch = {} -class some_class(): +class some_class: def method(self): pass some_instance = some_class() #