Skip to main content
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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
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 not deleted user 81282

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.

3 votes

Why do you need "self." in Python to refer to instance variables?

Here are my conclusions based on above answers and reading the Guido's own rambling on this topic: The big idea Functions are the important building blocks in Python (or we should say the only one), …
vivek's user avatar
  • 463
20 votes
3 answers
23k views

Why do you need "self." in Python to refer to instance variables?

That said, I am quite amazed by this approach of Python. … Is it purely a style choice, or is there a reason why Python can't let you omit self the way Java and C++ let you omit this? …
vivek's user avatar
  • 463