[Python-ideas] Object grabbing

SW walker_s at hotmail.co.uk
Mon May 2 08:48:17 EDT 2016

On 02/05/16 13:20, Koos Zevenhoven wrote:
> On Mon, May 2, 2016 at 2:48 PM, João Santos <jmcs at jsantos.eu> wrote:
>> I think the ".d = 1" statement feels like a bug waiting to happen. It's very
>> easy to miss a dot.
> I suppose that's a valid concern, especially regarding assignments,
> because the code typically would still run. But in the beginning of
> the line, it is usually quite easy to see if there's a dot or not,
> assuming a fixed-width font and proper indenting.
It may be easy to see if there's a dot or not, but it may not be easy to
tell whether there /should/ be a dot when there isn't.

   .configuration = {'yes': 'no'}
  configuration = {'yes': 'no'}

When you might have later in the code something that assigns to a
variable with the same name, and/or operates on that variable I think
it'd become more difficult to determine.


More information about the Python-ideas mailing list