« first day (1750 days earlier)      last day (1828 days later) » 

09:48
1 message moved from Python
Guys, we have builtin, global, nonlocal, and local scope. Please can you tell me - suppose we have multiple level nested fucntion, then, does "non local" for a function A means the scope that is in the function that is located immediately outside the function A?
10:00
1 message moved from Python
10:32
Does hashable mean that everytime the object is hashed, it must return the same id?
10:44
1 message moved from Python
 
3 hours later…
14:03
Hi all,
Can anyone suggest me the logic for: stackoverflow.com/questions/59175337/…
2 messages moved from Python
 
1 hour later…
15:14
Right above this line docs.python.org/3/tutorial/classes.html#inheritance, it says: "we’ll find some good reasons why a method would want to reference its own class.". I cant a reson can someome help me understand
Does author mean to say that child class method wants to call the parent class method to use the parent method. Have I understood it right?
@variable the entire quote contains "... in the next section we’ll find...". Did you actually look at the next section?
@variable so the use case of directly accessing the BaseClassName to get its method does not seem like a reason to you?
@MisterMiyagi ofcourse it does but it said reasons so was wondering what else
@Kevin separate question - can you tell me whether the concept of mro is only applicable when super is used? What else is the use case of mro please?
@variable the reason is that one needs to do something with the class. That may be accessing class attributes, instantiating the class, checking other values against the class, ...
15:28
@Kevin by the way, on that page they have given a link that points to an entire article in mro
basically anything you can do with a class, an instance might want to do with its class.
10 messages moved from Python

« first day (1750 days earlier)      last day (1828 days later) »