New submission from Alan Isaac:
Section 4.6 of the tutorial introduces function definition:
http://docs.python.org/3/tutorial/controlflow.html#defining-functions
The first example defines a function that *prints* a Fibonacci series.
A basic mistake made by students new to programming is to use
New submission from Alan Isaac:
The need for weighted random choices is so common that it is addressed as a
"common task" in the docs:
http://docs.python.org/dev/library/random.html
This enhancement request is to add an optional argument to random.choice, which
must be a seque
Alan Isaac added the comment:
Bear with my confusion about your response. Are you saying that CPython
documentation bugs cannot be submitted here, or that this does not constitute a
CPython documentation bug? I assume the latter. But then, can you tell me
where to find the correct CPython
New submission from Alan Isaac :
In PEP 227 missing text is marked with XXX. Most of this is just calls for
examples and elaboration. However under the Implementation section XXX marks a
substantive question about the documentation.
Fixing this may be low priority, but a tracker search
Alan Isaac added the comment:
FYI a patch has been committed that should fix this. For discussion see
http://bugs.python.org/issue6844
--
nosy: +aisaac
___
Python tracker
<http://bugs.python.org/issue5
Alan Isaac added the comment:
I hope it is not too annoying to link these ...
I asked thhis of Jean-Paul but now I'll ask it of George.
Since you are working on this, can you see if
http://bugs.python.org/issue6108
is related or in any case can be fixed at the same time?
T
Alan Isaac added the comment:
Since you are working on this, can you see if
http://bugs.python.org/issue6108
is related or in any case can be fixed at the same time?
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue6
Alan Isaac added the comment:
> The 'message' attribute itself is deprecated
> as it didn't exist prior to being introduced in 2.5.
That seems to me to be the wrong way to phrase it, and indeed that kind
of phrasing implies the current bug. For example, it leads to th
New submission from Alan Isaac :
In Python 2.6 if I subclass Exception and intialize my instances with a
`message` attribute, I get a DeprecationError via BaseException.
Of course there is no problem in Py3, because adding a `message`
attribute to instances of a subclass is in fact **not** a