About 184,000 results
Open links in new tab
  1. Newest 'python' Questions - Stack Overflow

    Newest python questions feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ...

  2. Why isn't Python very good for functional programming?

    Jun 19, 2009 · The question you reference asks which languages promote both OO and functional programming. Python does not promote functional programming even though it works fairly well. The best argument against functional programming in Python is that imperative/OO use cases are carefully considered by Guido, while functional programming use cases are not ...

  3. What does the “at” (@) symbol do in Python? - Stack Overflow

    Jun 17, 2011 · Decorators were added in Python to make function and method wrapping (a function that receives a function and returns an enhanced one) easier to read and understand. The original use case was to be able to define the methods as class methods or static methods on the head of their definition.

  4. Python programming functional vs. imperative code

    Feb 20, 2014 · So I'm currently in a class learning about the 3 major programming paradigms. I know that python uses both the functional and imperative paradigms. I was looking for a short sample code in python of each of these paradigms to …

  5. Python programming general questions - Stack Overflow

    Jun 10, 2012 · Bram who invented bittorrent with python says python is good for writing protocols in addition to aforementioned webapps, games and general purpose. Compared to Java python solves same problem in less code and less ways in longer development and VM time where Java has more ways solve same problem in more code and faster VM and faster ...

  6. Best online resource to learn Python? - Stack Overflow

    Mar 8, 2012 · Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding.

  7. What are good programming questions to exercise the use of "if

    Sep 26, 2015 · What would be a good set of programming exercises that would help Python newbies to learn the use of the "if ... else" construct? I could cook up the following, do you know of any more? Find the largest/smallest of three numbers. Given a …

  8. python - Best ways to teach a beginner to program ... - Stack …

    After Logo, move to Python or Ruby. I recommend Python, as it's based on ABC, which was invented for the purpose of teaching programming. When teaching programming, I must second EHaskins's suggestion of simple projects and then complex projects. The best way to learn is to start with a definite outcome and a measurable milestone.

  9. How to do parallel programming in Python? - Stack Overflow

    For C++, we can use OpenMP to do parallel programming; however, OpenMP will not work for Python. What should I do if I want to parallel some parts of my python program? The structure of the code may be considered as: solve1(A) solve2(B) Where solve1 and solve2 are two independent function. How to run this kind of code in parallel instead of in ...

  10. python - Why is "except: pass" a bad programming practice

    Feb 4, 2014 · Good programming only raises errors when you have to handle them. Also, as i read some time ago, "the pass-Statement is a Statement that Shows code will be inserted later", so if you want to have an empty except-statement feel free to do so, but for a good program there will be a part missing. because you dont handle the things you should have.

Refresh