static class methods in Python?

Aahz Maruch aahz at
Fri Feb 18 20:07:06 EST 2000

In article <slrn8arn3d.9md.neelk at>,
Neel Krishnaswami <neelk at> wrote:
>This is probably a stupid question, but what /is/ a class method?
>I've never programmed in C++ (or Java), so an explanation would be

Class methods are used to access and modify class variables.  For

class foo:
	bar = None
	def __init__(self):
	classdef isdone():
		if is not None:
			return "!!!"
	classdef clear(): = None

                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

Our society has become so fractured that the pendulum is swinging
several different directions at the same time

More information about the Python-list mailing list