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, Good or Snake in the grass??

Python, Good or Snake in the grass??

Scheduled Pinned Locked Moved The Lounge
pythonquestion
25 Posts 15 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.
  • M Minion no 5

    First, Python 2 is much more popular plus there can be add on compatibility problems with Python 3 which may be the issue. Python 2 creates ASCII strings by default but Python 3 creates Unicode by default so use

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

    Ah, like I said I am new to 'easy' coding. Does PySerial work with Python3? in your opinion which is the best CP like place for Python, I do not wish to anger the Hamsters for asking programming questions. Thanks for that I have fiddled around and got

    my_str = "hello world"
    bytes = my_str.encode("ascii")
    print(my_str)

    It don't blow up anymore! Cheers Glenn

    L 1 Reply Last reply
    0
    • G glennPattonWork3

      Hi, I have been looking into Python recently as it seems a lot of the jobs I am looking at require it or another scripting language for hacking out quick tests. I have never really looked or used scripting languages for anything. There seems to be a hold out for Python 2 and no brackets over Python 3 and lots of brackets. I am trying to use the serial ports in it and am finding it odd to get the serial ports I downloaded PySerial yesterday and managed to brake Python 3. Reinstalled today and it appears to know about serial ports (I can set up Baud rate, Stopbits and the like) but can't write to it. :confused:Go to various web sites such as StackOverFlow and get confused more, goto Pythons home page 404 meets me! I surrender... >:confused:

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

      I expect it's a good first language for newbs (as BASIC and Pascal were back in the day), but I doubt it's industrial-strength (also like BASIC and Pascal). My current employer has recently out-sourced something and the contractors are planning on using Python. This is a process I have already implemented in C# and one of my many concerns is how suitable Python is to the problem domain (lexxing/parsing thousands of very large text files).

      G R X M 4 Replies Last reply
      0
      • G glennPattonWork3

        Ah, like I said I am new to 'easy' coding. Does PySerial work with Python3? in your opinion which is the best CP like place for Python, I do not wish to anger the Hamsters for asking programming questions. Thanks for that I have fiddled around and got

        my_str = "hello world"
        bytes = my_str.encode("ascii")
        print(my_str)

        It don't blow up anymore! Cheers Glenn

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

        Q&A is the general place. Also a new Python geek has just started answering them, and appears to really know what he's doing.

        G 1 Reply Last reply
        0
        • G glennPattonWork3

          Hi, I have been looking into Python recently as it seems a lot of the jobs I am looking at require it or another scripting language for hacking out quick tests. I have never really looked or used scripting languages for anything. There seems to be a hold out for Python 2 and no brackets over Python 3 and lots of brackets. I am trying to use the serial ports in it and am finding it odd to get the serial ports I downloaded PySerial yesterday and managed to brake Python 3. Reinstalled today and it appears to know about serial ports (I can set up Baud rate, Stopbits and the like) but can't write to it. :confused:Go to various web sites such as StackOverFlow and get confused more, goto Pythons home page 404 meets me! I surrender... >:confused:

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

          I've been learning Python on the RPi and it's pretty awesome.

          New version: WinHeist Version
          Everyone you will ever meet knows something you don't. -Bill Nye-

          G 1 Reply Last reply
          0
          • P PIEBALDconsult

            I expect it's a good first language for newbs (as BASIC and Pascal were back in the day), but I doubt it's industrial-strength (also like BASIC and Pascal). My current employer has recently out-sourced something and the contractors are planning on using Python. This is a process I have already implemented in C# and one of my many concerns is how suitable Python is to the problem domain (lexxing/parsing thousands of very large text files).

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

            A friend of mine is an ICT or Computer Studies teacher and is using Python and won't hear a word against it. BASIC was view as a poor language but then VB happened and it's everywhere! :omg:

            P 1 Reply Last reply
            0
            • Mike HankeyM Mike Hankey

              I've been learning Python on the RPi and it's pretty awesome.

              New version: WinHeist Version
              Everyone you will ever meet knows something you don't. -Bill Nye-

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

              Must admit RPi is how I got into it. It seems like the RPi does have certain things install in Python that Windows goes "huh?" to...

              Mike HankeyM 1 Reply Last reply
              0
              • G glennPattonWork3

                A friend of mine is an ICT or Computer Studies teacher and is using Python and won't hear a word against it. BASIC was view as a poor language but then VB happened and it's everywhere! :omg:

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

                And MIT uses it to teach the basics of programming to non-CS students who might just need to write something simple. I have no first-hand experience with it, but what I've seen doesn't interest me. It's probably the right tools for some things I don't do.

                1 Reply Last reply
                0
                • G glennPattonWork3

                  Must admit RPi is how I got into it. It seems like the RPi does have certain things install in Python that Windows goes "huh?" to...

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

                  I installed PyCharm on windows but didn't use it much before getting my Pi so don't know much about it, but am not surprised.

                  New version: WinHeist Version
                  Everyone you will ever meet knows something you don't. -Bill Nye-

                  1 Reply Last reply
                  0
                  • L Lost User

                    Q&A is the general place. Also a new Python geek has just started answering them, and appears to really know what he's doing.

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

                    Thanks, I can ask the question in Q&A, its just that I hovered over the Quick Answers and the Discussions tab and couldn't see Python.

                    L 1 Reply Last reply
                    0
                    • G glennPattonWork3

                      Thanks, I can ask the question in Q&A, its just that I hovered over the Quick Answers and the Discussions tab and couldn't see Python.

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

                      glennPattonBackInThePUB wrote:

                      couldn't see Python.

                      Hiding in the grass of course. ;) If you open a Q&A you will notice that the editor does include a code block type for Python.

                      1 Reply Last reply
                      0
                      • G glennPattonWork3

                        Hi, I have been looking into Python recently as it seems a lot of the jobs I am looking at require it or another scripting language for hacking out quick tests. I have never really looked or used scripting languages for anything. There seems to be a hold out for Python 2 and no brackets over Python 3 and lots of brackets. I am trying to use the serial ports in it and am finding it odd to get the serial ports I downloaded PySerial yesterday and managed to brake Python 3. Reinstalled today and it appears to know about serial ports (I can set up Baud rate, Stopbits and the like) but can't write to it. :confused:Go to various web sites such as StackOverFlow and get confused more, goto Pythons home page 404 meets me! I surrender... >:confused:

                        D Offline
                        D Offline
                        Dan Neely
                        wrote on last edited by
                        #13

                        Syntactic whitespace is an abomination that should've been buried when language design progressed beyond the first generation (eg COBOL or FORTRAN).

                        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                        P 1 Reply Last reply
                        0
                        • D Dan Neely

                          Syntactic whitespace is an abomination that should've been buried when language design progressed beyond the first generation (eg COBOL or FORTRAN).

                          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

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

                          Hear! Hear! And enforcing code formatting style went out with pocket protectors.

                          N 1 Reply Last reply
                          0
                          • P PIEBALDconsult

                            I expect it's a good first language for newbs (as BASIC and Pascal were back in the day), but I doubt it's industrial-strength (also like BASIC and Pascal). My current employer has recently out-sourced something and the contractors are planning on using Python. This is a process I have already implemented in C# and one of my many concerns is how suitable Python is to the problem domain (lexxing/parsing thousands of very large text files).

                            R Offline
                            R Offline
                            Rage
                            wrote on last edited by
                            #15

                            PIEBALDconsult wrote:

                            it's industrial-strength

                            There are critical application out there running in VB6.0. For real.

                            Do not escape reality : improve reality !

                            P 1 Reply Last reply
                            0
                            • R Rage

                              PIEBALDconsult wrote:

                              it's industrial-strength

                              There are critical application out there running in VB6.0. For real.

                              Do not escape reality : improve reality !

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

                              That doesn't mean it's industrial strength.

                              R 1 Reply Last reply
                              0
                              • P PIEBALDconsult

                                That doesn't mean it's industrial strength.

                                R Offline
                                R Offline
                                Rage
                                wrote on last edited by
                                #17

                                No, it only means that anything is possible.

                                Do not escape reality : improve reality !

                                1 Reply Last reply
                                0
                                • G glennPattonWork3

                                  Hi, I have been looking into Python recently as it seems a lot of the jobs I am looking at require it or another scripting language for hacking out quick tests. I have never really looked or used scripting languages for anything. There seems to be a hold out for Python 2 and no brackets over Python 3 and lots of brackets. I am trying to use the serial ports in it and am finding it odd to get the serial ports I downloaded PySerial yesterday and managed to brake Python 3. Reinstalled today and it appears to know about serial ports (I can set up Baud rate, Stopbits and the like) but can't write to it. :confused:Go to various web sites such as StackOverFlow and get confused more, goto Pythons home page 404 meets me! I surrender... >:confused:

                                  M Offline
                                  M Offline
                                  Marc Clifton
                                  wrote on last edited by
                                  #18

                                  Except for banging out scripts, I'm not really enamored with any interpreted language, and in particular duck-typed interpreted languages like Python or Ruby (to the point where I'm deleting Ruby from my resume, even if it leaves holes, because I am so sick of Indian recruiters calling me to see if I'm available for RoR work.) Technically, Python is a "strong typed dynamic" language, in that a variable retains its type until you reassign the variable to a different type. Still, doesn't float my boat. Where I work, some hotshot came waltzing in and implemented the server using Django, which is written in Python. Well, whatever, I guess. Wouldn't have been my choice. Marc

                                  Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                  pkfoxP 1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    Hear! Hear! And enforcing code formatting style went out with pocket protectors.

                                    N Offline
                                    N Offline
                                    Nagy Vilmos
                                    wrote on last edited by
                                    #19

                                    Are you saying pocket protectors are out of fashion? Why wasn't I told?

                                    veni bibi saltavi

                                    1 Reply Last reply
                                    0
                                    • M Marc Clifton

                                      Except for banging out scripts, I'm not really enamored with any interpreted language, and in particular duck-typed interpreted languages like Python or Ruby (to the point where I'm deleting Ruby from my resume, even if it leaves holes, because I am so sick of Indian recruiters calling me to see if I'm available for RoR work.) Technically, Python is a "strong typed dynamic" language, in that a variable retains its type until you reassign the variable to a different type. Still, doesn't float my boat. Where I work, some hotshot came waltzing in and implemented the server using Django, which is written in Python. Well, whatever, I guess. Wouldn't have been my choice. Marc

                                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                      pkfoxP Online
                                      pkfoxP Online
                                      pkfox
                                      wrote on last edited by
                                      #20

                                      Django was a great guitarist - end of story.

                                      We can’t stop here, this is bat country - Hunter S Thompson RIP

                                      1 Reply Last reply
                                      0
                                      • P PIEBALDconsult

                                        I expect it's a good first language for newbs (as BASIC and Pascal were back in the day), but I doubt it's industrial-strength (also like BASIC and Pascal). My current employer has recently out-sourced something and the contractors are planning on using Python. This is a process I have already implemented in C# and one of my many concerns is how suitable Python is to the problem domain (lexxing/parsing thousands of very large text files).

                                        X Offline
                                        X Offline
                                        xtofl
                                        wrote on last edited by
                                        #21

                                        'Industrial Strength': if you refer to performance, I wouldn't worry so much. Python is compiled to pretty fast code (take a look at http://stackoverflow.com/questions/672857/is-python-slower-than-java-c[^]). If you want to compare C# to Python, take a look here: http://onstartups.com/tabid/3339/bid/128/Python-vs-C-Business-and-Technology-Tradeoffs.aspx[^]. Python is way more than a pet language for sure. It's been there for ages, it has a huge community to support you, and a 'batteries included' standard library (including serialization, metaprogramming, async programming, ...).

                                        1 Reply Last reply
                                        0
                                        • G glennPattonWork3

                                          Hi, I have been looking into Python recently as it seems a lot of the jobs I am looking at require it or another scripting language for hacking out quick tests. I have never really looked or used scripting languages for anything. There seems to be a hold out for Python 2 and no brackets over Python 3 and lots of brackets. I am trying to use the serial ports in it and am finding it odd to get the serial ports I downloaded PySerial yesterday and managed to brake Python 3. Reinstalled today and it appears to know about serial ports (I can set up Baud rate, Stopbits and the like) but can't write to it. :confused:Go to various web sites such as StackOverFlow and get confused more, goto Pythons home page 404 meets me! I surrender... >:confused:

                                          K Offline
                                          K Offline
                                          KevinBlack
                                          wrote on last edited by
                                          #22

                                          I haven't used Python yet however I would certainly give it a go. I believe the Dropbox backend is written in Python, although it is being migrated to go. Dropbox was supporting some 300 million users and many, many more folders and files including sharing. That seems pretty industrial strength to me. From the font of all knowledge:

                                          Quote:

                                          Originally, both the Dropbox server (running on the cloud) and desktop client software were primarily written in Python. From mid-2013 Dropbox began migrating its backend infrastructure to Go. The desktop client uses Python GUI toolkits such as wxWidgets and Cocoa. Other notable Python libraries include Twisted, ctypes, and pywin32.

                                          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