Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Python problems...

Python problems...

Scheduled Pinned Locked Moved The Lounge
python
73 Posts 29 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    glennPattonWork3
    wrote on last edited by
    #1

    Hi All, Being strongly encouraged (read forced) to use Python for a test rig. Okay need to get down with Kids etc. but syntactic white space 'align your tabs' (who came up with that, is it 1988, am I using a BBC micro) oh gord!!!:mad:

    OriginalGriffO H D R C 8 Replies Last reply
    0
    • G glennPattonWork3

      Hi All, Being strongly encouraged (read forced) to use Python for a test rig. Okay need to get down with Kids etc. but syntactic white space 'align your tabs' (who came up with that, is it 1988, am I using a BBC micro) oh gord!!!:mad:

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Worse: space and tab are not the same: so two lines which look to be identically indented in your chosen editor can be in different code blocks as a tab is one whitespace regardless of the visual effect. X|

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      Mike HankeyM A A 3 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        Worse: space and tab are not the same: so two lines which look to be identically indented in your chosen editor can be in different code blocks as a tab is one whitespace regardless of the visual effect. X|

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        Mike HankeyM Offline
        Mike HankeyM Offline
        Mike Hankey
        wrote on last edited by
        #3

        Agreed but with intelligent Python editors why can't they convert between white space and tabs? 4 spaces = 1 tab

        PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com Latest Article: Simon Says, A Child's Game

        OriginalGriffO P 2 Replies Last reply
        0
        • Mike HankeyM Mike Hankey

          Agreed but with intelligent Python editors why can't they convert between white space and tabs? 4 spaces = 1 tab

          PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com Latest Article: Simon Says, A Child's Game

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Most editors can, but they tend to default to "use tabs" to save file space. And some only do it for modified lines, and ... it's a mess. Just don't use Python is my advice! :laugh:

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          Mike HankeyM G K T P 7 Replies Last reply
          0
          • OriginalGriffO OriginalGriff

            Most editors can, but they tend to default to "use tabs" to save file space. And some only do it for modified lines, and ... it's a mess. Just don't use Python is my advice! :laugh:

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            G Offline
            G Offline
            glennPattonWork3
            wrote on last edited by
            #5

            Quote:

            Just don't use Python is my advice! Laugh | :laugh:

            I'm with you, but "it's so simple and easy to use..." crowd are in force!

            1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              Most editors can, but they tend to default to "use tabs" to save file space. And some only do it for modified lines, and ... it's a mess. Just don't use Python is my advice! :laugh:

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              Mike HankeyM Offline
              Mike HankeyM Offline
              Mike Hankey
              wrote on last edited by
              #6

              OriginalGriff wrote:

              Just don't use Python is my advice!

              Friends don't let friends use Python. I attempted to learn it a few moons back and found the tab-space thing to much of a deterrent.

              PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com Latest Article: Simon Says, A Child's Game

              P 1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                Most editors can, but they tend to default to "use tabs" to save file space. And some only do it for modified lines, and ... it's a mess. Just don't use Python is my advice! :laugh:

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                K Offline
                K Offline
                Kenneth Haugland
                wrote on last edited by
                #7

                It is scripted so it's slower than .NET code. And the UI? :~

                G T A 3 Replies Last reply
                0
                • K Kenneth Haugland

                  It is scripted so it's slower than .NET code. And the UI? :~

                  G Offline
                  G Offline
                  glennPattonWork3
                  wrote on last edited by
                  #8

                  UI what UI?

                  1 Reply Last reply
                  0
                  • G glennPattonWork3

                    Hi All, Being strongly encouraged (read forced) to use Python for a test rig. Okay need to get down with Kids etc. but syntactic white space 'align your tabs' (who came up with that, is it 1988, am I using a BBC micro) oh gord!!!:mad:

                    H Offline
                    H Offline
                    honey the codewitch
                    wrote on last edited by
                    #9

                    I refer to it as "invisible source code" because that's what significant whitespace is. And it's just as stupid as it sounds. How do you debug that which you cannot see? It's risible.

                    To err is human. Fortune favors the monsters.

                    G M P N 4 Replies Last reply
                    0
                    • H honey the codewitch

                      I refer to it as "invisible source code" because that's what significant whitespace is. And it's just as stupid as it sounds. How do you debug that which you cannot see? It's risible.

                      To err is human. Fortune favors the monsters.

                      G Offline
                      G Offline
                      glennPattonWork3
                      wrote on last edited by
                      #10

                      With 8 Bit micros it made sense, when I jumped to 16 Bit (Amiga 500, Amiga Basic, AMOS, C & 68K assembly!) no spaces. Why with a new language?

                      1 Reply Last reply
                      0
                      • G glennPattonWork3

                        Hi All, Being strongly encouraged (read forced) to use Python for a test rig. Okay need to get down with Kids etc. but syntactic white space 'align your tabs' (who came up with that, is it 1988, am I using a BBC micro) oh gord!!!:mad:

                        D Offline
                        D Offline
                        David Crow
                        wrote on last edited by
                        #11

                        glennPattonWork3 wrote:

                        ...but syntactic white space 'align your tabs'

                        It's like COBOL or RPG. X|

                        "One man's wage rise is another man's price increase." - Harold Wilson

                        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                        G P D 3 Replies Last reply
                        0
                        • D David Crow

                          glennPattonWork3 wrote:

                          ...but syntactic white space 'align your tabs'

                          It's like COBOL or RPG. X|

                          "One man's wage rise is another man's price increase." - Harold Wilson

                          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                          G Offline
                          G Offline
                          glennPattonWork3
                          wrote on last edited by
                          #12

                          We battled those demons and sent them packing! OK a lot of stuff was written in COBOL because there was assembly and COBOL, COBOL gave you an error message, assembly didn't.

                          1 Reply Last reply
                          0
                          • G glennPattonWork3

                            Hi All, Being strongly encouraged (read forced) to use Python for a test rig. Okay need to get down with Kids etc. but syntactic white space 'align your tabs' (who came up with that, is it 1988, am I using a BBC micro) oh gord!!!:mad:

                            R Offline
                            R Offline
                            RickZeeland
                            wrote on last edited by
                            #13

                            https://pbs.twimg.com/media/EVUM43pWAAYRFhS.jpg[^] :-\

                            1 Reply Last reply
                            0
                            • D David Crow

                              glennPattonWork3 wrote:

                              ...but syntactic white space 'align your tabs'

                              It's like COBOL or RPG. X|

                              "One man's wage rise is another man's price increase." - Harold Wilson

                              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                              "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                              P Offline
                              P Offline
                              PIEBALDconsult
                              wrote on last edited by
                              #14

                              :shudder: Not to diss on COBOL, but after thirty+ years I still remember having to help a fellow college student debug a COBOL program which wasn't working. She had used TABs to pad a string to the desired length -- it looked OK on a VT100, but the compiler knew better.

                              H 1 Reply Last reply
                              0
                              • H honey the codewitch

                                I refer to it as "invisible source code" because that's what significant whitespace is. And it's just as stupid as it sounds. How do you debug that which you cannot see? It's risible.

                                To err is human. Fortune favors the monsters.

                                M Offline
                                M Offline
                                MarkTJohnson
                                wrote on last edited by
                                #15

                                Considering it was named after the people who gave us the Ministry of Silly Walks, Dead Parrots, and the Argument Sketch, what else would you expect?

                                honey the codewitch wrote:

                                It's risible.

                                Had to look that word up, which caused me to be risible.

                                I’ve given up trying to be calm. However, I am open to feeling slightly less agitated. I’m begging you for the benefit of everyone, don’t be STUPID.

                                P 1 Reply Last reply
                                0
                                • G glennPattonWork3

                                  Hi All, Being strongly encouraged (read forced) to use Python for a test rig. Okay need to get down with Kids etc. but syntactic white space 'align your tabs' (who came up with that, is it 1988, am I using a BBC micro) oh gord!!!:mad:

                                  C Offline
                                  C Offline
                                  Chris Maunder
                                  wrote on last edited by
                                  #16

                                  Ya get used to it ;) (The thing that will do your head in is the error when you keep trying to do !var) Oh, and good luck with PIP. You've got this! :thumbsup::thumbsup:

                                  cheers Chris Maunder

                                  G L P 4 Replies Last reply
                                  0
                                  • C Chris Maunder

                                    Ya get used to it ;) (The thing that will do your head in is the error when you keep trying to do !var) Oh, and good luck with PIP. You've got this! :thumbsup::thumbsup:

                                    cheers Chris Maunder

                                    G Offline
                                    G Offline
                                    glennPattonWork3
                                    wrote on last edited by
                                    #17

                                    Oh :bob: I hope so...

                                    1 Reply Last reply
                                    0
                                    • C Chris Maunder

                                      Ya get used to it ;) (The thing that will do your head in is the error when you keep trying to do !var) Oh, and good luck with PIP. You've got this! :thumbsup::thumbsup:

                                      cheers Chris Maunder

                                      G Offline
                                      G Offline
                                      glennPattonWork3
                                      wrote on last edited by
                                      #18

                                      There just something about **Value, my brain says 'Pointer to a pointer, what witchcraft is this!!!'

                                      1 Reply Last reply
                                      0
                                      • Mike HankeyM Mike Hankey

                                        OriginalGriff wrote:

                                        Just don't use Python is my advice!

                                        Friends don't let friends use Python. I attempted to learn it a few moons back and found the tab-space thing to much of a deterrent.

                                        PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com Latest Article: Simon Says, A Child's Game

                                        P Offline
                                        P Offline
                                        PIEBALDconsult
                                        wrote on last edited by
                                        #19

                                        Friends don't let friends use TABs.

                                        Mike HankeyM 1 Reply Last reply
                                        0
                                        • C Chris Maunder

                                          Ya get used to it ;) (The thing that will do your head in is the error when you keep trying to do !var) Oh, and good luck with PIP. You've got this! :thumbsup::thumbsup:

                                          cheers Chris Maunder

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #20

                                          Never had a problem yet with pip. ;P I did say "yet", which probably means trouble the next time I use it.

                                          C 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups