Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.misc > #79531

Re: Python

From Richard Kettlewell <invalid@invalid.invalid>
Newsgroups comp.os.linux.misc, alt.folklore.computers
Subject Re: Python
Date 2025-12-19 22:09 +0000
Organization terraraq NNTP server
Message-ID <wwva4zei0nq.fsf@LkoBDZeT.terraraq.uk> (permalink)
References (16 earlier) <7a611mx9gf.ln2@Telcontar.valinor> <kAqdnZn4GIkpoaP0nZ2dnZfqnPWdnZ2d@giganews.com> <693ea5fa$0$28070$426a74cc@news.free.fr> <vKacnZQe1J7QDaL0nZ2dnZfqnPWdnZ2d@giganews.com> <6945bc2b$0$11457$426a34cc@news.free.fr>

Cross-posted to 2 groups.

Show all headers | View raw


Stéphane CARPENTIER <sc@fiat-linux.fr> writes:
> It's not my issu. Vim is able to comment blocks of code without issue.
> It's python that can't always manage it. Let say I have that part of
> code:
>
> if test1:
>   if test2:
>     do some stuff
>
> If I comment the second line to see what happens if I remove my test2,
> like I would do with any normal language, then with python it just
> doesn't work because it breaks the indentation.

    $ cat t.py
    test1=True
    test2=False

    if test1:
      if test2:
        print("L6")

    if test1:
      #if test2:
        print("L10")
    $ python3 t.py
    L10

-- 
https://www.greenend.org.uk/rjk/

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Python c186282 <c186282@nnada.net> - 2025-12-13 23:27 -0500
  Re: Python Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-12-14 11:56 +0000
    Re: Python Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-14 23:29 +0000
      Re: Python mm0fmf <none@invalid.com> - 2025-12-15 12:57 +0000
        Re: Python Alexander Schreiber <als@usenet.thangorodrim.de> - 2025-12-15 22:57 +0100
        Re: Python c186282 <c186282@nnada.net> - 2025-12-15 22:31 -0500
          Re: Python Greg Ewing <greg.ewing@canterbury.ac.nz> - 2025-12-16 17:51 +1300
            Re: Python rbowman <bowman@montana.com> - 2025-12-16 08:32 +0000
        Re: Python Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-16 21:45 +0000
          Re: Python rbowman <bowman@montana.com> - 2025-12-17 01:54 +0000
            Re: Python c186282 <c186282@nnada.net> - 2025-12-17 03:11 -0500
              Re: Python rbowman <bowman@montana.com> - 2025-12-17 19:17 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-17 22:10 -0500
                Re: Python John Levine <johnl@taugh.com> - 2025-12-18 03:28 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-17 23:02 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 06:54 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-18 04:25 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 19:22 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-19 01:14 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 06:44 +0000
                Re: Python Peter Flass <Peter@Iron-Spring.com> - 2025-12-18 07:40 -0700
                Re: Python Richard Kettlewell <invalid@invalid.invalid> - 2025-12-18 18:00 +0000
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 18:28 +0000
                Re: Python Peter Flass <Peter@Iron-Spring.com> - 2025-12-18 12:52 -0700
                Re: Python rbowman <bowman@montana.com> - 2025-12-19 03:53 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-19 00:37 -0500
                Re: Python c186282 <c186282@nnada.net> - 2025-12-19 00:29 -0500
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-20 12:38 +0100
          Re: Python Dan Espen <dan1espen@gmail.com> - 2025-12-17 16:17 -0500
            Re: Python Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-17 22:11 +0000
              Re: Python c186282 <c186282@nnada.net> - 2025-12-17 22:18 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 07:07 +0000
            Re: Python Richard Kettlewell <invalid@invalid.invalid> - 2025-12-17 22:13 +0000
              Re: Python rbowman <bowman@montana.com> - 2025-12-18 00:52 +0000
                Re: Python Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-12-18 08:03 +0100
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 07:39 +0000
                Re: Python scott@slp53.sl.home (Scott Lurndal) - 2025-12-18 15:43 +0000
                Re: Python rbowman <bowman@montana.com> - 2025-12-18 18:38 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-19 00:56 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-19 08:18 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-19 03:30 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-19 19:38 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-20 04:01 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-21 04:08 +0000
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-27 22:36 +0100
                Re: Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-18 09:55 +0000
                Re: Python Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-12-18 11:19 +0100
                Re: Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-18 12:36 +0000
    Re: Python c186282 <c186282@nnada.net> - 2025-12-14 23:36 -0500
      Re: Python candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-12-19 13:30 +0000
        Re: Python rbowman <bowman@montana.com> - 2025-12-19 19:50 +0000
          Re: Python scott@slp53.sl.home (Scott Lurndal) - 2025-12-19 20:03 +0000
            Re: Python Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-12-19 21:00 +0000
              Re: Python c186282 <c186282@nnada.net> - 2025-12-20 04:16 -0500
            Re: Python c186282 <c186282@nnada.net> - 2025-12-20 04:15 -0500
              Re: Python rbowman <bowman@montana.com> - 2025-12-21 04:14 +0000
                Re: Python Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-12-21 09:06 -0500
                Re: Python drb@ihatespam.msu.edu (Dennis Boone) - 2025-12-21 18:31 +0000
                Re: Python rbowman <bowman@montana.com> - 2025-12-21 21:00 +0000
                Re: Python Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-12-22 07:29 +0100
                Linux at work in the old days Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-12-22 07:20 -0500
                Re: Linux at work in the old days rbowman <bowman@montana.com> - 2025-12-22 19:18 +0000
                Re: Linux at work in the old days c186282 <c186282@nnada.net> - 2025-12-23 01:41 -0500
                Re: Linux at work in the old days Peter Flass <Peter@Iron-Spring.com> - 2025-12-23 07:26 -0700
                Re: Linux at work in the old days Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-23 20:21 +0000
                Re: naughty Python John Levine <johnl@taugh.com> - 2025-12-22 21:26 +0000
                Re: naughty Python rbowman <bowman@montana.com> - 2025-12-23 00:49 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-23 01:55 -0500
                Re: naughty Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-23 11:21 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-23 06:34 -0500
                Re: naughty Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-23 12:38 +0000
                Re: naughty Python rbowman <bowman@montana.com> - 2025-12-23 20:28 +0000
                Re: naughty Python Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-12-23 14:21 -0800
                Re: naughty Python rbowman <bowman@montana.com> - 2025-12-23 23:55 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-24 05:33 -0500
                The power of languages (Re: naughty Python) Lars Poulsen <lars@beagle-ears.com> - 2025-12-24 15:49 +0000
                Re: The power of languages (Re: naughty Python) Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-12-24 23:28 +0000
                Re: The power of languages (Re: naughty Python) Thomas Prufer <prufer.public@mnet-online.de.invalid> - 2025-12-27 15:29 +0100
                Re: The power of languages (Re: naughty Python) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-27 21:21 +0000
                Re: The power of languages (Re: naughty Python) rbowman <bowman@montana.com> - 2025-12-27 23:17 +0000
                Re: The power of languages (Re: naughty Python) Lars Poulsen <lars@beagle-ears.com> - 2025-12-28 04:09 +0000
                Re: naughty Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-28 22:22 +0100
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-28 21:06 -0500
                Re: naughty Python rbowman <bowman@montana.com> - 2025-12-29 04:04 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-29 01:07 -0500
                Re: naughty Python rbowman <bowman@montana.com> - 2025-12-29 06:38 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-29 02:31 -0500
                Re: naughty Python John Levine <johnl@taugh.com> - 2025-12-29 04:43 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-29 01:22 -0500
                Re: naughty Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-24 12:41 +0000
                Re: naughty Python Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-12-24 23:28 +0000
                Re: naughty Python c186282 <c186282@nnada.net> - 2025-12-24 21:30 -0500
                Intellectuals (Re: naughty Python) Lars Poulsen <lars@beagle-ears.com> - 2025-12-25 22:05 +0000
                Re: Intellectuals (Re: naughty Python) c186282 <c186282@nnada.net> - 2025-12-25 22:20 -0500
                Re: Intellectuals (Re: naughty Python) The Natural Philosopher <tnp@invalid.invalid> - 2025-12-26 07:02 +0000
                Re: Intellectuals (Re: naughty Python) c186282 <c186282@nnada.net> - 2025-12-26 02:16 -0500
                Re: naughty Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-24 12:40 +0000
                Re: naughty Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-24 12:32 +0000
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-27 22:40 +0100
                Re: Python Nuno Silva <nunojsilva@invalid.invalid> - 2025-12-27 23:21 +0000
                Re: Python dillinger <dillinger@invalid.not> - 2025-12-28 02:05 +0100
                Re: Python Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-12-27 18:16 -0800
                Re: Python dillinger <dillinger@invalid.not> - 2025-12-28 04:59 +0100
                Re: Python Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-12-28 08:32 -0800
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-28 13:48 +0100
                Re: Python dillinger <dillinger@invalid.not> - 2025-12-28 14:14 +0100
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-28 14:42 +0100
                Re: Python rbowman <bowman@montana.com> - 2025-12-28 17:41 +0000
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-28 22:11 +0100
                Re: Python Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-12-28 22:06 +0000
                Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-28 23:30 +0100
                Re: Python c186282 <c186282@nnada.net> - 2025-12-28 21:23 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-29 04:15 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-29 01:17 -0500
                Re: Python rbowman <bowman@montana.com> - 2025-12-29 06:40 +0000
                Re: Python Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-12-28 23:20 -0800
                Re: Python Richard Kettlewell <invalid@invalid.invalid> - 2025-12-29 10:42 +0000
                Re: Python c186282 <c186282@nnada.net> - 2025-12-29 02:52 -0500
        Re: Python c186282 <c186282@nnada.net> - 2025-12-20 02:52 -0500
          Re: Python rbowman <bowman@montana.com> - 2025-12-21 04:00 +0000
            Re: Python candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-12-23 16:00 +0000
              Re: Python rbowman <bowman@montana.com> - 2025-12-23 20:30 +0000
                Re: Python scott@slp53.sl.home (Scott Lurndal) - 2025-12-23 21:14 +0000
      Re: Python Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-12-19 20:57 +0000
        Re: Python Richard Kettlewell <invalid@invalid.invalid> - 2025-12-19 22:09 +0000
          Re: Python rbowman <bowman@montana.com> - 2025-12-20 05:37 +0000
          Re: Python Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-12-20 10:34 +0000
          Re: Python Nuno Silva <nunojsilva@invalid.invalid> - 2025-12-20 11:45 +0000
            Re: Python Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-12-20 13:32 +0000
            Re: Python Richard Kettlewell <invalid@invalid.invalid> - 2025-12-20 16:36 +0000
              Re: Python Richard Kettlewell <invalid@invalid.invalid> - 2025-12-20 16:37 +0000
  Re: Python "Carlos E.R." <robin_listas@es.invalid> - 2025-12-14 13:16 +0100
    Re: Python c186282 <c186282@nnada.net> - 2025-12-15 00:45 -0500
  Re: Python The Natural Philosopher <tnp@invalid.invalid> - 2025-12-15 18:55 +0000
    Re: Python rbowman <bowman@montana.com> - 2025-12-15 22:39 +0000
    Re: Python Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-12-15 23:53 +0000

csiph-web