[Patches] [ python-Patches-1681101 ] PEP 3115 patch

SourceForge.net noreply at sourceforge.net
Thu Mar 15 22:06:22 CET 2007


Patches item #1681101, was opened at 2007-03-14 20:09
Message generated for change (Comment added) made by gvanrossum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1681101&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: PEP 3115 patch

Initial Comment:
A patch for PEP 3115 (metaclass syntax for Py3k).  This enables full [arglist] syntax in the class header, e.g.

class C(B1, B2, metaclass=MC, *more_bases, **kwds):
  pass


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2007-03-15 17:06

Message:
Logged In: YES 
user_id=6380
Originator: YES

Here's a new patch, which generates correct code for all variants of the
class header syntax.

For now, I've implemented __build_class__ in Python; the built-in function
by that name imports the build_class module and calls its build_class
function.  (I'll later redo this in C.)

This is still rough; I didn't even delete the old BUILD_CLASS opcode.  But
only a few unit tests fail (especially the ast and compiler tests).  There
are no unit tests for the new functionality.  There is no documentation.

Failing tests:
    test_ast test_compiler test_ctypes test_descr test_grp test_pep292


File Added: meta.patch

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1681101&group_id=5470


More information about the Patches mailing list