New submission from Ryan Smith-Roberts:

The docs indicate that you can do:

class foo_converter(CConverter):
    ...
    c_default = 'bar()'
    py_default = 'Bar'

except that CConverter.__init__() unconditionally overwrites these values. 
Patch attached.

----------
components: Build
files: ac_overwritten_defaults.patch
keywords: patch
messages: 208447
nosy: larry, rmsr
priority: normal
severity: normal
status: open
title: Argument Clinic CConverter.__init__() overrides c_default and py_default
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file33540/ac_overwritten_defaults.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to