Message108936
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. |
|
Date |
User |
Action |
Args |
2010-06-29 19:11:18 | mark.dickinson | set | recipients:
+ mark.dickinson, belopolsky, docs@python |
2010-06-29 19:11:18 | mark.dickinson | set | messageid: <1277838678.15.0.603660855603.issue9117@psf.upfronthosting.co.za> |
2010-06-29 19:11:16 | mark.dickinson | link | issue9117 messages |
2010-06-29 19:11:16 | mark.dickinson | create | |
|