diff options
author | Guido van Rossum <guido@python.org> | 1991-12-26 13:05:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-26 13:05:52 (GMT) |
commit | 1820010c1a6e6338b8dd927364662aa99d18b1d4 (patch) | |
tree | 2b3e41a5b94762484a096f8afafddb323b7038c4 | |
parent | 470e7617a999b4ed1ac0118798a07fe7a5ff883c (diff) | |
download | cpython-1820010c1a6e6338b8dd927364662aa99d18b1d4.zip cpython-1820010c1a6e6338b8dd927364662aa99d18b1d4.tar.gz cpython-1820010c1a6e6338b8dd927364662aa99d18b1d4.tar.bz2 |
New class syntax.
-rwxr-xr-x | Lib/persist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/persist.py b/Lib/persist.py index e503d95..065a3ea 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() # |