New submission from gene :
Hi,
I've downloaded both source versions of Python for Mac 2.6.8 and have unziped
them with Mac GUI or gunzip but all attempts fail due to build not finding
files. First missing file is pyconfig.h which appears to be named
pyconfig.h.in. When I remove the .in
New submission from Gene Ratzlaff :
In the section titled "Logging to a single file from multiple processes"
I am puzzled by the second example, as follows:
The first example has the listener/logger is in a separate >process< and the
listener/logger process is (as I would ant
Gene Ratzlaff added the comment:
Agreed, but only to the limits of the buffer - that's what I was getting at
when I suggested that limitations should be explained.
--
___
Python tracker
<https://bugs.python.org/is
New submission from David Gene :
Using os.environ[KEY] with a non-existent environment variable key only gives a
simple KeyError, which may be fine for a developer to understand, but if a user
of a Python program were to come across it, it may not indicate what they
needed to do to avoid the
Gene Wood added the comment:
@DahlitzFlorian it looks like a PR was submitted August of last year :
https://github.com/python/cpython/pull/21849
--
nosy: +gene_wood
___
Python tracker
<https://bugs.python.org/issue40
Gene Wood added the comment:
One workaround to this is described here :
http://stackoverflow.com/a/4999510/168874
It involves prefixing all of the elements with the namespace like this :
from xml.etree import ElementTree as ET
# build a tree structure
root = ET.Element("
New submission from Gene Anderson:
In the tutorial for Python 3.3 the content for 9.3.4 Method Objects seems to
have an error. In the following lines:
xf = x.f
while True:
print(xf())
... it seems to me that based on the x object's method f(), the command should
be
prin
Gene Anderson added the comment:
I failed to mention that the associated web address for the documentation is:
http://docs.python.org/3.3/tutorial/classes.html#method-objects
--
___
Python tracker
<http://bugs.python.org/issue20
New submission from Gene Ratzlaff :
v2.6.2 Python Tutorial
http://docs.python.org/tutorial/errors.html#raising-exceptions
Section 8. Errors and Exceptions
8.4. Raising Exceptions
It appears that in the example, the original may have been:
raise(NameError('HiThere')) and was then
New submission from Gene Ratzlaff :
http://docs.python.org/tutorial/errors.html#user-defined-exceptions
class mechanism used in 8.5 before classes are explained in chapter 9.
Suggest first use of word "class" be a forward link to "9. Classes":
http://docs.python.org/t
10 matches
Mail list logo