[issue29010] Incorrect description about scope related with inheritance

2021-11-19 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy, newcomer friendly versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue29010] Incorrect description about scope related with inheritance

2016-12-20 Thread woo yoo
woo yoo added the comment: As for me, i prefer the new description, which is clear and easy to understand. -- ___ Python tracker ___ _

[issue29010] Incorrect description about scope related with inheritance

2016-12-20 Thread Brendan Donegan
Brendan Donegan added the comment: Worth putting them side by side I think: "The name BaseClassName must be defined in a scope containing the derived class definition" vs. "BaseClassName must be defined in a namespace accessible from the scope containing the derived class definition" --

[issue29010] Incorrect description about scope related with inheritance

2016-12-20 Thread R. David Murray
R. David Murray added the comment: Would it make it clearer if we said "BaseClassName must be defined in a namespace accessible from the scope containing the dervied class definition" ? -- ___ Python tracker _

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: I agree with you -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread Brendan Donegan
Brendan Donegan added the comment: IMO there's no actual bug in Python. Perhaps documentation can be clarified in a short simple way. I would reiterate the point that restating facts of the language all over the documentation is not a great idea, but maybe here the benefits outweigh the drawbacks

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: If i was wrong about this issue, please tell me. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: The previous description about scope classify it into 3 types explicitly, which means the scope containing the current module's global names is not same as the scope containing built-in names. -- ___ Python tracker

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread R. David Murray
R. David Murray added the comment: It is part of the global scope, which contains all other scopes. (I'm not 100% sure I'm comfortable with that language, but it doesn't seem obviously wrong.) -- nosy: +r.david.murray ___ Python tracker

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread woo yoo
woo yoo added the comment: Code: >class A(object): pass 'object' is not in the same scope as 'A' -- ___ Python tracker ___ ___ Py

[issue29010] Incorrect description about scope related with inheritance

2016-12-19 Thread Brendan Donegan
Brendan Donegan added the comment: Hi. Can you please provide a small code snippet illustrating where this diverges from the actual behaviour? -- nosy: +brendan-donegan ___ Python tracker _

[issue29010] Incorrect description about scope related with inheritance

2016-12-18 Thread woo yoo
woo yoo added the comment: The associated link is https://docs.python.org/3.6/tutorial/classes.html#inheritance -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue29010] Incorrect description about scope related with inheritance

2016-12-18 Thread woo yoo
New submission from woo yoo: The current description is "The name BaseClassName must be defined in a scope containing the derived class definition", which did not conform to the actual situation ,e.g. the base class object is not in the same scope as the derived class. -- messages: 28