Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82026 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2014-12-05 15:54 -0700 |
| Last post | 2014-12-05 15:54 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Tabs for indentation & Spaces for alignment in Python 3? Ian Kelly <ian.g.kelly@gmail.com> - 2014-12-05 15:54 -0700
| 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? |
| Message-ID | <mailman.16642.1417820104.18130.python-list@python.org> |
[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 top | Article view | comp.lang.python
csiph-web