woo yoo added the comment:
Thanks for your reply.
--
___
Python tracker
<http://bugs.python.org/issue29032>
___
___
Python-bugs-list mailing list
Unsubscribe:
woo yoo added the comment:
Not a bug,sorry to bother
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue29032>
___
___
Python-bugs-lis
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
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
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
woo yoo added the comment:
I agree with you
--
___
Python tracker
<http://bugs.python.org/issue29010>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
woo yoo added the comment:
Code:
>class A(object):
pass
'object' is not in the same scope as 'A'
--
___
Python tracker
<http://
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
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.
-
woo yoo added the comment:
Maybe the last "method's" should be changed into "class instance"
--
___
Python tracker
<http://bugs.python.org/issue29005>
___
___
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
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
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
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:
Changes by woo yoo :
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue28976>
___
___
Python-bugs-list
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
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
>
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
woo yoo added the comment:
According to the original description, "either all or none...",what does 'none'
represent?
--
___
Python tracker
<http://bug
woo yoo added the comment:
Code:
>>>def f(a, *):
>>>print(a)
(SyntaxError occurs here)
--
___
Python tracker
<http://bugs.
Changes by woo yoo :
--
resolution: not a bug ->
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue28976>
___
___
Python-bugs-list
woo yoo added the comment:
Why the issue was closed?
--
___
Python tracker
<http://bugs.python.org/issue28976>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
woo yoo added the comment:
Just the right parenthesis is redundant, ignore other words.
--
___
Python tracker
<http://bugs.python.org/issue28978>
___
___
Pytho
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
New submission from woo yoo:
Quote the documentation as below:
> parameter_list ::= (defparameter ",")*
| "*" [parameter] ("," defparameter)* ["," "**" parameter]
| "**" parameter
woo yoo added the comment:
Thanks for your attention.
--
___
Python tracker
<http://bugs.python.org/issue28976>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
--
_
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
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
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:
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
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
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_
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
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_
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
woo yoo added the comment:
Thanks for your advice.
--
nosy: -docs@python, steven.daprano
___
Python tracker
<http://bugs.python.org/issue28745>
___
___
Python-bug
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
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
44 matches
Mail list logo