Re: [Python-Dev] Don't assign to a variable used later in the expression

2018-07-04 Thread Ivan Pozdeev via Python-Dev
On 05.07.2018 3:40, Ivan Pozdeev via Python-Dev wrote: On 05.07.2018 2:29, Nathaniel Smith wrote: On Wed, Jul 4, 2018 at 4:10 PM, Ivan Pozdeev via Python-Dev wrote: On 04.07.2018 10:10, Nathaniel Smith wrote: Right, Python has a *very strong* convention that each line should have at most one

Re: [Python-Dev] Don't assign to a variable used later in the expression

2018-07-04 Thread Ivan Pozdeev via Python-Dev
On 05.07.2018 2:29, Nathaniel Smith wrote: On Wed, Jul 4, 2018 at 4:10 PM, Ivan Pozdeev via Python-Dev wrote: On 04.07.2018 10:10, Nathaniel Smith wrote: Right, Python has a *very strong* convention that each line should have at most one side-effect, and that if it does have a side-effect it s

Re: [Python-Dev] Don't assign to a variable used later in the expression

2018-07-04 Thread Nathaniel Smith
On Wed, Jul 4, 2018 at 4:10 PM, Ivan Pozdeev via Python-Dev wrote: > On 04.07.2018 10:10, Nathaniel Smith wrote: >> Right, Python has a *very strong* convention that each line should >> have at most one side-effect, and that if it does have a side-effect >> it should be at the outermost level. > >

[Python-Dev] Don't assign to a variable used later in the expression

2018-07-04 Thread Ivan Pozdeev via Python-Dev
On 04.07.2018 10:10, Nathaniel Smith wrote: On Tue, Jul 3, 2018 at 11:07 PM, Serhiy Storchaka wrote: 04.07.18 00:51, Chris Angelico пише: On Wed, Jul 4, 2018 at 7:37 AM, Serhiy Storchaka wrote: I believe most Python users are not professional programmers -- they are sysadmins, scientists, hob