[Python-Dev] Argument Clinic: Bug? self converters are not preserved when cloning functions (original) (raw)
Tal Einat taleinat at gmail.com
Tue Jan 21 02:46:53 CET 2014
- Previous message: [Python-Dev] signature.object, argument clinic and grouped parameters
- Next message: [Python-Dev] Argument Clinic: Bug? self converters are not preserved when cloning functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'm working on converting Objects/bytearray.c and Objects/bytes.c.
For bytes, the strip methods need a "self converter" so that they get a PyBytesObject* instead of PyObject*. However, having set this in bytes.strip and "cloning" that clinic definition for bytes.lstrip and bytes.rstrip, it appears that the self converter wasn't set on lstrip and rstrip. Removing the cloning and copying the argument definitions resolved the issue.
Is this a bug?
- Tal
- Previous message: [Python-Dev] signature.object, argument clinic and grouped parameters
- Next message: [Python-Dev] Argument Clinic: Bug? self converters are not preserved when cloning functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]