Source code for str.replace()
Discussions on Python.org
Source code for str.replace()
Can anyone tell me where I might find the underlying C source code for Python’s builtin str.replace() method? Not that I know much about C but wanted to have a go at creating a .swap() method for searching an incoming string and swapping over two sub-strings. A bit like replace but swapping two strings instead.
0 comments
No comments yet.