[Python-Dev] Grammar change in classdef

Fabio Zadrozny fabiofz at gmail.com
Sat Sep 16 18:49:01 CEST 2006

I've been porting the grammar for pydev to version 2.5 and I've seen
that you can now declare a class in the format: class B():pass
(without the testlist)

-- from the grammar: classdef: 'class' NAME ['(' [testlist] ')'] ':' suite

I think that this change should be presented at

I'm saying that because I've only stumbled upon it by accident -- and
I wasn't able to find any explanation on the reason or semantics of
the change...



More information about the Python-Dev mailing list