Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [python]

Python is a dynamically typed, high-level interpreted programming language. Its design focuses on clear syntax, an intuitive approach to object-oriented programming, and making the right way to do things obvious. Python supports modules and exceptions, and has an extensive standard module library. Python is general-purpose and thus used widely, from the web to embedded systems.

7
votes
3answers
7k views

Python lower_case_with_underscores style convention: underscores not popular? [closed]

PEP8 recommends using lowercase, with words separated by underscores as necessary to improve readability for variable and function names. I've seen this interpreted as ...
4
votes
9answers
615 views

One good reason for a rewrite

I have a personal web project I cut my teeth on learning how to program. I wrote it in PHP and learned as I went. I eventually I re-factored it to use MVC and removed all mixing of php/html. Right ...
5
votes
6answers
2k views

Designing for an algorithm that reports progress

I have an iterative algorithm and I want to print the progress. However, I may also want it not to print any information, or to print it in a different way, or do other logic. In an object oriented ...
5
votes
2answers
1k views

Why does the word “Pythonic” exist? [closed]

Honestly, I hate the word "Pythonic" -- it's used as a simple synonym of "good" in many circles, and I think that's pretentious. Those who use it are silently saying that good code cannot be written ...
38
votes
5answers
5k views

Java dev learning Python: what concepts do I need to wrap my head around?

Background: I've run through a few tutorials and written some small projects. All is going well enough using Google and StackOverflow. Several times in the last few days I've found myself wondering "...
16
votes
5answers
8k views

What should a Python developer know while learning Ruby? [closed]

I have been a Python programmer for about 18 months, consisting of one internship and a few side projects, and I consider myself pretty comfortable in the language. However, there seems to be a lot ...
7
votes
3answers
456 views

Does it make sense to develop open source python library for database inspection? [closed]

Some time ago I came up with an idea for a library for database inspection. I started developing it and got some very basic functionality, just to check if that's possible. Recently however, I get ...
3
votes
2answers
5k views

Would knowing Python help with creating iPhone applications?

Here is what the apple site says: With Snow Leopard, Mac OS X makes it easy to use scripting languages as full application development tools. Snow Leopard ships with support for the ...
4
votes
4answers
443 views

Strategies for managing use of types in Python

I'm a long time programmer in C# but have been coding in Python for the past year. One of the big hurdles for me was the lack of type definitions for variables and parameters. Whereas I totally get ...
6
votes
3answers
1k views

What do you think about gems and eggs? Alternatives? [closed]

I've read recently some criticism (see 1, 2, 3) about the packaging distribution system of two popular programming languages: Ruby gems and Python eggs. The most important argument stated against them ...
2
votes
1answer
1k views

Python web frameworks comparisons

I recently asked a question on SO about Python web frameworks: https://stackoverflow.com/questions/4909306/python-web-frameworks-vs-java-web-frameworks-how-is-web-development-in-python-do I want to ...
1
vote
1answer
355 views

What features are missing from Python IDE tools?

What are the most desired features currently lacking in any Python IDE tools? I'm also interested in what's missing in Komodo 6 but available in other tools (I currently use Komodo 6 for Python 3 ...
3
votes
11answers
2k views

python vs php (for project managers)

Up to now, as a developer i preferred python for web programming and scripting. Now, i will manage some projects. I know that finding developers that know php is easier than finding developers that ...
22
votes
11answers
7k views

If we can do functional programming with Python, do we need a specific functional programming language? [closed]

Using generators and lambda, we can do functional programming with Python. You can also achieve the same thing with Ruby. So the question is: why do we need specific functional programming languages ...
24
votes
8answers
23k views

Ruby or Python? [closed]

This question is extremely subjective and open-ended. It might even sound like something I should just research for myself and make my own decision. But I'd like to put it out there and get some ...
2
votes
4answers
2k views

Python vs. Java for embedded wireless module [closed]

We are developing a product at work which interfaces with basic I/O and sends data to a webserver over a GPRS connection. What i need to know before we commit to a product, is which language is more ...
5
votes
1answer
1k views

Best way of learning Python + GUI when coming from .NET

I've been developing applications in C# / VB.NET for about 3-4 years (.NET Framework v2.0, 3.5, 4). I have also developed some command-line applications or scripts in C, and Python under Linux. ...
9
votes
10answers
97k views

How long would it take to learn Python? [closed]

I have decided to take the time out after work to learn Python. Python appeals to me because at work (Web and eLearning Company), I have to follow out very repetitive tasks like delete all these tags, ...
7
votes
2answers
1k views

Argument notation in Python documentation

I read the Python documentation a lot and sometimes I am baffled by this notation: os.path.join(path1[, path2[, ...]]) I somehow make that [, path[,...]] is a list but I would like to know if I am ...
30
votes
6answers
22k views

Programming language usage at Google [closed]

I have heard Google uses Python, Java and C++. But what I don't know is how is each of those programming language is used. I mean what is Python, Java and C++ is used for at Google. Why would they ...
0
votes
1answer
729 views

What are the external dependencies of a Python executable?

I guess there is a tool called Py2Exe to convert a Python application into an executable file. Since I am also using PyQt4 for GUI apps., what are the external dependencies for such an executable? ...
20
votes
5answers
6k views

Is there any one standard framework for developing Python GUI apps.?

There are so many frameworks for writing GUI application using Python. But is there any one key standard framework? For example we have a bundle of .NET/C# on Visual Studio. I am thinking in other ...
3
votes
1answer
25k views

Qt plugin for Eclipse/PyDev [closed]

I have installed PyDev and want to start with GUI apps. Heard about Qt but how to integrate it with PyDev? Is there any Python IDE that comes bundled with Qt or other GUI frameworks and also Visual ...
1
vote
3answers
3k views

Why is C# ASP.NET generally not regarded as a rapid web development framework?

The terms rapid web development gets associated with Python/Django and ROR. Why is this not the case with C# ASP.NET?
7
votes
2answers
202 views

When profiling a function for time use, what information is desirable?

I'm writing a program similar to Python's timeit module. The idea is to time a function by executing it anywhere from 10 to 100,000 times depending on how long it takes and then report results. I've ...
43
votes
5answers
41k views

Purpose of `return self` from a class method?

I came across something like this in an open-source project. Methods that modify instance attributes return a reference to the instance. What is the purpose of this construct? class Foo(object): ...
3
votes
3answers
356 views

Python - Service, how to get a code review [closed]

I am usually a PHP and Delphi developer and have been getting into Python lately. I am developing an app and would love to get some feedback on the code, there are few things which I would love to ...
5
votes
4answers
1k views

What makes Python more used as an implementation language than the others?

Perl and Python are often compared to each other (let's not forget Ruby), and almost always those discussions will come to the conclusion pretty much anything you can do in one or the other. Without ...
84
votes
6answers
12k views

Why was Python's popularity so sudden? [closed]

Python first appeared in 1991, but it was somewhat unknown until 2004, if the TIOBE rankings quantify anything meaningful. What happened? What caused the interest in this 13 year old language to go ...
-1
votes
3answers
3k views

Is there any way to use Python to replace Flash for in browser animation, gaming, whatever? [closed]

Is there any way to use Python to replace Flash for in browser animation, gaming, webapps, whatever? Pretty straight-forward IMHO. Does anyone know how to do this?
70
votes
5answers
123k views

Is Python Interpreted or Compiled?

This is just a wondering I had while reading about interpreted and compiled languages. Ruby is no doubt an interpreted language since the source code is processed by an interpreter at the point of ...
11
votes
7answers
2k views

Is there anyone who has used Python/Ruby and PHP for a long time and still prefer PHP? [closed]

I am usually fascinated by articles defending PHP and the arguments being used. Quite often authors of these types of articles don't mention what experience they have with other languages. Personally ...
5
votes
2answers
8k views

Python MVC framework for desktop applications

I'm used to program with Python and GTK using pygtk library. I feel like my programs are not well separated according to MVC model. I think following a framework it would help me to design better ...
25
votes
8answers
49k views

Python interview questions [closed]

I am going to interview within two weeks for an internship that would involve Python programming. Can anyone suggest what possible areas should I polish? I am looking for commonly asked stuff in ...
63
votes
3answers
64k views

Why is Python written in C and not in C++? [closed]

In Python's tutorial one can read that Python's original implementation is in C; On the other hand, the Python implementation, written in C, (...) I'm very curious why was Python written in C and ...
3
votes
2answers
164 views

Do system background services affect languages benchmarking?

Today I was looking at some blogs on Ruby and Python. A Python loyalist wrote a few lines of code with a loop to show how Python is faster than Ruby, with a similar code. I also found a blog of a Ruby ...
10
votes
8answers
2k views

How to end my dependency on .NET? [closed]

I have been developing Windows GUI applications since many years and jumped into .NET in early 2005. .NET is a undoubtedly a remarkable platform and I am still using it, but with a variety of ...
11
votes
5answers
1k views

How is the JVM and Java's WORA different from other high level languages?

In the Java world, we often talk about the JVM, and when Java was new it had the supposedly killer feature of "Write Once, Run Anywhere." From the way people talk and write, this seems different from ...
147
votes
24answers
190k views

What are the drawbacks of Python? [closed]

Python seems all the rage these days, and not undeservingly - for it is truly a language with which one almost enjoys being given a new problem to solve. But, as a wise man once said (calling him a ...
7
votes
15answers
4k views

Python and only Python for almost any programming tasks! [closed]

Am I wrong if I think that Python is all I need to master, in order to solve most of the common programming tasks? EDIT I'm not OK with learning new programming languages if they don't teach me new ...
9
votes
3answers
1k views

How is the development of languages like Python and Perl funded? [closed]

The title pretty much gives you the gist of the question, but allow me elaborate a bit nevertheless. Apart from Google's involvement on Python, and Activestate's on Perl development (Strawberry AFAIK ...
15
votes
2answers
13k views

What are hooks? [closed]

I keep coming across this term hooks in various programming articles. However I don't understand what they are, and how can they be used. So I just wanted to know what is the concept of hooks; if ...
3
votes
1answer
456 views

How to approach web app development?

I have been going through Flask and it seems that now I have a decent understanding to go ahead and build a web application. However I want to know how would I approach the problem. For eg: I decide ...
5
votes
6answers
13k views

Why should we use low level languages if a high level one like python can do almost everything? [closed]

I know python is not suitable for things like microcontrolers, make drivers etc, but besides that, you can do everything using python, companys get stuck with speed optimizations for real hard time ...
48
votes
6answers
127k views

How do I learn Python from zero to web development? [closed]

I am looking into learning Python for web development. Assuming I already have some basic web development experience with Java (JSP/Servlets), I'm already familiar with web design (HTML, CSS, JS), ...
52
votes
16answers
49k views

Why such popularity with Python? [closed]

Other than being annoyed at whitespace as syntax, I'm not a hater, I just don't get the fascination with Python. I appreciate the poetry of Perl, and have programmed beautiful web services in bash &...
12
votes
4answers
1k views

Do you think that GAE alone is enough to justify learning Python over Ruby? [closed]

Considering the fact that you don't have to get involved in setting up/buying a server or even buying a domain, do you think that fact alone is enough to choose one over the other? I don't ...