← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 jiwon
收信人
日期 2006-09-13.21:16:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
内容
Logged In: YES 
user_id=595483

The codeobject has a kwonlyargcount meaning the number of
keyword only arguments. Thus, the api for creating new code
object is changed: PyCode_New now takes kwonlyargcount.

So, the signature changes from this
PyCode_New(argcount, nlocals, stacksize, ...)

to following.
PyCode_New(argcount, kwonlyargcount, nlocals, stacksize, ...)

From python, you can access this with name
"co_kwonlyargcount" such as, co.co_kwonlyargcount just like
you access argcount with co.co_argcount.
历史
日期 用户 动作 参数
2007-08-23 15:54:26admin链接issue1549670 messages
2007-08-23 15:54:26admin创建