modpython: accept znc.String when function expects const CString& #640

Open
opened 2026-10-05 04:35:39 +02:00 by adam · 0 comments
Owner
void f(const CString& s);
x = znc.String()
f('') # works
f(x) # doesn't work, but it would be nice if it works
f(x.s) # works
f(str(x)) # works

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

``` c++ void f(const CString& s); ``` ``` py x = znc.String() f('') # works f(x) # doesn't work, but it would be nice if it works f(x.s) # works f(str(x)) # works ``` ## <bountysource-plugin> Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28518272-modpython-accept-znc-string-when-function-expects-const-cstring?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:118285614 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#640