Sujet : Re: Correct syntax for re.search() (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 09. Oct 2024, 00:15:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ve4eeb$2blnu$5@dont-email.me>
References : 1 2 3 4 5
User-Agent : Pan/0.160 (Toresk; )
On Tue, 08 Oct 2024 19:50:14 +0200, Pieter van Oostrum wrote:
You could even omit the '+'. Then the concatenation is done at parsing
time instead of run time.
Surprising how few people know about this. It’s a feature copied from C,
and present in C++. But for some reason Java, JavaScript and PHP dropped
it. Python is one of the few other languages that has it.