Question about a function call with multiple arguments

  • #26
11,893
5,550
Yes, it has, but I believe Python is not quite built for the same purpose as java or c++. While learning from online tutorials, I found it is customary to put a reference to the currently called object in a function definition, through the keyword self. I don't remember doing this in java (except maybe in a few cases). I believe Python might be good for scientific computing, but not suitable for application development.
Java has self embedded as the this pointer which is optionally used when a naming conflict occurs between function args and instance attributrs
 
  • #27
11,893
5,550
Java has self embedded as the this pointer which is optionally used when a naming conflict occurs between function args and instance attributrs
For python oo is kind of tacked on to the language hence you need to use self in methods as a placeholder argument but not when you call the method.
 

Related Threads on Question about a function call with multiple arguments

Replies
4
Views
3K
  • Last Post
Replies
2
Views
2K
Replies
2
Views
2K
Replies
0
Views
2K
  • Last Post
Replies
7
Views
3K
Replies
4
Views
37K
Replies
2
Views
2K
Replies
5
Views
22K
Replies
4
Views
9K
Top