On Sun, Mar 15, 2020 at 5:54 PM Amar Takhar <a...@rtems.org> wrote: > > On 2020-03-15 17:26 -0600, Gedare Bloom wrote: > > > Make blank lines consistent, 1 or 2, between top-level definitions. (I > > know, we still haven't settled on a style, but let's aim for > > consistency.) > > Okay. > > > > I think all imports should go at the top? > > This is scoped it only runs under certain conditions extremely common in > Python. > It's good practice as well as there's no point in loading a module that isn't > used all of the time. Also, it makes for far clearer code as you know the > module is only used for that snippet. > Alright. I think this may need to be specially defined in style guide.
I believe Google guide makes some restrictions on imports. I'm not enough Python expert to know, but I really think with the amount of Python code that is expected to come through, we need to decide on these things sooner than later. > > Amar. > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel