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. > >