+ 1

Please explain what is 'implemented' means

22nd Mar 2020, 4:42 PM
Saurabh Sen
Saurabh Sen - avatar
8 Answers
+ 3
Okay, implementing something usually just means: Writing the actual code. For example you have a description of what a function is supposed to do, and then actually writing the function so that it does its job means implementing it. Now in Python you have magic methods that (mostly) define what certain operators do. 'Implementing __ne__' means writing the code for what happens when you use != with your type. If you do not write the code for this operator, it is 'not implemented'.
22nd Mar 2020, 5:04 PM
HonFu
HonFu - avatar
+ 3
Implementing a method is like making/building a method by writing the steps of an algorithm in code so that it can be executed.
24th Mar 2020, 11:08 AM
Sonic
Sonic - avatar
+ 1
HonFu how ?
22nd Mar 2020, 4:55 PM
Saurabh Sen
Saurabh Sen - avatar
0
Can you give us the context where it was used? I'm asking because you've tagged 'magic-methods'.
22nd Mar 2020, 4:51 PM
HonFu
HonFu - avatar
0
Not clear
22nd Mar 2020, 4:54 PM
Justus
Justus - avatar
0
By using words! 😉 Just tell us more about what you didn't understand. Otherwise we can only look up the word for you in a dictionary and post it here, which would probably not help you.
22nd Mar 2020, 4:56 PM
HonFu
HonFu - avatar
0
--> if __ne__ is not implemented then it return opposite of __eq__ This was written ↑
22nd Mar 2020, 4:58 PM
Saurabh Sen
Saurabh Sen - avatar
0
Implementing means put something into effect. Consider that You have an description of the problem, You solving it by implementing it with any tools You want, such a writing code with programming languages or other software, that will help You get things done.
22nd Mar 2020, 5:11 PM
Vladyslav Semeniuk 🐸
Vladyslav Semeniuk 🐸 - avatar