Random string samples & unicode - Reprise

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Sep 12 19:38:28 PDT 2010


The "".join idiom itself is widespread (amongst those who know about
it, at least). It's mentioned in several books and Python tutorials.
As for taking random string samples, I've never used it so I can't
judge whether it's common or not.

On Mon, Sep 13, 2010 at 4:34 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> Brad Roberts:
>> Existence != common.
>> 27 hits among millions != common.
>> I think you're viewpoint might be a little skewed.
>
> Please Brad. I didn't mean that you are able to find thousands of strings """.join(sample(d, 2))" in Python code around the world. What I meant to say is that in Python2 that's a very natural idiom. I have no idea how to demonstrate this last statement of mine.
>
> Bye,
> bearophile
>


More information about the Digitalmars-d mailing list