Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82026
| References | <CAFaCOgxQvq0TmS7G3f_bZ8HV+eUGSh5DSZiGxi7KhL_Yfp6Zdg@mail.gmail.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2014-12-05 15:54 -0700 |
| Subject | Re: Tabs for indentation & Spaces for alignment in Python 3? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16642.1417820104.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On Fri, Dec 5, 2014 at 11:49 AM, Aahan Krish <krish@aahan.me> wrote:
>
> Hello Ian,
>
> So, wrt Q2, what you are saying is, the following would cause issues in
Python 3?
>
> int f(int x,
> ......int y) {
> --->return g(x,
> --->.........y);
> }
>
> Where:
>
> ---> for tabs (used for indentation)
> .... for spaces (used for alignment)
That example should be fine, I think (if it were actually Python and not
C, that is). The second line is a continuation of the first line, so the
preceding whitespace isn't indentation and doesn't matter. Likewise for the
fourth line. So the only line with any actual indentation there is the
third line.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Tabs for indentation & Spaces for alignment in Python 3? Ian Kelly <ian.g.kelly@gmail.com> - 2014-12-05 15:54 -0700
csiph-web