[Bug 5308] Re: ptl_compile.py: parameter ``decorators'' needed to meet the definition
Crisson Hu
guanghao.hu at gmail.com
Thu Apr 12 03:09:12 UTC 2007
Following is the source file (I am now using Feisty Fawn) for your
reference:
==> /usr/lib/python2.4/site-packages/quixote/ptl/ptl_compile.py <==
27
28 from compiler import pycodegen, transformer
29 from compiler import ast
30 from compiler.consts import OP_ASSIGN
31 from compiler import misc, syntax
32
118
119 if sys.hexversion >= 0x20400a2:
120 n = ast.Function(decorators, name, names, defaults, flags, doc,
121 code)
122 else:
123 n = ast.Function(name, names, defaults, flags, doc, code)
124 n.lineno = lineno
125
==> /usr/lib/python2.4/compiler/ast.py <==
540
541 class Function(Node):
542 def __init__(self, decorators, name, argnames, defaults, flags, doc, code, lineno=None):
543 self.decorators = decorators
544 self.name = name
545 self.argnames = argnames
546 self.defaults = defaults
547 self.flags = flags
548 self.doc = doc
549 self.code = code
550 self.lineno = lineno
551 self.varargs = self.kwargs = None
552 if flags & CO_VARARGS:
553 self.varargs = 1
554 if flags & CO_VARKEYWORDS:
555 self.kwargs = 1
556
--
ptl_compile.py: parameter ``decorators'' needed to meet the definition
https://bugs.launchpad.net/bugs/5308
You received this bug notification because you are a member of MOTU,
which is a bug assignee.
More information about the universe-bugs
mailing list