[issue29032] How does the __self__ attribute of method become a class rather a instance?

2016-12-21 Thread woo yoo
woo yoo added the comment: Thanks for your reply. -- ___ Python tracker <http://bugs.python.org/issue29032> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29032] How does the __self__ attribute of method become a class rather a instance?

2016-12-21 Thread woo yoo
woo yoo added the comment: Not a bug,sorry to bother -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue29032> ___ ___ Python-bugs-lis

[issue29032] How does the __self__ attribute of method become a class rather a instance?

2016-12-21 Thread woo yoo
woo yoo added the comment: The quotation section : When an instance method object is created by retrieving a class method object from a class or instance, its __self__ attribute is the class itself, and its __func__ attribute is the function object underlying the class method. The associated

[issue29032] How does the __self__ attribute of method become a class rather a instance?

2016-12-21 Thread woo yoo
New submission from woo yoo: The documentation of instance methods confused me, it classifies methods into two types:the one is retrieved by an instance of a class, the other is created by retrieving a method from a class or instance. According to the description, >When an instance met

[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 <http://bugs.python.org/issue29

[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 <http://bugs.python.org/issue29010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 <http://bugs.python.org/issue29010> ___ ___ Python-bugs-list m

[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 tr

[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 <http://

[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 &l

[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. -

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread woo yoo
woo yoo added the comment: Maybe the last "method's" should be changed into "class instance" -- ___ Python tracker <http://bugs.python.org/issue29005> ___ ___

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread woo yoo
New submission from woo yoo: "In general, calling a method with a list of n arguments is equivalent to calling the corresponding function with an argument list that is created by inserting the method’s object before the first argument." Is above description right? The lin

[issue29000] Not matched behavior within printf style bytes formatting

2016-12-17 Thread woo yoo
woo yoo added the comment: Make a slight change to my code, which becomes `b'%#07x' % 34`, the weird situation appears. -- ___ Python tracker <http://bugs.python.o

[issue29000] Not matched behavior within printf style bytes formatting

2016-12-17 Thread woo yoo
woo yoo added the comment: The link is https://docs.python.org/3.5/library/stdtypes.html#printf-style-bytes-formatting -- ___ Python tracker <http://bugs.python.org/issue29

[issue29000] Not matched behavior within printf style bytes formatting

2016-12-17 Thread woo yoo
New submission from woo yoo: Per the documentation,"The alternate form causes a leading octal specifier ('0o') to be inserted before the first digit", However the actual behavior didn't conform to the principle. Code: >>>b'%#07o' % 34 Output:

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
Changes by woo yoo : -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://bugs.python.org/issue28976> ___ ___ Python-bugs-list

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: I think i understand you now.My english needs to improve.Thanks for your patience. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: In fact, I'm a newcomer to Python. When i have experimented with those description interactively using Python interpreter, i got confused. I don't know how to submit a patch.If the description were changed by me,it would be: >if xis equivalent to >

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: "either all or none of the print() calls are executed",I think the 'none' describes the number of the calls to be executed. -- ___ Python tracker <http://bug

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: According to the original description, "either all or none...",what does 'none' represent? -- ___ Python tracker <http://bug

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
woo yoo added the comment: Code: >>>def f(a, *): >>>print(a) (SyntaxError occurs here) -- ___ Python tracker <http://bugs.

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
Changes by woo yoo : -- resolution: not a bug -> status: closed -> open ___ Python tracker <http://bugs.python.org/issue28976> ___ ___ Python-bugs-list

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: Why the issue was closed? -- ___ Python tracker <http://bugs.python.org/issue28976> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
woo yoo added the comment: Nor the rules in Python-3.6.0 excludes the bare '*' following no parameters. -- ___ Python tracker <http://bugs.python.o

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
woo yoo added the comment: There is a few difference between Python-3.5.2 and Python-3.6.2 concerning the EBNF rules even though the parenthesis bug is fixed. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
woo yoo added the comment: And i find that the current rules of parameter_list includes a bare '*',which is illegal in practice. -- ___ Python tracker <http://bugs.python.o

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
woo yoo added the comment: Just the right parenthesis is redundant, ignore other words. -- ___ Python tracker <http://bugs.python.org/issue28978> ___ ___ Pytho

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
woo yoo added the comment: Here is the link https://docs.python.org/3/reference/compound_stmts.html#function-definitions -- ___ Python tracker <http://bugs.python.org/issue28

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread woo yoo
New submission from woo yoo: Quote the documentation as below: > parameter_list ::= (defparameter ",")* | "*" [parameter] ("," defparameter)* ["," "**" parameter] | "**" parameter

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: Thanks for your attention. -- ___ Python tracker <http://bugs.python.org/issue28976> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: code : >>> if 1<2<3:print(123);print(op);print(opi); Output: 123 Traceback (most recent call last): NameError:name 'op' is not defined The third 'print' call hasn't been executed. -- _

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-15 Thread woo yoo
woo yoo added the comment: code : >>> if 1<2<3:print(123);print(op); Output: 123 Traceback (most recent call last): NameError:... -- ___ Python tracker <http://bugs.pyt

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-14 Thread woo yoo
woo yoo added the comment: Forget to attach the link https://docs.python.org/3/reference/compound_stmts.html#compound-statements -- ___ Python tracker <http://bugs.python.org/issue28

[issue28976] incorrect description that dose not conform to the actual behavior

2016-12-14 Thread woo yoo
New submission from woo yoo: The paragraph that describes the precedence of semicolon encounters a minor error, which said : "Also note that the semicolon binds tighter than the colon in this context, so that in the following example, either all or none of the print() calls are executed:

[issue28955] Not matched behavior of numeric comparison with the documentation

2016-12-12 Thread woo yoo
woo yoo added the comment: Maybe the description should be changed into "all order comparisons of not-a-number and any number will return False" -- ___ Python tracker <http://bugs.python.o

[issue28955] Not matched behavior of numeric comparison with the documentation

2016-12-12 Thread woo yoo
New submission from woo yoo: According to the documentation, which said "Additionally, comparing any number to a not-a-number value will return False. ",the comparison of `float('nan')!= 1`should yield False, while the result is True. Small errors like this in doc

[issue28954] Incorrect EBNF rule of keywords_arguments

2016-12-12 Thread woo yoo
New submission from woo yoo: This is the documented rule, which lacks a comma within the last line. keywords_arguments ::= (keyword_item | "**" expression) ("," keyword_item | "**" expression)* The correct form should be: keywords_

[issue28944] A lack of line 6

2016-12-12 Thread woo yoo
woo yoo added the comment: There is no line 6 between line 7 and line 5. Here is the original documentationhttps://docs.python.org/3/library/stdtypes.html#old-string-formatting -- title: A lack of comma within EBNF rule of keywords_arguments -> A lack of line

[issue28944] A lack of comma within EBNF rule of keywords_arguments

2016-12-12 Thread woo yoo
New submission from woo yoo: This is the documented rule, which lacks a comma within the last line. keywords_arguments ::= (keyword_item | "**" expression) ("," keyword_item | "**" expression)* The correct form should be: keywords_

[issue28916] Not matched behavior of modulo operator % with the description of the documentation

2016-12-08 Thread woo yoo
New submission from woo yoo: Mismatch occurs within the "Notes" section,row 1.Here is the link:https://docs.python.org/3/library/stdtypes.html#old-string-formatting The course of coding shows below: >>>'%#07o' % 1223 Result value is '0o02307',wh

[issue28745] Python 3.5.2 "from ... import" statement is different from official documentation

2016-11-18 Thread woo yoo
woo yoo added the comment: Thanks for your advice. -- nosy: -docs@python, steven.daprano ___ Python tracker <http://bugs.python.org/issue28745> ___ ___ Python-bug

[issue28745] Python 3.5.2 "from ... import" statement is different from official documentation

2016-11-18 Thread woo yoo
woo yoo added the comment: The link associated with the documentation is https://docs.python.org/3/reference/simple_stmts.html#import. My package layout is : --l007 --l009.py My code is : >from l007 import l009 The excution was ok, which was not the case i had expec

[issue28745] Python 3.5.2 "from ... import" statement is different from official documentation

2016-11-18 Thread woo yoo
New submission from woo yoo: I've experiment with the statement,however the result did not match the official description. I created a namespace package named l007, within which submodule named l009 was placed.I typed "from l007 import l009" in the interpreter, the execution w