Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 15128

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.

20
votes
"Explicit is better than implicit" is only one of the maxims in Python's design philosophy. "Simple is better than complex" is there too. And, although it's not in the Zen of Python, "We're all …
answered Jul 11 '11 by Daniel Roseman
1
vote
One of the most important concepts in Python is that of namespaces (do import this at the prompt some time to find out what the others are). I know that namespaces exist in other languages too, but … in Python you only have access to the current namespace, which is what's defined in the current module. To get access to other identifiers, you need to import them into the current namespace: either by importing their containing module (the import foo syntax) or the names themselves (from foo import bar). …
answered Jan 10 '12 by Daniel Roseman
4
votes
Generic functions should not go into classes. Python is not Java, it does not require pure functions to live inside classes. Only use classes if you want to store state of some kind. Put the …
answered Jan 8 '15 by Daniel Roseman
7
votes
That's an unusual viewpoint. The consenting adults thing is a very small part of Python's philosophy. It certainly doesn't "revolve" around that. It's not even part of the "Zen of Python" that you … get if you do import this in the interpreter. Other things, like "explicit is better than implicit", "Simple is better than complex", and "Readability counts" are much much more central to Python, and …
answered Dec 13 '11 by Daniel Roseman
9
votes
The one overriding principle: getting humans to write XML is evil.
answered Jul 8 '11 by Daniel Roseman