[issue14851] Python-2.6.8 install fails due to missing files

2012-05-18 Thread gene
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

[issue43877] Logging Cookbook ambiguity

2021-04-16 Thread Gene Ratzlaff
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

[issue43877] Logging Cookbook ambiguity

2021-04-20 Thread Gene Ratzlaff
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

[issue44264] Add descriptive error message when environment variable not detected

2021-05-29 Thread David Gene
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

[issue40563] Support pathlike objects on dbm/shelve

2021-09-07 Thread Gene Wood
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

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2014-04-13 Thread Gene Wood
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("

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Gene Anderson
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

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Gene Anderson
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

[issue6879] misstatement in example explanation using raise

2009-09-10 Thread Gene Ratzlaff
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

[issue6880] class needs forward reference

2009-09-10 Thread Gene Ratzlaff
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