On Fri, Oct 18, 2019 at 6:06 AM Anders Hovmöller <bo...@killingar.net> wrote:
>
> > On 17 Oct 2019, at 20:37, Chris Angelico <ros...@gmail.com> wrote:
> >
> > On Fri, Oct 18, 2019 at 5:25 AM Anders Hovmöller <bo...@killingar.net> 
> > wrote:
> >>
> >> No. The reason I don't know is because this is a hypothetical example. In 
> >> real code I would "know" BUT BE WRONG because the variable names would be 
> >> outright lying.
> >>
> >> / Anders
> >
> > So if you had 'separator' and 'width', would the variable names be
> > outright lying, or would it then be reasonable to multiply a separator
> > character by a width (eg 80) to create a line?
>
> Eh. No. What? Are you really being sincere?
>
> In any case this would be fine:
>
> line = separator.fill(80)
>

Okay, so clearly we have quite different ideas about what's
acceptable. That's fine. You're allowed to use a method, but since the
language DOES support multiplication of string by repeat count, I'll
quite happily continue to use the operator.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/UNCXUJKAVZUD64Q3ERB2MP5CXP4Y4IVB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to