[OZAPRS] Doppler graph

Mark Jessop lenniethelemming at gmail.com
Tue Nov 21 21:56:52 AEDT 2017


Python is nice (... kind of) in that it gives the user choice!

You can use a tab per indent.
You can use 4 spaces per indent.
You can use 2 spaces per indent.

You can even combine the above in a single file! (though not within the
same function).
(Please don't do this.)

...

On a more serious note, there is the PEP8 style guide, which you are
completely entitled to ignore: https://www.python.org/dev/peps/pep-0008/
We do try and comply with it at work however, a few of the teams are a bit
draconian about it and have pre-commit hooks on their git repos that don't
allow you to commit unless your code passes a PEP8 style check :-)  (You
learn to write PEP8 compliant code *very* quickly.)

73
Mark VK5QI

On Tue, Nov 21, 2017 at 8:30 PM, Glen English VK1XX <
glenlist at pacificmedia.com.au> wrote:

> it's only 1 x tab per indent...
>
> (I never use spaces)
> On 20/11/2017 11:58 PM, Matthew Cook wrote:
> > I can code in any language however it all looks like C.
> >
> > I'm sort of forced to learn Python since my 10yr old is mad keen to
> > learn programming...
> >
> > However I still can't get used to using it's crazy white space
> > indentation for code blocks...
> >
> > 73
>
>
> _______________________________________________
> OZAPRS mailing list
> OZAPRS at aprs.net.au
> http://lists.aprs.net.au/mailman/listinfo/ozaprs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aprs.net.au/pipermail/ozaprs/attachments/20171121/05eb459d/attachment.html>


More information about the OZAPRS mailing list