[issue27504] Missing assertion methods in unittest documentation

2016-07-12 Thread Mitchell Model
Mitchell Model added the comment: My strong apology. I missed a section of the documentation. It didn't seem possible that they weren't there, but I made a mistake when I checked for them. Sorry. > On Jul 12, 2016, at 9:15 PM, R. David Murray wrote: > > > R. David Mu

[issue27504] Missing assertion methods in unittest documentation

2016-07-12 Thread Mitchell Model
New submission from Mitchell Model: In looking at the source for unittest.TestCase I was very surprised to see quite a few assertion methods that are not included in the module documentation. Every available assertion method should be included in the library documentation. Users should not

[issue20103] Documentation of itertools.accumulate is confused

2014-01-01 Thread Mitchell Model
New submission from Mitchell Model: The documentation of itertools.accumulate (10.1) starts out with 2 misleading sentences: "Make an iterator that returns accumulated sums. Elements may be any addable type..." It then goes on to show examples of using the func parameter added in 3.

[issue20077] Format of TypeError differs between comparison and arithmetic operators

2014-01-01 Thread Mitchell Model
Mitchell Model added the comment: Patch looks good to me. I like the choice to drop the parens. This is my first time reviewing a change; did I go through the right mechanics? I clicked Review on the issue's patch, looked at the diff, and a published a message similar to this one.

[issue20091] An index entery for __main__ in "30.5 runpy" is missing

2013-12-28 Thread Mitchell Model
New submission from Mitchell Model: An index entry should be added for __main__ as it appears in the documentation of runpy (30.5 in 3.3, 31.5 in 3.4). -- assignee: docs@python components: Documentation messages: 207030 nosy: MLModel, docs@python priority: normal severity: normal

[issue20090] slight ambiguity in README.txt instructions for building docs

2013-12-28 Thread Mitchell Model
New submission from Mitchell Model: I tried to build the docs for v3.4.0b1 following the instructions in the Doc/README.txt. My default python is v3.3. I got the following error message: "Error: Sphinx needs to be executed with Python 2.4 or newer (not 3.0 though)." I wondered what

[issue20077] Format of TypeError differs between comparison and arithmetic operators

2013-12-26 Thread Mitchell Model
New submission from Mitchell Model: [ctypes correct component for this?] The TypeError messages given for incompatible types in comparison operators differ from incompatible types in arithmetic operators. The arithmetic operator error messages show the names of the types in single quotes

[issue20060] float() and int() TypeError messages differ

2013-12-24 Thread Mitchell Model
New submission from Mitchell Model: [Sorry if ctypes is wrong component -- don't know which to use.] Given an invalid type, int()'s TypeError message includes the name of the invalid type, but float()'s doesn't. (Nor does complex()'s.) All three should give analogou

[issue6057] sqlite3 error classes should be documented

2013-01-29 Thread Mitchell Model
Mitchell Model added the comment: I still think the Exception class hierarchy should be described in the sqlite3 module documentation. Someone should decide one way or another and close this issue. -- ___ Python tracker <http://bugs.python.

[issue8491] Need readline command and keybinding information

2013-01-29 Thread Mitchell Model
Mitchell Model added the comment: Ping. I just noticed that this is still unresolved in the Python 3.3 docs. This should be closed, with or without my suggested change. -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue8

[issue11337] Nothing refers to footnote [1] on page "6. Simple Statements" in Language Reference

2011-02-26 Thread Mitchell Model
New submission from Mitchell Model : I can't find a reference to footnote [1] on page "6. Simple Statements" in Language Reference. Either the footnote should be removed or a [1] link to it should appear on the page. -- assignee: docs@python components: Documentation m

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Mitchell Model
Mitchell Model added the comment: Thanks for letting me know (and with a personalized message, yet!). I wasn't paying attention -- i verified that the problem exists in 2.7 and 3.1 and I just dragged 3.1 down to 2.6. Although I've been working furiously in Python for the past six

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Mitchell Model
Mitchell Model added the comment: I can see where that does make it tricky. (I also tried reading the plist after opening the file as binary, but no luck.) The problem here, of course, is that the only reason for the existence of this library is to read Apple's plist files, howeve

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Mitchell Model
New submission from Mitchell Model : plistlib rejects control characters found in XML plists that Apple's 'plutil lint' accepts. I have attached my Terminal preferences as an example. (plistlib accepts the contents of the default Terminal preferences file) -- assignee:

[issue8491] Need readline command and keybinding information

2010-08-15 Thread Mitchell Model
Mitchell Model added the comment: On Aug 5, 2010, at 3:48 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > Can you suggest a specific link and a specific location where to add it? I would add a sentence to the first paragraph of the readline doc:

[issue9562] Slightly misleading wording in documentation of dict.update

2010-08-10 Thread Mitchell Model
New submission from Mitchell Model : The documentation of dict.update says that it "accepts either another dictionary object or an iterable of key/value pairs (as a tuple or other iterable of length two)" The parenthesized phrase is slightly misleading in that it could be inte

[issue8492] Addition to readline module to get dictionary of keystrokes and commands

2010-04-21 Thread Mitchell Model
New submission from Mitchell Model : Requesting a function to be added to the readline module that produces a dictionary of the current keystroke bindings Also, one to write it to a file in readline init file format. This would be a big help for people interested in customizing the behavior

[issue8491] Need readline command and keybinding information

2010-04-21 Thread Mitchell Model
New submission from Mitchell Model : The documentation of the readline module refers to readline initialization files, but does not give any information about their format or the available commands. I realize that this is a standard part of environments that support readline, not anything

[issue8172] Documentation of Property needs example

2010-03-18 Thread Mitchell Model
New submission from Mitchell Model : Strangely, the extensive documentation of the property function in the "Built-in Functions" of the documentation has no example of the use of a property. Readers unfamiliar with properties should be told that obj.x invokes the getter, obj.x

[issue8077] cgi handling of POSTed files is broken

2010-03-05 Thread Mitchell Model
New submission from Mitchell Model : I am reluctant to post this because (a) I might have made some dumb mistake in my code, simple as it is, and (b) the problem might be well-known or even hopeless because the cgi module may not be WSGI compliant, but if this isn't going to be fixed th

[issue7781] interactive pstats broken

2010-01-25 Thread Mitchell Model
New submission from Mitchell Model : I created a profile file, started up python3 -m pstats myfilename, did strip, then "stats 10" and got: stats 10 Mon Jan 25 17:58:39 2010cd.profile 17529566 function calls (17528644 primitive calls) in 88.626 CPU seconds Trace

[issue4440] "sort" command doesn't work in pstats if run interactively

2010-01-25 Thread Mitchell Model
Mitchell Model added the comment: Still true in 3.1 -- nosy: +MLModel versions: +Python 3.1 -Python 3.0 ___ Python tracker <http://bugs.python.org/issue4

[issue7489] OS X binary installer for 3.1.1 missing from http://www.python.org/download/

2009-12-12 Thread Mitchell Model
New submission from Mitchell Model : Is there some reason the OS X installer is missing from http://www.python.org/download/ but present on http://www.python.org/download/releases/3.1.1/? Seems it should be in both places. -- components: None messages: 96317 nosy: MLModel severity

[issue7488] Mac/README continues to refer to 2.6, not 3

2009-12-12 Thread Mitchell Model
New submission from Mitchell Model : The file Mac/README in the Subversion source continues to refer to 2.6, not the appropriate version of 3. -- components: Build messages: 96316 nosy: MLModel severity: normal status: open title: Mac/README continues to refer to 2.6, not 3 versions

[issue7226] IDLE right-clicks don't work on Mac OS 10.5

2009-10-27 Thread Mitchell Model
New submission from Mitchell Model : I'm sure this has been reported before, by I can't find it. Right button clicks do nothing on Mac OS X -- they don't go to the line of a traceback, and in debug mode they don't pop up the breakpoint menu. -- assignee: ronaldousso

[issue7007] Tiny inconsistency in the orthography of "url encoded" in the doc of urllib.parse

2009-09-27 Thread Mitchell Model
New submission from Mitchell Model : The documentation of urllib.parse contains: URL encoded a “url-encoded” string I am not sure what the official usage is, either in Python or more generally. Actually, in formal W3C documents the term used is percent- encoding (with the hyphen, even

[issue7000] optional second argument of string.keywords not documented

2009-09-25 Thread Mitchell Model
New submission from Mitchell Model : string.capwords has an optional second argument, sep, which is not documented -- assignee: georg.brandl components: Documentation messages: 93139 nosy: MLModel, georg.brandl severity: normal status: open title: optional second argument of

[issue6936] Import needed to quit Python?

2009-09-17 Thread Mitchell Model
New submission from Mitchell Model : Section 2.1 of the tutorial describes using import sys; sys.exit() if ^D or ^Z doesn't work. However, both quit() and exit() work, as documented in the "Built-in Constants" section of the Library documentation. Is there something about them

[issue6935] Version updates needed in tutorial

2009-09-17 Thread Mitchell Model
New submission from Mitchell Model : Footnote 1 in section 2.1 of the Tutorial and the example of invoking Python in the middle of the page need their version number upped to 3.2 in both the invocation and the greeting. The same page in the 3.1 documentation should have the 'a' remove

[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Mitchell Model
Mitchell Model added the comment: No problem with the None's -- I see your point about that. Just that maybe the alias example should point out that the Nones will be printed so people won't be surprised and try to figure out what's wrong. --- Mitchell On Sep 16, 2

[issue6910] 1-char typo in language reference doc of import

2009-09-14 Thread Mitchell Model
New submission from Mitchell Model : Just before 6.11.1 of the Language Reference: "Attempting to use it in class for function definitions" should be "or" not "for" -- assignee: georg.brandl components: Documentation messages: 92614 nosy: MLModel, georg.

[issue6903] pdb - print in for iteration prints None after printing

2009-09-13 Thread Mitchell Model
New submission from Mitchell Model : Near the bottom of the library documentation for pdb there is an example of a very useful alias: alias pi for k in %1.__dict__.keys(): print("%1.",k,"=",%1.__dict__[k]) It turns out that doing print in a for loop in pdb results in Non

[issue6892] optparser example in optparse documentation is broken

2009-09-11 Thread Mitchell Model
Mitchell Model added the comment: There are other places on the same page with weird trailing commas that should be removed. I think they all follow right parentheses. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6892] optparser example in optparse documentation is broken

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : The help example in the middle of the optparse library documentation is broken. The code reads: parser = OptionParser() parser.add_option("-h", "--help", action="help"), parser.add_option("-v", action="store_true

[issue6888] pdb alias command with no arguments is broken

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : Typing just alias in pdb doesn't work. Because dict.keys() now returns a dict_keys object instead of a list the line keys.sort() in Pdb.do_alias breaks because dict_keys doesn't have a sort method. -- components: Library (Lib

[issue6887] executables in lib use /usr/bin/env python, not python3

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : Some of the executables in lib begin with the line: #! /usr/bin/env python Shouldn't that be python3? -- components: Library (Lib) messages: 92518 nosy: MLModel severity: normal status: open title: executables in lib use /usr/bin/env python

[issue6886] cgi.py runs python, not python3

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : The file cgi.py in the lib directory is an executable beginning with the line: #! /usr/local/bin/python Shouldn't that be python3? -- components: Library (Lib) messages: 92517 nosy: MLModel severity: normal status: open title: cgi.py runs p

[issue6885] pdb documentation shows running as script using "python" not "python3"

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : The library documentation page for pdb shows running pdb as a script using the command python -m pdb Shouldn't that be python3 -m pdb ? -- assignee: georg.brandl components: Documentation messages: 92515 nosy: MLModel, georg.b

[issue6805] Should be URL for documentation of current release of Python 3 (without version)

2009-08-29 Thread Mitchell Model
New submission from Mitchell Model : There should be a standard URL on the web site to reach the documentation of the current stable release of Python 3. http://docs.python.org leads to the documentation for Python 2. I can get to Python 3.1 documentation, but I have to specify 3.1 in the URL

[issue6679] obsolete paragraph in re doc for re.sub

2009-08-10 Thread Mitchell Model
New submission from Mitchell Model : The documentation of re.sub states: "The pattern may be a string or an RE object; if you need to specify regular expression flags, you must use a RE object, or use embedded modifiers in a pattern; for example, sub("(?i)b+", "x",

[issue6487] Some index entries appear in black

2009-07-16 Thread Mitchell Model
Mitchell Model added the comment: doh. sorry. I was in a reading mode, not a "using" mode, and wasn't thinking of the entries as links, though of course I use them that way all the time. The pages just seemed oddly sprinkled with black items. All I said is that I couldn

[issue6489] Documentation of ElementTree.Element.getiterator implies element will always be included

2009-07-14 Thread Mitchell Model
New submission from Mitchell Model : Documentation of ElementTree.Element.getiterator implies element will always be included, but it is only included if it matches. (It says "creates a tree iterator with the current element as the root" and also says, ambiguously, "iterates ov

[issue6488] ElementTree documentation refers to "path" with no explanation, and inconsistently

2009-07-14 Thread Mitchell Model
New submission from Mitchell Model : The documentation of ElementTree mentions "path" in describing the arguments to certain methods. However, "path" is never defined. I realize that a "path" is (at least a partial implementation of) an XPath, but there's noth

[issue6487] Some index entries appear in black

2009-07-14 Thread Mitchell Model
New submission from Mitchell Model : Some index entries appear in black. I think this happens only with top-level entries. I can't find any pattern to which ones are in black, so it doesn't look like black has any actual significance. The C general index page is rich wit

[issue6486] Library doc introduction strangely points to "Built-in Objects" as a starting point

2009-07-14 Thread Mitchell Model
New submission from Mitchell Model : At the end of the introduction page of the library documentation there is a strange suggestion to begin with "Built-in Objects" as a starting point. The "Built-in Objects" page consists of two paragraphs that will surely mystify people ne

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-07-12 Thread Mitchell Model
New submission from Mitchell Model : I can't quite sort this out, because it's difficult to see what is intended. The documentation of xml.etree.ElementTree (19.11 in the Library doc) uses terms like "iterator", "tree iterator", "iterable", "list&quo

[issue6385] two lines of typographical inconsistency in doc of exception class hierarchy

2009-06-29 Thread Mitchell Model
New submission from Mitchell Model : In the documentation of the built-in exception class hierarhcy in the library documentation WindowsError (Windows) and VMSError (VMS) are not in the same color as the rest of the exception names. -- messages: 89905 nosy: MLModel severity: normal

[issue6384] Permalink to built-in exception class hierarchy documentation

2009-06-29 Thread Mitchell Model
New submission from Mitchell Model : I think it would be useful to have a permalink to the built-in exception class hierarchy at the end of the library exceptions documentation. -- assignee: georg.brandl components: Documentation messages: 89904 nosy: MLModel, georg.brandl severity

[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Mitchell Model
Mitchell Model added the comment: Also, while you're at it I think the example should show a call to feed since HTMLParser is unusual in not taking a contents argument when it is created. Nothing wrong with the design, and it is clearly stated at the beginning, but I like examples

[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Mitchell Model
New submission from Mitchell Model : Change the print statements in the example at the bottom of the documentation for HTMLParser to function calls. -- assignee: georg.brandl components: Documentation messages: 89755 nosy: MLModel, georg.brandl severity: normal status: open title

[issue6235] \d missing from effects of re.ASCII flag

2009-06-07 Thread Mitchell Model
New submission from Mitchell Model : In the documentation of the re module the ASCII flag is described as "Make \w, \W, \b, \B, \s and \S perform ASCII-only matching instead of full Unicode matching." This should also include \d and \D. -- assignee: georg.brandl

[issue6179] Documentation of for statement in Reference says that range() returns a list

2009-06-02 Thread Mitchell Model
New submission from Mitchell Model : The documentation of the for statement in Section 7 of the Python 3 Reference states "range(3) returns the list [0, 1, 2]". Since range() no longer returns a list, shouldn't this statement be made more precise? (since this is the referen

[issue6125] 2to3 mishandles "from module_name import" when module_name includes an underscore

2009-05-27 Thread Mitchell Model
Mitchell Model added the comment: I apologize. This example evolved from my attempt to simplify things from the actual code, and I oversimplified to the point where I misread the 2to3 results. I thought there was a space after the period for the modules without the underscores in their name but

[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import

2009-05-27 Thread Mitchell Model
Mitchell Model added the comment: Thanks. I sure couldn't find a way! I encountered this trying to convert someone else's code. There is a main directory and a subdirectory, both with __init__.py files. The files in the main directory import each other just by "import oth

[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import

2009-05-27 Thread Mitchell Model
Mitchell Model added the comment: Yes, I meant to mention that: the directory sub does contain an __init__.py with "__all__ = ['s']". I'm attaching a zip of the test package pkg that contains the sub-package sub. It wasn't clear to me what "import sub.s"

[issue6129] 2to3 does not convert imports of the form 'import sub.mod' to relative import

2009-05-27 Thread Mitchell Model
New submission from Mitchell Model : 2to3 changes "import m" to "from . import m" but it doesn't change "import sub.s". The directory q.py is in has a file m.py and a subdirectory sub. The subdirectory sub has a file s.py. File q.py contains two lines: im

[issue6125] 2to3 mishandles "from module_name import" when module_name includes an underscore

2009-05-27 Thread Mitchell Model
New submission from Mitchell Model : 2to3 -f import l.py --- l.py (original) File p.py (the four modules exist in the same directory as p.py): from mod_a import a from modb import b from mod_c import * from modd import * % 2to3 -f import p.py +++ p.py (refactored) @@ -1,5 +1,5 @@ -from mod_a

[issue6057] sqlite3 error classes should be documented

2009-05-21 Thread Mitchell Model
Mitchell Model added the comment: Thanks for the informatiion about the exception classes documented in the PEP. I didn't mean to suggest that the information wasn't available. (For that matter, I was able to extract it for my purposes by looking at the .c source.) I've been

[issue6057] sqlite3 error classes should be documented

2009-05-18 Thread Mitchell Model
New submission from Mitchell Model : I can't find any documentation of the exception classes defined in the sqlite3 module. There are quite a few, and some inheritance. The examples in the sqlite3 module documentation have a few exception clauses, but the errors they catch are not explaine

[issue6055] References to "pysqlite" in documentation of sqlite3 should be changed.

2009-05-18 Thread Mitchell Model
Mitchell Model added the comment: I see that the _sqlite .h and .c files, and the sqlite3/dbapi2.py file, all use "pysqlite" instead of "sqlite3" internally. Should that be changed too, or is there just no point? My main concern is that people relatively new to Python who

[issue6055] References to "pysqlite" in documentation of sqlite3 should be changed.

2009-05-18 Thread Mitchell Model
New submission from Mitchell Model : Why are there references to "pysqlite" in the documentation and examples for the sqlite3 module. Was sqlite3 derived from the earlier pysqlite module? Seems to me that all the references to "pysqlite" should read "sqlite3&quo

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-17 Thread Mitchell Model
Mitchell Model added the comment: No, I mean dbm.open. The third paragraph of its documentation says "'c' to create the database if it doesn’t exist, or 'n', which will always create a new empty database". This could easily be read as opening the database just

[issue5953] Add to "whats new": range(n) != range(n)

2009-05-14 Thread Mitchell Model
Mitchell Model added the comment: Ah. I see. I hadn't realized that. OK, I see how all the pieces fit together now. Thanks for all the explanations. They'll help me understand better what kinds of comments to make on the documentation. -- -- --

[issue5953] Add to "whats new": range(n) != range(n)

2009-05-14 Thread Mitchell Model
Mitchell Model added the comment: Sounds right. (1) I was raising the issue in case either the behavior was unintended or the documentation should mention it; (2) I realize that comparing ranges is strange; (3) I understand that range works in 3 the way xrange worked in 2, and that the

[issue5953] Add to "whats new": range(n) != range(n)

2009-05-09 Thread Mitchell Model
Mitchell Model added the comment: Sorry -- I did notice in the copies sent to me of my replies to bugs.python.org that there was HTML, but I can't figure out why. I didn't use any style text in the message nor in my signature. I thought my email program only sent HTML when ther

[issue5953] Add to "whats new": range(n) != range(n)

2009-05-08 Thread Mitchell Model
Mitchell Model added the comment: Yes, that's why I was surprised. It's rare (isn't it?) to have str(a) == str(b) but a != b. a not is b, sure, but a != b? Note also that list(range(n)) == list(range(n)). If the lists are equal and the strings are equal it's hard to

[issue5957] Possible mistake regarding writeback in documentation of shelve.open()

2009-05-08 Thread Mitchell Model
Mitchell Model added the comment: >http://bugs.python.org/file13925/issue5957.doc.patch I just spent some time attempting a rewrite, and while I liked what I ended up with it wasn't all that different from the patch. I'm happy with the patch. -- -- --- Mitchell ---

[issue5958] Typo in documentation of shelve.sync

2009-05-08 Thread Mitchell Model
Mitchell Model added the comment: Sorry. Careless again. -- -- --- Mitchell -- Added file: http://bugs.python.org/file13924/unnamed ___ Python tracker <http://bugs.python.org/issue5

[issue5957] Possible mistake regarding writeback in documentation of shelve.open()

2009-05-07 Thread Mitchell Model
Mitchell Model added the comment: OK, I've figured out from the comments in the example later on in the shelf documentation what the paragraph is supposed to mean. I still think it should be stated clearly. The distinction to be made is that modifications to the dictionary immediately c

[issue5958] Typo in documentation of shelve.sync

2009-05-07 Thread Mitchell Model
New submission from Mitchell Model : In the documentation of shelve.sync, 'shelf' is mispelled 'Shelf' -- both the word and case are wrong. -- assignee: georg.brandl components: Documentation messages: 87382 nosy: MLModel, georg.brandl severity: normal status:

[issue5957] Possible mistake regarding writeback in documentation of shelve.open()

2009-05-07 Thread Mitchell Model
New submission from Mitchell Model : The documentation of shelve.open() states (paragraph 3) that "By default, mutations to persistent-dictionary mutable entries are not automatically written back." It then goes on to describe what happens if the writeback parameter is True, whic

[issue5953] Add to "whats new": range(n) != range(n)

2009-05-06 Thread Mitchell Model
New submission from Mitchell Model : I just discovered to my (deep) surprise that range(n) != range(n) I think that's worth including in the what's new document. I realize that the document essentially says that in python 3 range behaves the way xrange did in python 2 and t

[issue5937] Problems with dbm documentation

2009-05-05 Thread Mitchell Model
Mitchell Model added the comment: And, checking the methods of dbm.ndbm, I find get() and setdefault() but nothing like iterkeys() or iteritems(), just keys(). I think it might also be worth pointing out that a particular variation of dbm may be chosen to create a database file by calling the

[issue5937] Problems with dbm documentation

2009-05-05 Thread Mitchell Model
Mitchell Model added the comment: Further confusion: dbm.dumb._Database objects DO support items(), DO NOT support iteritems(), and DO support iterkeys() My previous comments referred to the general dbm documentation and the specifics of dbm.gnu. I haven't checked any of this agains

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-05 Thread Mitchell Model
New submission from Mitchell Model : It isn't clear from the explanation of dbm.open's flag values at the beginning of the dbm documentation page whether 'c' and 'n' open the database just for writing or for reading and writing. I'm sure it's obvious to a

[issue5937] Problems with dbm documentation

2009-05-04 Thread Mitchell Model
New submission from Mitchell Model : There are some problems with the dbm documentation. In the opening section: 1. The comment before the iteration example says that .values() works, but the method is not defined. 2. The statement in the paragraph after the documentation of dbm.open() says

[issue5925] Odd formatting differences of keywords in reference

2009-05-04 Thread Mitchell Model
New submission from Mitchell Model : In the section at reference/lexical_analysis.html#keywords of the HTML documentation some of the keywords are formatted differently from the majority. In the HTML markup most of the keywords have CSS class 'k', but others have 'n', 

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-02 Thread Mitchell Model
Mitchell Model added the comment: OK -- -- --- Mitchell -- Added file: http://bugs.python.org/file13583/unnamed ___ Python tracker <http://bugs.python.org/issue5658> ___ <!-- blockquote, d

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-02 Thread Mitchell Model
Mitchell Model added the comment: It strikes me as an inconsistency because I wouldn't expect the build process to differ from Python 3.0 to 3.1 except for fixing bugs. A developer, or someone trying to keep up with the most recent versions, who had been successfiully making the html d

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-01 Thread Mitchell Model
Mitchell Model added the comment: OK, makes sense. Just out of curiosity where does a user find that information? a developer? There is still an inconsistency between the Makefiles in the two versions. That seems dangerous. -- -- --- Mitchell -- title: make html in doc

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-01 Thread Mitchell Model
New submission from Mitchell Model : Mac OSX, py3k 70991 cd doc; make html fails due to an old style except clause in Doc/tools/sphinx/__init__.py The make works in release30-maint. The difference is that the generated doc/Makefile in release30-maint assigns python2.5 to PYTHON, but the

[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-01 Thread Mitchell Model
New submission from Mitchell Model : The documentation of urlparse in Python2 and urllib.urlparse in Python3 refers to three RFC's, the last of which (RFC 2396) says that it supersedes the other two and, in fact, clicking on the links to the other two doesn't work; the link and d

[issue5601] webbrowser doesn't just open browsers

2009-04-01 Thread Mitchell Model
Mitchell Model added the comment: Never mind about the garbage -- I was looking at weird HTML in the copy of the message I received but it didn't make it into the entry on this page. I should have looked first. -- -- --- Mitchell -- Added file: http://bugs.pytho

[issue5601] webbrowser doesn't just open browsers

2009-03-31 Thread Mitchell Model
Mitchell Model added the comment: whoops Sorry for the garbage in the previous message. -- -- --- Mitchell -- Added file: http://bugs.python.org/file13533/unnamed ___ Python tracker <http://bugs.python.org/issue5

[issue5601] webbrowser doesn't just open browsers

2009-03-31 Thread Mitchell Model
Mitchell Model added the comment: The problem is not so much that I think people should use it for file URLs, it's that the behavior when they do can be quite confusing. Perhaps a note that webbrowser is not meant for file URLs and that it's behavior is undefine

[issue5603] Garbled sentence in documentation of urllib.request.urlopen

2009-03-29 Thread Mitchell Model
New submission from Mitchell Model : The middle sentence of the last paragraph of the documentation of urllib.request.urlopen is garbled, reading: "The urlopen function from the previous version, Python 2.6 and earlier, of the module urllib has been discontinued as urlopen can return

[issue5602] Slight punctuation problem in documentation of urllib.request.urlopen

2009-03-29 Thread Mitchell Model
New submission from Mitchell Model : In the documentation of the urllib.request module, the function urllib.request.urlretrieve is shown with parameters: (url[, data][, timeout]) Shouldn't the right bracket after 'data' be after 'timeout'? -- assignee

[issue5601] webbrowser doesn't just open browsers

2009-03-29 Thread Mitchell Model
New submission from Mitchell Model : There is a problem with the documentation of the webbrowser module: opening a URL doesn't necessarily open it in a browser. The documentation of the open function and method should say that the URL is opened in whatever application the system chooses

[issue5600] Slight inaccuracy in webbrowser documentation

2009-03-29 Thread Mitchell Model
New submission from Mitchell Model : The sentence introducing "Browser Controller Objects" in the documentation of the webbrowser module says that the methods parallel two of the module's convenience functions; it's really three. -- assignee: georg.brandl compo

[issue5519] Deletion of some statements in re documentation

2009-03-19 Thread Mitchell Model
New submission from Mitchell Model : The second sentence of the re module documentation -- " The re module is always available." seems extraneous at best. What is it saying? What modules are not always available? Do other "always available" modules say that they are alw

[issue5513] "What's New" should say VERY CLEARLY that the type file is gone

2009-03-19 Thread Mitchell Model
Mitchell Model added the comment: At 11:03 AM -0400 3/19/09, Mitchell L Model wrote: >>Martin v. Löwis added the comment: >> >>> The Python 3 "What's New" should SCREAM that the type file is gone >> >>I don't think the documentation should

[issue5513] "What's New" should say VERY CLEARLY that the type file is gone

2009-03-18 Thread Mitchell Model
New submission from Mitchell Model : MAIN POINT The Python 3 "What's New" should SCREAM that the type file is gone, not just that people should use the function open() to open files, since that has been a recommendation for quite a while. EXPLANATION In multiple readings

[issue5469] Reference paragraph about the constructs that bind names needs updating for Python 3

2009-03-10 Thread Mitchell Model
New submission from Mitchell Model : In the Python Language Reference, in the Naming and binding section of Execution Model, there is a paragraph that states: The following constructs bind names: formal parameters to functions, import statements, class and function definitions (these bind the

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
Mitchell Model added the comment: Whoops! It didn't say "the executable that gets built is called python.exe", but it is in the build section, so taking things literally, yes, the executable is called python.exe and I maybe should have taken it at its word. There's a s

[issue5427] OSX framework make error: ld: duplicate symbol _PyExc_BlockingIOError in libpython3.1.a(_iobase.o) and libpython3.1.a(io.o)

2009-03-05 Thread Mitchell Model
New submission from Mitchell Model : Trying to build 3.1 in recent 'svn update's on OSX 10.5 after make clean configure --enable-framework I get the following error near the end of the build: ld: duplicate symbol _PyExc_BlockingIOError in libpython3.1.a(_iobase.o) and libp

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
Mitchell Model added the comment: Nothing on OSX is ever named .exe. On OSX building and installing Python with "configure --enable-framework" installs an executable just called 'python' in /Library/Frameworks/Python.framework/Versions/3.1/bin (using 3.1 as an examp

[issue5426] README slight error re OSX

2009-03-05 Thread Mitchell Model
New submission from Mitchell Model : Line 136 of the 3.0 README and line 179 of the 3.1 README state that the executable on OSX is called python.exe. It's not. -- assignee: georg.brandl components: Documentation messages: 83203 nosy: MLModel, georg.brandl severity: normal status:

[issue5419] urllib.request.open(someURL).read() returns a bytes object so writing it requires binary mode

2009-03-04 Thread Mitchell Model
New submission from Mitchell Model : There needs to be something somewhere in the documentation that makes the simple point that data coming in from the web is bytes not strings, which is a big change from Python 2, and that it needs to be manipulated as such, including writing in binary mode

[issue5418] urllib.response.addinfourl does not support __exit__

2009-03-04 Thread Mitchell Model
New submission from Mitchell Model : response = urllib.request.open(someURL) page = response.read() close() be called on response after the read(), right? Experimentation shows that I can repeatedly read from response until I close it, getting back empty bytes objects. Thinking that

[issue5371] Documentation of str.format in library/stdtypes shows incorrect first parameter

2009-02-25 Thread Mitchell Model
New submission from Mitchell Model : In the library documentation of standard types, the instance method str.format is shown as taking a format-specification as its first argument. I'm pretty sure that this is incorrect. When format is called through a string, it is that string that i

  1   2   >