[docs] [issue9117] class syntax not fully documented in reference manual
Mark Dickinson
report at bugs.python.org
Tue Jun 29 21:11:18 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Yes, good plan. I'll do that.
I'm also not sure about the 'comprehension' bit; it's true that a comprehension is syntactically valid here (e.g., "class A(x for x in range(3))"), but it's also entirely useless: it has to be the sole argument, so there can't be a metaclass argument, so the metaclass would have to be type. But type (quite sensibly) won't accept a generator as a base class.
Oh well; I suppose it doesn't *have* to make sense to be valid syntax...
This still leaves the hard part, which is distilling the essence of PEP 3115 and adding it to the reference manual.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9117>
_______________________________________
More information about the docs
mailing list