On Tue, 17 May 2022 17:20:54 +0100, MRAB <pyt...@mrabarnett.plus.com> declaimed the following:
>As it's just a simple replacement, I would've thought that the 'obvious' >solution would be: > a = a.replace("'", "") Mea culpa... Guess it's time for me to review the library reference for basic data types again. I'm so used to the .join(.split()) (usually for other purposes -- like a quick&dirty TSV/CSV formatting without importing the csv module). The only firm item is that I do not look at any regular expression module if I can come up with something using native data type methods -- and using the overhead of re with just simple text [ie; nothing that might be called an "expression" designed to match /varying/ content) seems really inefficient. -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list