From report at bugs.python.org Sat Jul 2 14:49:01 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Sat, 02 Jul 2011 12:49:01 +0000 Subject: [docs] [issue12409] Moving "Documenting Python" to Devguide In-Reply-To: <1309008968.0.0.644952507743.issue12409@psf.upfronthosting.co.za> Message-ID: <1309610941.25.0.0533545929005.issue12409@psf.upfronthosting.co.za> ?ric Araujo added the comment: I don?t understand Fred?s replies. > The scope of this document is much larger than Python's documentation, > but extends to all projects written in Python that use Sphinx as their > documentation tool. Really? docs.python.org/documenting is much smaller that sphinx.pocoo.org, and only seems to cover documenting Python, not any Python project. > With that, it makes sense to keep it as part of the documentation for > users of Python. I don?t follow. You?re saying that since the document also covers other projects than Python, it makes sense to include it in the Python docs? IMO, the criterion for the devguide is to have version-independent documents in one place instead of needlessly including them with CPython and having to sync across versions. For the Documenting Python docs, if they contain version-specific instructions, or if they contain instructions needed in a CPython tarball, then they?re in the right place, otherwise they could move to the devguide. ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 2 16:01:16 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Sat, 02 Jul 2011 14:01:16 +0000 Subject: [docs] [issue12415] Missing: How to checkout the Doc sources In-Reply-To: <1309069778.19.0.06342861361.issue12415@psf.upfronthosting.co.za> Message-ID: <1309615276.89.0.576142434922.issue12415@psf.upfronthosting.co.za> ?ric Araujo added the comment: How about adding this near the top of documenting/building: The sources for the Python documentation are included in the Python repository, alongside code and tests. Follow the instructions in the `Developpers' Guide`_ to get a copy of this repository. _Developpers's Guide: http://docs.python.org/devguide ---------- nosy: +eric.araujo versions: +Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 2 16:39:18 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Sat, 02 Jul 2011 14:39:18 +0000 Subject: [docs] [issue11363] Curses - add missing functions to doc In-Reply-To: <1299005402.55.0.443028099437.issue11363@psf.upfronthosting.co.za> Message-ID: <1309617558.72.0.858374155442.issue11363@psf.upfronthosting.co.za> ?ric Araujo added the comment: Yes, the typo is also on default; I did not mention it, as the merge would have shown it :) I did not report the bug I found; if you could test all examples for 3.x-compat and open a report, it would be great. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 2 22:38:13 2011 From: report at bugs.python.org (Sandro Tosi) Date: Sat, 02 Jul 2011 20:38:13 +0000 Subject: [docs] [issue12043] Update shutil documentation In-Reply-To: <1304967545.46.0.442679433989.issue12043@psf.upfronthosting.co.za> Message-ID: <1309639093.15.0.855323505553.issue12043@psf.upfronthosting.co.za> Sandro Tosi added the comment: It turns out it was just move() with a slightly outdated description; so I take the occasion to fix some minor stuff in the doc. ---------- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file22548/issue12043-default.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 2 22:38:19 2011 From: report at bugs.python.org (Sandro Tosi) Date: Sat, 02 Jul 2011 20:38:19 +0000 Subject: [docs] [issue12043] Update shutil documentation In-Reply-To: <1304967545.46.0.442679433989.issue12043@psf.upfronthosting.co.za> Message-ID: <1309639099.08.0.249373557691.issue12043@psf.upfronthosting.co.za> Changes by Sandro Tosi : Added file: http://bugs.python.org/file22549/issue12043-27.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 07:32:11 2011 From: report at bugs.python.org (anatoly techtonik) Date: Sun, 03 Jul 2011 05:32:11 +0000 Subject: [docs] [issue11253] autodocument first appearance of ctypes.wintypes constants In-Reply-To: <20110626211827.GC2710@mathmagic> Message-ID: anatoly techtonik added the comment: On Mon, Jun 27, 2011 at 12:18 AM, Senthil Kumaran wrote: > As you said, the future version can be updated, but we > cannot go back with updating the documentation of the already released > versions. Why? -- anatoly t. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 10:02:37 2011 From: report at bugs.python.org (anatoly techtonik) Date: Sun, 03 Jul 2011 08:02:37 +0000 Subject: [docs] [issue12476] ctypes: need example how to pass raw data from Python In-Reply-To: <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za> Message-ID: <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za> New submission from anatoly techtonik : ctypes documentation lacks an example, how to pass a raw data block from Python to a C function. For example, how to pass this chunk: data = open('somefile', 'rb').read() to this function: int checkBuffer(LPSTR lpData, DWORD dwBufferLength); ? ---------- assignee: docs at python components: Documentation, ctypes messages: 139675 nosy: docs at python, techtonik priority: normal severity: normal status: open title: ctypes: need example how to pass raw data from Python versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 10:52:26 2011 From: report at bugs.python.org (Amaury Forgeot d'Arc) Date: Sun, 03 Jul 2011 08:52:26 +0000 Subject: [docs] [issue12476] ctypes: need example how to pass raw data from Python In-Reply-To: <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za> Message-ID: <1309683146.37.0.285512065426.issue12476@psf.upfronthosting.co.za> Amaury Forgeot d'Arc added the comment: Can you suggest a patch? ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 14:14:28 2011 From: report at bugs.python.org (Sandro Tosi) Date: Sun, 03 Jul 2011 12:14:28 +0000 Subject: [docs] [issue12478] Possible error in HTTPErrorProcessor documentation In-Reply-To: <1309695268.0.0.0456155108685.issue12478@psf.upfronthosting.co.za> Message-ID: <1309695268.0.0.0456155108685.issue12478@psf.upfronthosting.co.za> New submission from Sandro Tosi : Hello, I think HTTPErrorProcessor documentation at [1] contains a cut&paste error (from UnknownHandler) for the only method available [1] http://docs.python.org/py3k/library/urllib.request.html#httperrorprocessor-objects because: ./python -c "import urllib.request as ur; print ('unknown_open' in dir(ur.HTTPErrorProcessor))" False If you can confirm that http_response() should be used instead, I'll provide a patch to fix it. ---------- assignee: docs at python components: Documentation messages: 139685 nosy: docs at python, sandro.tosi priority: normal severity: normal stage: needs patch status: open title: Possible error in HTTPErrorProcessor documentation versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 14:24:44 2011 From: report at bugs.python.org (anatoly techtonik) Date: Sun, 03 Jul 2011 12:24:44 +0000 Subject: [docs] [issue12476] ctypes: need example how to pass raw data from Python In-Reply-To: <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za> Message-ID: <1309695884.1.0.382537823756.issue12476@psf.upfronthosting.co.za> anatoly techtonik added the comment: ISTM that this code works ok. data = open('data.raw', 'rb').read() ret = checkBuffer(data, len(data)) You need to make sure that checkBuffer doesn't try to modify memory though. For mutable memory blocks use create_string_buffer(). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 14:53:40 2011 From: report at bugs.python.org (Sandro Tosi) Date: Sun, 03 Jul 2011 12:53:40 +0000 Subject: [docs] [issue12479] Add HTTPErrorProcessor class definition In-Reply-To: <1309697619.94.0.838258559522.issue12479@psf.upfronthosting.co.za> Message-ID: <1309697619.94.0.838258559522.issue12479@psf.upfronthosting.co.za> New submission from Sandro Tosi : As reported in http://mail.python.org/pipermail/docs/2011-June/004879.html urllibs/urllib.request misses the definition of HTTPErrorProcessor class; the attached patches add it to the documentation. ---------- assignee: docs at python components: Documentation files: HTTPErrorProcessor_class-default.patch keywords: patch messages: 139687 nosy: docs at python, sandro.tosi priority: normal severity: normal stage: patch review status: open title: Add HTTPErrorProcessor class definition versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22552/HTTPErrorProcessor_class-default.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 14:53:45 2011 From: report at bugs.python.org (Sandro Tosi) Date: Sun, 03 Jul 2011 12:53:45 +0000 Subject: [docs] [issue12479] Add HTTPErrorProcessor class definition In-Reply-To: <1309697619.94.0.838258559522.issue12479@psf.upfronthosting.co.za> Message-ID: <1309697625.67.0.533432871244.issue12479@psf.upfronthosting.co.za> Changes by Sandro Tosi : Added file: http://bugs.python.org/file22553/HTTPErrorProcessor_class-py27.patch _______________________________________ Python tracker _______________________________________ From sandro.tosi at gmail.com Sun Jul 3 14:54:41 2011 From: sandro.tosi at gmail.com (Sandro Tosi) Date: Sun, 3 Jul 2011 14:54:41 +0200 Subject: [docs] undocumented classes in library/urllib2.rst In-Reply-To: References: Message-ID: Hello Tomo, On Sun, Jun 19, 2011 at 02:16, tomo cocoa wrote: > Hello, > > I am @cocoatomo. > > Sorry for my bad explanation. > >> However, I do not realize why the class HTTPErrorProcessor is undocumented. > > This means I wonder why the class HTTPErrorProcessor is undocumented as a class > just after where the class UnknownHandler is documented. i've opened http://bugs.python.org/issue12479 to fix it. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi From report at bugs.python.org Sun Jul 3 18:11:01 2011 From: report at bugs.python.org (Philip Olson) Date: Sun, 03 Jul 2011 16:11:01 +0000 Subject: [docs] [issue12415] Missing: How to checkout the Doc sources In-Reply-To: <1309069778.19.0.06342861361.issue12415@psf.upfronthosting.co.za> Message-ID: <1309709461.29.0.525708752165.issue12415@psf.upfronthosting.co.za> Philip Olson added the comment: Thank you, that patch solves this bug report. However, now I'm not sure which branches we should or must contribute documentation to. Python versions "2.7, 3.2, and 3.3" are now associated to this bug report, so are these the active documentation branches? How is this handled? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 19:25:10 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Sun, 03 Jul 2011 17:25:10 +0000 Subject: [docs] [issue10020] docs for sqlite3 describe functions not available without recompiling In-Reply-To: <1309190312.72.0.0963947939619.issue10020@psf.upfronthosting.co.za> Message-ID: <20110703172505.GA3937@mathmagic> Senthil Kumaran added the comment: Fixed the indentation issues. We could not use automatic reST footnotes because two links refer to same footnote, so left it as such. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 3 22:10:04 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Sun, 03 Jul 2011 20:10:04 +0000 Subject: [docs] [issue11253] autodocument first appearance of ctypes.wintypes constants In-Reply-To: Message-ID: <20110703200958.GC3937@mathmagic> Senthil Kumaran added the comment: What's new docs are usually for what is coming up new in the upcoming releases. It is not updated once the release is done. Bug fixes and related docs are updated in documentation. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 02:19:12 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Mon, 04 Jul 2011 00:19:12 +0000 Subject: [docs] [issue12436] Provide reference to detailed installation instructions In-Reply-To: <1309305395.29.0.101516779086.issue12436@psf.upfronthosting.co.za> Message-ID: <20110704001907.GA15716@mathmagic> Senthil Kumaran added the comment: I am not sure that is comprehensive enough. It is just organized into OS specific sections and gives little details further on. So, -1 to this, but +1 to the general idea of having detailed install and get started documentation. ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 03:15:06 2011 From: report at bugs.python.org (Alejandro Santos) Date: Mon, 04 Jul 2011 01:15:06 +0000 Subject: [docs] [issue12484] The Py_InitModule functions no longer exist, but remain in the docs In-Reply-To: <1309742106.53.0.381388012939.issue12484@psf.upfronthosting.co.za> Message-ID: <1309742106.53.0.381388012939.issue12484@psf.upfronthosting.co.za> New submission from Alejandro Santos : While the "Py_InitModule" does not exists on Py3k it is still mentioned on the docs: http://docs.python.org/py3k/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/py3k/extending/windows.html#a-cookbook-approach http://docs.python.org/py3k/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean ---------- assignee: docs at python components: Documentation messages: 139728 nosy: alejolp, docs at python priority: normal severity: normal status: open title: The Py_InitModule functions no longer exist, but remain in the docs versions: Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 03:23:08 2011 From: report at bugs.python.org (Alejandro Santos) Date: Mon, 04 Jul 2011 01:23:08 +0000 Subject: [docs] [issue12484] The Py_InitModule functions no longer exist, but remain in the docs In-Reply-To: <1309742106.53.0.381388012939.issue12484@psf.upfronthosting.co.za> Message-ID: <1309742588.43.0.045691980559.issue12484@psf.upfronthosting.co.za> Alejandro Santos added the comment: The call is also present on the older 3.1 and "dev" release of the docs: http://docs.python.org/release/3.1.3/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/release/3.1.3/extending/windows.html#a-cookbook-approach http://docs.python.org/release/3.1.3/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean http://docs.python.org/dev/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/dev/extending/windows.html#a-cookbook-approach http://docs.python.org/dev/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean ---------- versions: +Python 3.1, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 08:36:46 2011 From: report at bugs.python.org (Eli Bendersky) Date: Mon, 04 Jul 2011 06:36:46 +0000 Subject: [docs] [issue12043] Update shutil documentation In-Reply-To: <1304967545.46.0.442679433989.issue12043@psf.upfronthosting.co.za> Message-ID: <1309761406.18.0.987252461248.issue12043@psf.upfronthosting.co.za> Changes by Eli Bendersky : ---------- nosy: +eli.bendersky _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 08:50:21 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Mon, 04 Jul 2011 06:50:21 +0000 Subject: [docs] [issue12484] The Py_InitModule functions no longer exist, but remain in the docs In-Reply-To: <1309742106.53.0.381388012939.issue12484@psf.upfronthosting.co.za> Message-ID: <1309762221.48.0.465082724011.issue12484@psf.upfronthosting.co.za> Changes by Senthil Kumaran : ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 15:52:57 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 04 Jul 2011 13:52:57 +0000 Subject: [docs] [issue12415] Missing: How to checkout the Doc sources In-Reply-To: <1309069778.19.0.06342861361.issue12415@psf.upfronthosting.co.za> Message-ID: <1309787577.89.0.691906643068.issue12415@psf.upfronthosting.co.za> ?ric Araujo added the comment: We fix bugs in 3.2 and then forward-merge in what will become 3.3, using Mercurial. Then we apply the same change for 2.7. More info: http://docs.python.org/devguide I will commit this change this week. ---------- assignee: docs at python -> eric.araujo keywords: +patch stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 16:04:30 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 04 Jul 2011 14:04:30 +0000 Subject: [docs] [issue12043] Update shutil documentation In-Reply-To: <1304967545.46.0.442679433989.issue12043@psf.upfronthosting.co.za> Message-ID: <1309788270.64.0.32860095671.issue12043@psf.upfronthosting.co.za> ?ric Araujo added the comment: - If *symlinks* is true, symbolic links in the source tree are + If *symlinks* is ``True``, symbolic links in the source tree are I?m not sure about that change. It may be on purpose that lower-case true is used, given that the code will accept anything that evaluates to True in a boolean context, but does not strictly requires a bool instance. See also #7969 for another shutil doc bug. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 18:56:55 2011 From: report at bugs.python.org (Georg Brandl) Date: Mon, 04 Jul 2011 16:56:55 +0000 Subject: [docs] [issue12043] Update shutil documentation In-Reply-To: <1304967545.46.0.442679433989.issue12043@psf.upfronthosting.co.za> Message-ID: <1309798615.5.0.606989152464.issue12043@psf.upfronthosting.co.za> Georg Brandl added the comment: Yep. The parts changing true/false to ``True``/``False`` should not be committed. ---------- nosy: +georg.brandl _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 19:07:21 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Mon, 04 Jul 2011 17:07:21 +0000 Subject: [docs] [issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child In-Reply-To: <1309779809.62.0.10199189289.issue12488@psf.upfronthosting.co.za> Message-ID: <1309799241.29.0.105010421715.issue12488@psf.upfronthosting.co.za> Antoine Pitrou added the comment: Well, I think it deserves a comment in the documentation that behaviour of Pipes and Queues when one of the process terminates is undefined and implementation-dependent. By the way, there's internal support in 3.3 to reliably detect killed children, and it's used by concurrent.futures: http://docs.python.org/dev/library/concurrent.futures.html#concurrent.futures.BrokenProcessPool. However, I'm not sure there's an easy way to detect a killed master process from one of the worker processes. ---------- assignee: -> docs at python components: +Documentation nosy: +docs at python resolution: invalid -> stage: committed/rejected -> needs patch status: closed -> open versions: +Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 19:11:11 2011 From: report at bugs.python.org (=?utf-8?q?Charles-Fran=C3=A7ois_Natali?=) Date: Mon, 04 Jul 2011 17:11:11 +0000 Subject: [docs] [issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child In-Reply-To: <1309779809.62.0.10199189289.issue12488@psf.upfronthosting.co.za> Message-ID: <1309799471.09.0.549711544355.issue12488@psf.upfronthosting.co.za> Charles-Fran?ois Natali added the comment: Alright. Luke, if you're motivated, feel free to provide a patch. The relevant file is Doc/library/multiprocessing.rst. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 19:15:14 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Mon, 04 Jul 2011 17:15:14 +0000 Subject: [docs] [issue12488] multiprocessing.Connection does not communicate pipe closure between parent and child In-Reply-To: <1309779809.62.0.10199189289.issue12488@psf.upfronthosting.co.za> Message-ID: <1309799714.32.0.356530505043.issue12488@psf.upfronthosting.co.za> Antoine Pitrou added the comment: By the way, if you don't want children processes to continue running when the master exits, just make them daemonic processes (by adding "daemon=True" to the Process() constructor call). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 20:44:34 2011 From: report at bugs.python.org (Roundup Robot) Date: Mon, 04 Jul 2011 18:44:34 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset d442c313536b by Senthil Kumaran in branch '3.2': issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage. http://hg.python.org/cpython/rev/d442c313536b ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 20:51:18 2011 From: report at bugs.python.org (Roundup Robot) Date: Mon, 04 Jul 2011 18:51:18 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset d442c313536b by Senthil Kumaran in branch '3.2': issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage. http://hg.python.org/cpython/rev/d442c313536b ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 21:50:23 2011 From: report at bugs.python.org (Roundup Robot) Date: Mon, 04 Jul 2011 19:50:23 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset b8f5da066782 by Senthil Kumaran in branch '2.7': Fix closes issue10403 - Let's not use members anymore. http://hg.python.org/cpython/rev/b8f5da066782 ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 22:42:12 2011 From: report at bugs.python.org (Rodolpho Eckhardt) Date: Mon, 04 Jul 2011 20:42:12 +0000 Subject: [docs] [issue12490] Documentation for itertools.chain.from_iterable is incorrect In-Reply-To: <1309812132.83.0.229828200889.issue12490@psf.upfronthosting.co.za> Message-ID: <1309812132.83.0.229828200889.issue12490@psf.upfronthosting.co.za> New submission from Rodolpho Eckhardt : The documentation at http://docs.python.org/py3k/library/itertools.html#itertools.chain and http://docs.python.org/library/itertools.html#itertools.chain is inconsistent. At the definition of the class it states that itertools.chain.from_iterable can receive one iterable "Gets chained inputs from a single iterable argument that is evaluated lazily.", but then it contradicts itself by using the following example: @classmethod def from_iterable(iterables): # chain.from_iterable(['ABC', 'DEF']) --> A B C D E F for it in iterables: for element in it: yield element This example could lead the reader to believe this alternative constructor can receive multiple iterable objects, when in fact it can receive only one. ---------- assignee: docs at python components: Documentation messages: 139802 nosy: RodolphoEckhardt, docs at python priority: normal severity: normal status: open title: Documentation for itertools.chain.from_iterable is incorrect versions: Python 2.7, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 22:48:12 2011 From: report at bugs.python.org (Rodolpho Eckhardt) Date: Mon, 04 Jul 2011 20:48:12 +0000 Subject: [docs] [issue12490] Documentation for itertools.chain.from_iterable is incorrect In-Reply-To: <1309812132.83.0.229828200889.issue12490@psf.upfronthosting.co.za> Message-ID: <1309812492.04.0.934773868607.issue12490@psf.upfronthosting.co.za> Rodolpho Eckhardt added the comment: My mistake reading the documentation. Sorry, closing this issue. ---------- status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 4 23:24:35 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Mon, 04 Jul 2011 21:24:35 +0000 Subject: [docs] [issue12491] Update glossary documentation for the term 'attribute' In-Reply-To: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> Message-ID: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> New submission from Senthil Kumaran : Update the term 'attribute' in the glossary http://docs.python.org/dev/glossary.html#term-attribute so that the reader can understand that the term attribute in Python can mean both 'data-attribute' and a 'callable' method. ---------- assignee: docs at python components: Documentation messages: 139809 nosy: docs at python, orsenthil priority: normal severity: normal status: open title: Update glossary documentation for the term 'attribute' versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 5 12:47:43 2011 From: report at bugs.python.org (Florian Preinstorfer) Date: Tue, 05 Jul 2011 10:47:43 +0000 Subject: [docs] [issue11468] Improve unittest basic example in the doc In-Reply-To: <1299867342.41.0.388080450116.issue11468@psf.upfronthosting.co.za> Message-ID: <1309862863.24.0.628710464298.issue11468@psf.upfronthosting.co.za> Florian Preinstorfer added the comment: I tried to implement the improvements suggested by Ezio Melotti and updated the documentation accordingly. ---------- keywords: +patch nosy: +notizblock Added file: http://bugs.python.org/file22576/issue-11468.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 5 17:39:24 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 05 Jul 2011 15:39:24 +0000 Subject: [docs] [issue12043] Update shutil documentation In-Reply-To: <1304967545.46.0.442679433989.issue12043@psf.upfronthosting.co.za> Message-ID: <1309880364.28.0.0279512869528.issue12043@psf.upfronthosting.co.za> ?ric Araujo added the comment: I will commit the rest of the patch. ---------- assignee: docs at python -> eric.araujo priority: low -> high _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 5 18:14:33 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 05 Jul 2011 16:14:33 +0000 Subject: [docs] [issue10318] "make altinstall" installs many files with incorrect shebangs In-Reply-To: <1288926610.35.0.932494150274.issue10318@psf.upfronthosting.co.za> Message-ID: <1309882472.95.0.0711096517611.issue10318@psf.upfronthosting.co.za> ?ric Araujo added the comment: This 3.2 patch updates UNIX rights and shebangs in Tools/scripts. I also edited mailerdaemon, which used a string exception. ---------- versions: -Python 3.1 Added file: http://bugs.python.org/file22584/tools-scripts.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 6 07:48:04 2011 From: report at bugs.python.org (John) Date: Wed, 06 Jul 2011 05:48:04 +0000 Subject: [docs] [issue11230] "Full unicode import system" not in 3.2 In-Reply-To: <1297926635.95.0.756299771372.issue11230@psf.upfronthosting.co.za> Message-ID: <1309931284.78.0.0691809483413.issue11230@psf.upfronthosting.co.za> John added the comment: Sorry for the long delay. haypo wrote: Can you propose a sentence which is more clear about bytes/Unicode? On this page: http://www.python.org/download/releases/3.2/ is this line: "- countless fixes regarding bytes/string issues; among them full support for a bytes environment (filenames, environment variables)" How about adding to that line something like: " on UNIX; but on Windows the path to and name of each module you import can contain only characters that are in the ANSI codepage that your Windows is using" and maybe " (will be fixed in Python 3.3)" and maybe (or not) also something like: " (ANSI codepage = basic latin + other characters of only your own language group)" -- jh ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 7 17:13:21 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Thu, 07 Jul 2011 15:13:21 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: <1310051601.33.0.793215053291.issue10403@psf.upfronthosting.co.za> ?ric Araujo added the comment: Senthil, I?m not sure you read Alexander?s reply on Rietveld before committing. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 7 20:48:23 2011 From: report at bugs.python.org (Petri Lehtinen) Date: Thu, 07 Jul 2011 18:48:23 +0000 Subject: [docs] [issue12183] Document behaviour of shutil.copy2 and copystat with symlinks In-Reply-To: <1306384920.41.0.626033537775.issue12183@psf.upfronthosting.co.za> Message-ID: <1310064503.49.0.608584515477.issue12183@psf.upfronthosting.co.za> Petri Lehtinen added the comment: Shouldn't at least shutil.copytree() use lutimes in Python 3.3 to copy symlink metadata if symlinks=True? ---------- versions: -Python 3.1, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 7 20:59:14 2011 From: report at bugs.python.org (Petri Lehtinen) Date: Thu, 07 Jul 2011 18:59:14 +0000 Subject: [docs] [issue12183] Document behaviour of shutil.copy2 and copystat with symlinks In-Reply-To: <1306384920.41.0.626033537775.issue12183@psf.upfronthosting.co.za> Message-ID: <1310065154.32.0.916610366448.issue12183@psf.upfronthosting.co.za> Petri Lehtinen added the comment: Attached a patch that documents the behavior of copy2() and copytree() for symlinks. ---------- keywords: +needs review, patch stage: -> patch review Added file: http://bugs.python.org/file22607/copy2_copytree_symlinks_2.7.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 7 21:00:01 2011 From: report at bugs.python.org (Petri Lehtinen) Date: Thu, 07 Jul 2011 19:00:01 +0000 Subject: [docs] [issue12183] Document behaviour of shutil.copy2 and copystat with symlinks In-Reply-To: <1306384920.41.0.626033537775.issue12183@psf.upfronthosting.co.za> Message-ID: <1310065201.0.0.277356040344.issue12183@psf.upfronthosting.co.za> Changes by Petri Lehtinen : ---------- nosy: +tarek _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 8 02:46:03 2011 From: report at bugs.python.org (Ned Deily) Date: Fri, 08 Jul 2011 00:46:03 +0000 Subject: [docs] [issue11230] "Full unicode import system" not in 3.2 In-Reply-To: <1297926635.95.0.756299771372.issue11230@psf.upfronthosting.co.za> Message-ID: <1310085963.55.0.00658557278836.issue11230@psf.upfronthosting.co.za> Changes by Ned Deily : ---------- nosy: +georg.brandl _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 8 16:01:50 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Fri, 08 Jul 2011 14:01:50 +0000 Subject: [docs] [issue12277] Missing comma in os.walk docs In-Reply-To: <1307439951.32.0.810805209718.issue12277@psf.upfronthosting.co.za> Message-ID: <1310133710.14.0.565941399766.issue12277@psf.upfronthosting.co.za> ?ric Araujo added the comment: ?pending? does not mean ?soon to be fixed?, but ?soon to be closed if nobody reacts?. In the future, we may have auto-closing of pending bugs. ---------- status: pending -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 8 16:50:14 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Fri, 08 Jul 2011 14:50:14 +0000 Subject: [docs] [issue11352] Update cgi module doc In-Reply-To: <1298895261.86.0.965235067518.issue11352@psf.upfronthosting.co.za> Message-ID: <1310136614.36.0.789102602211.issue11352@psf.upfronthosting.co.za> Changes by ?ric Araujo : ---------- keywords: +needs review, patch nosy: +amaury.forgeotdarc, andyharrington, erob, flox, gagenellina, haypo, oopos, pebbe, r.david.murray, tcourbon, tobias, v+python priority: normal -> high stage: -> patch review title: Bug in cgi module doc -> Update cgi module doc type: behavior -> versions: +Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 9 09:34:48 2011 From: report at bugs.python.org (Kenyon Ralph) Date: Sat, 09 Jul 2011 07:34:48 +0000 Subject: [docs] [issue7229] Manual entry for time.daylight can be misleading In-Reply-To: <1256723052.19.0.148648938954.issue7229@psf.upfronthosting.co.za> Message-ID: <1310196888.11.0.745415862592.issue7229@psf.upfronthosting.co.za> Changes by Kenyon Ralph : ---------- nosy: +kralph _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 9 22:54:27 2011 From: report at bugs.python.org (Eric Snow) Date: Sat, 09 Jul 2011 20:54:27 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: <1310244867.6.0.432665152705.issue10403@psf.upfronthosting.co.za> Changes by Eric Snow : ---------- nosy: +ericsnow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 9 22:54:52 2011 From: report at bugs.python.org (Eric Snow) Date: Sat, 09 Jul 2011 20:54:52 +0000 Subject: [docs] [issue12491] Update glossary documentation for the term 'attribute' In-Reply-To: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> Message-ID: <1310244892.84.0.50564819429.issue12491@psf.upfronthosting.co.za> Changes by Eric Snow : ---------- nosy: +ericsnow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 9 22:57:38 2011 From: report at bugs.python.org (Eric Snow) Date: Sat, 09 Jul 2011 20:57:38 +0000 Subject: [docs] [issue12374] Execution model should explain compile vs definition vs execution time In-Reply-To: <1308582911.55.0.701954968644.issue12374@psf.upfronthosting.co.za> Message-ID: <1310245058.55.0.872109081663.issue12374@psf.upfronthosting.co.za> Changes by Eric Snow : ---------- nosy: +ericsnow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 9 23:31:43 2011 From: report at bugs.python.org (Eric Snow) Date: Sat, 09 Jul 2011 21:31:43 +0000 Subject: [docs] [issue11435] Links to source code should now point to hg repo In-Reply-To: <1299519091.7.0.295996410449.issue11435@psf.upfronthosting.co.za> Message-ID: <1310247103.9.0.309252467562.issue11435@psf.upfronthosting.co.za> Changes by Eric Snow : ---------- nosy: +ericsnow _______________________________________ Python tracker _______________________________________ From luciano at defalcoalfano.it Sat Jul 2 17:55:54 2011 From: luciano at defalcoalfano.it (Luciano De Falco Alfano) Date: Sat, 02 Jul 2011 17:55:54 +0200 Subject: [docs] Not a bug, but ... Message-ID: <4E0F3F8A.8040504@defalcoalfano.it> ... maybe useful to change the address used in the POST example in doc pages about the httplib module (http://docs.python.org/library/httplib.html). In fact, from the 28th of Jun 2011, mojam.com and musi-cal.com were closed (http://www.wolfgangsvault.com/blog/index.php/2011/06/closing-mojam-com-and-musi-cal-com/). Thank you all for yours invaluable work about Python. Sincerly Luciano De Falco Alfano Rome, Italy From dave_7330 at hotmail.com Mon Jul 4 20:41:38 2011 From: dave_7330 at hotmail.com (dawud barber) Date: Mon, 4 Jul 2011 11:41:38 -0700 Subject: [docs] programming newbie Message-ID: Hi. I went to python.org web site, looking to download release 3 of Python. Had trouble locating it. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From report at bugs.python.org Sun Jul 10 11:05:32 2011 From: report at bugs.python.org (Georg Brandl) Date: Sun, 10 Jul 2011 09:05:32 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> New submission from Georg Brandl : The POST example in the httplib docs references musi-cal.mojam.com, which is now defunct. ---------- assignee: docs at python components: Documentation keywords: easy messages: 140074 nosy: docs at python, georg.brandl priority: low severity: normal status: open title: change httplib docs POST example _______________________________________ Python tracker _______________________________________ From georg at python.org Sun Jul 10 11:06:50 2011 From: georg at python.org (Georg Brandl) Date: Sun, 10 Jul 2011 11:06:50 +0200 Subject: [docs] Not a bug, but ... In-Reply-To: <4E0F3F8A.8040504@defalcoalfano.it> References: <4E0F3F8A.8040504@defalcoalfano.it> Message-ID: <4E196BAA.5040503@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 02.07.2011 17:55, schrieb Luciano De Falco Alfano: > ... maybe useful to change the address used in the POST example in doc pages > about the httplib module (http://docs.python.org/library/httplib.html). > > In fact, from the 28th of Jun 2011, mojam.com and musi-cal.com were closed > (http://www.wolfgangsvault.com/blog/index.php/2011/06/closing-mojam-com-and-musi-cal-com/). Thanks > for the report, I've opened issue #12524 to track this. Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk4Za6oACgkQN9GcIYhpnLA4PgCcDH2XeM8bzwmbaq9R9x0FWnxb QQAAoIJlo6ergNP2QQofD3ITcY/KUSTp =rCYu -----END PGP SIGNATURE----- From report at bugs.python.org Sun Jul 10 13:18:17 2011 From: report at bugs.python.org (Raymond Hettinger) Date: Sun, 10 Jul 2011 11:18:17 +0000 Subject: [docs] [issue12491] Update glossary documentation for the term 'attribute' In-Reply-To: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> Message-ID: <1310296697.39.0.0453799711485.issue12491@psf.upfronthosting.co.za> Raymond Hettinger added the comment: The current glossary entry is fine and encompasses was is ordinarily meant by attribute as distinct from a method. We sometimes use the term loosely to mean any value whether callable or not. And sometimes it is used loosely to mean anything that can be looked up with getattr(). Attempts to over-define it will be incorrect for some uses. Also, it is likely to make the glossary entry less understandable. ---------- assignee: docs at python -> rhettinger nosy: +rhettinger _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 10 14:44:20 2011 From: report at bugs.python.org (R. David Murray) Date: Sun, 10 Jul 2011 12:44:20 +0000 Subject: [docs] [issue12491] Update glossary documentation for the term 'attribute' In-Reply-To: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> Message-ID: <1310301860.85.0.238863450492.issue12491@psf.upfronthosting.co.za> R. David Murray added the comment: As an experienced Python programmer, I think of 'attribute' as meaning any attribute (method or non-method) of an object or class. I sometimes do use it imprecisely (to my mind) to mean "non-method attribute", and it is usually clear from context what I mean. Raymond, if attribute means only non-method attributes, what is the word for the set of things that contains both method and non-method...ah, attributes...of an object? (I thought we already had this discussion both on python-dev and another issue....) Hmm. Actually looking at the linked entry, it looks correct to me (it covers both method and non-method attributes as far as I can see). It might be clearer if it mentioned that a value can be anything, including a method. ---------- nosy: +r.david.murray _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 10 14:54:05 2011 From: report at bugs.python.org (R. David Murray) Date: Sun, 10 Jul 2011 12:54:05 +0000 Subject: [docs] [issue12491] Update glossary documentation for the term 'attribute' In-Reply-To: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> Message-ID: <1310302445.28.0.814815647002.issue12491@psf.upfronthosting.co.za> R. David Murray added the comment: OK, I found the other issue and it looks like we agreed to use 'attributes and methods' where the reference was inclusive. I still think that it is less precise to think this way, but it is clearer exposition given the lack of a good term for non-method attributes. So now I agree that we should not change the existing glossary definition of attribute. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 00:58:59 2011 From: report at bugs.python.org (Raymond Hettinger) Date: Sun, 10 Jul 2011 22:58:59 +0000 Subject: [docs] [issue12491] Update glossary documentation for the term 'attribute' In-Reply-To: <1309814675.46.0.717017747157.issue12491@psf.upfronthosting.co.za> Message-ID: <1310338739.71.0.504868289374.issue12491@psf.upfronthosting.co.za> Changes by Raymond Hettinger : ---------- resolution: -> rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 01:40:40 2011 From: report at bugs.python.org (Roundup Robot) Date: Sun, 10 Jul 2011 23:40:40 +0000 Subject: [docs] [issue12343] ssl documentation needs comments about non-blocking behaviour In-Reply-To: <1308187568.46.0.159826705626.issue12343@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset b763c1ba5589 by Antoine Pitrou in branch '3.2': Issue #12343: Add some notes on behaviour of non-blocking SSL sockets. http://hg.python.org/cpython/rev/b763c1ba5589 New changeset 77334eb5038d by Antoine Pitrou in branch 'default': Issue #12343: Add some notes on behaviour of non-blocking SSL sockets. http://hg.python.org/cpython/rev/77334eb5038d ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 01:42:05 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Sun, 10 Jul 2011 23:42:05 +0000 Subject: [docs] [issue12343] ssl documentation needs comments about non-blocking behaviour In-Reply-To: <1308187568.46.0.159826705626.issue12343@psf.upfronthosting.co.za> Message-ID: <1310341325.84.0.241134517679.issue12343@psf.upfronthosting.co.za> Antoine Pitrou added the comment: I'd say this is fixed now. Tell me if there are any precisions you would like to see added. ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 14:03:43 2011 From: report at bugs.python.org (Peter Eisentraut) Date: Mon, 11 Jul 2011 12:03:43 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> New submission from Peter Eisentraut : The existing documentation index entries for * and ** only point to their use in function definitions but not to their use in function calls. I was looking for the latter, and it was difficult to find without this. Here is a small patch to add the additional entries. ---------- assignee: docs at python components: Documentation files: python-doc-index-**.patch keywords: patch messages: 140113 nosy: docs at python, petere priority: normal severity: normal status: open title: documentation index entries for * and ** versions: Python 3.3 Added file: http://bugs.python.org/file22619/python-doc-index-**.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 14:53:50 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 11 Jul 2011 12:53:50 +0000 Subject: [docs] [issue11435] Links to source code should now point to hg repo In-Reply-To: <1299519091.7.0.295996410449.issue11435@psf.upfronthosting.co.za> Message-ID: <1310388830.56.0.485644559086.issue11435@psf.upfronthosting.co.za> ?ric Araujo added the comment: Patch to fix links in the 3.2 docs. ---------- Added file: http://bugs.python.org/file22620/docs-source-link-3.2.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 17:30:25 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 11 Jul 2011 15:30:25 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: <1310398225.24.0.424402666417.issue10403@psf.upfronthosting.co.za> Changes by ?ric Araujo : ---------- status: closed -> open _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 18:05:29 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 11 Jul 2011 16:05:29 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1310400329.18.0.644108924869.issue12434@psf.upfronthosting.co.za> ?ric Araujo added the comment: Do you think the docstrings and error messages should be improved as well as the docs? ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 11 18:13:06 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 11 Jul 2011 16:13:06 +0000 Subject: [docs] [issue12436] Provide reference to detailed installation instructions In-Reply-To: <1309305395.29.0.101516779086.issue12436@psf.upfronthosting.co.za> Message-ID: <1310400786.07.0.8062834225.issue12436@psf.upfronthosting.co.za> ?ric Araujo added the comment: > Goal #1: set up Python I believe http://docs.python.org/dev/using/ covers this. > Goal #2: prepare a text editor This is missing from our docs. (My first thought was that it was out of scope, but for complete beginners, it would be nice to give a few pointers.) > Goal #3: practice starting and exiting Python The tutorial has one page about that. > Goal #4: practice navigating the computer from a command prompt Out of scope? > Goal #5: practice running Python code from a file This is probably in the tutorial or using docs, I have to check. > Goal #6: get dependencies installed for the Saturday projects This used to be non-standard, but now that we have packaging and pysetup, I translate this item to a doc bug: Explain how to use pysetup to get dependencies (in using, I think). > Goal #7: start learning Python! > Goal #8: Checkoff Nothing to add, IMO. ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 04:34:55 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 12 Jul 2011 02:34:55 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1310438095.33.0.769778758857.issue12434@psf.upfronthosting.co.za> Terry J. Reedy added the comment: My original suggestion is a minimal change suggestion. I do not have much opinion on what the maximum change 'should' be. It would obviously be nice from a user viewpoint if the error message were backported to say "unicode argument expected, got 'str'". Then the note change might not be needed. But I do not know if the particular message is an accident or part of a policy of not fully backporting the code (to aid future patching?), or whether there are other messages that would need the same treatment. The module docstring shown by help(io) does not have the terminology note to be augmented. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 06:55:15 2011 From: report at bugs.python.org (Eli Bendersky) Date: Tue, 12 Jul 2011 04:55:15 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1310446515.57.0.426026056.issue12434@psf.upfronthosting.co.za> Eli Bendersky added the comment: In my opinion, it's the error messages and docstrings that should be changed, not the documentation. This module was introduced in 2.6 and moves on to 2.7, and there's no reason to have it throw confusing errors for the sake of easier back-patching from 3.x However, when I run this example on 2.6, I get: TypeError: can't write str to text stream Which (arguably) makes sense, since the docs explicitly say that "Text I/O classes work with unicode data." ---------- nosy: +eli.bendersky _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 08:30:34 2011 From: report at bugs.python.org (Eli Bendersky) Date: Tue, 12 Jul 2011 06:30:34 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1310452234.81.0.987040590429.issue12531@psf.upfronthosting.co.za> Changes by Eli Bendersky : ---------- nosy: +eli.bendersky _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 09:15:18 2011 From: report at bugs.python.org (Nick Coghlan) Date: Tue, 12 Jul 2011 07:15:18 +0000 Subject: [docs] [issue12436] Provide reference to detailed installation instructions In-Reply-To: <1309305395.29.0.101516779086.issue12436@psf.upfronthosting.co.za> Message-ID: <1310454918.28.0.247789202616.issue12436@psf.upfronthosting.co.za> Nick Coghlan added the comment: Nice, I didn't know we have those comprehensive using docs. However, they should be linked from http://docs.python.org/dev/tutorial/interpreter.html (definitely inline and perhaps a see also). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 15:35:30 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 12 Jul 2011 13:35:30 +0000 Subject: [docs] [issue9254] __import__ docstring should recommend importlib.import_module() In-Reply-To: <1279057769.02.0.398615806235.issue9254@psf.upfronthosting.co.za> Message-ID: <1310477730.22.0.11357656134.issue9254@psf.upfronthosting.co.za> ?ric Araujo added the comment: The docstring of __import__ was updated to mention importlib in 3d490c3a019e, for #7397. Attached patch edits the docs. ---------- keywords: +patch versions: -Python 3.1 Added file: http://bugs.python.org/file22629/__import__-mention-importlib.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 15:43:47 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 12 Jul 2011 13:43:47 +0000 Subject: [docs] [issue3565] array documentation, method names not 3.x-compliant In-Reply-To: <1218878053.61.0.879399084038.issue3565@psf.upfronthosting.co.za> Message-ID: <1310478226.97.0.182845073536.issue3565@psf.upfronthosting.co.za> ?ric Araujo added the comment: It was Antoine in fa8b57f987c5, for #8990. ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 17:21:05 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 12 Jul 2011 15:21:05 +0000 Subject: [docs] [issue11553] Docs for: import, packages, site.py, .pth files In-Reply-To: <1300189190.68.0.0305569633639.issue11553@psf.upfronthosting.co.za> Message-ID: <1310484065.3.0.401013663632.issue11553@psf.upfronthosting.co.za> ?ric Araujo added the comment: >>> Exactly what variants of arguments are possible, and what are their >>> effects? >> Does http://docs.python.org/dev/library/functions#__import__ help? >> Does http://docs.python.org/dev/library/importlib ? > Well somewhat overkill -- because the matter of interest was args for > from... and import, while the docs you mention are for more > complicated underlying functions. (Interesting nonetheless.) importlib.import_module should not be overkill, as it was designed specifically to be more easy and correct to use than __import__. >>> -- the __all__ variable: Does it act generally to limit visibility >>> of a module or package's attributes, or does pertain only to the >>> 'from...import *' statement? >> Both. > I'm pretty sure that's not correct -- pretty sure that __all__ only > specifies what's included in from...import *, and does not prevent > access via from...import specific_attrib. But I may have tested > incorrectly. Sorry, I should have clarified. I meant that __all__ limits what ?from x import *? can see (for somemodule.__all__), and what pydoc and other tools display (for someobject.__all__). Direct reference ?x._lalala? or explicit import ?from x import explicit_name? don?t look at __all__. >>> In addsitepackages(), the library directory for Windows (the else >>> clause) is shown as lower-case 'lib' instead of 'Lib'. Please report that as a new bug. >>> sys >>> Could helpfully point to a discussion of the typical items to >>> be found in sys.path under normal circumstances >> Hm, this would be very platform-specific. What use cases would that >> help? > It would demystify how python already knows how to find various > things under vanilla circumstances. I?m all for demystification, so OK. We already have platform-specific examples in site and/or sysconfig docs, so once more wouldn?t harm. >>> 'Installing Python Modules' document >>> "Windows has no concept of a user?s home directory, " and so on. >> The author probably meant that there was no $HOME environment >> variable, ~ shortcut and all that. > Fair enough, but in actuality there *is* a user-specific location (on > Windows) examined by site.py, which is in %APPDATA%\Python\. That does not map to the home concept at all. Anyway, it does not really add value to say that one OS doesn?t have something that another OS has, let?s just say that X uses something and that Y uses soemthing else. >> Don?t confuse the prefix and the install dir. The directory for >> Python modules is computed as prefix + Lib/site-packages. > Currently, under "Alternate installation: Windows (the prefix > scheme)", it says: > python setup.py install --prefix="\Temp\Python" [...] > Does this really mean "install modules to \Temp\Python\Lib\site-packages"? I don?t know, try it in a shell! > (And as a side point, surely installing under the Temp directory is a > strange location to pick for an example?) Well, the docs gotta pick something. A tempdir is not worse than something else to demonstrate how to use a tool. We need to have one discussion thread for each issue, to make this huge doc bug manageable. I will go over your first message again and open one report for each point, this week if I have time. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 21:20:44 2011 From: report at bugs.python.org (Brett Cannon) Date: Tue, 12 Jul 2011 19:20:44 +0000 Subject: [docs] [issue9254] __import__ docstring should recommend importlib.import_module() In-Reply-To: <1279057769.02.0.398615806235.issue9254@psf.upfronthosting.co.za> Message-ID: <1310498444.8.0.733963168689.issue9254@psf.upfronthosting.co.za> Brett Cannon added the comment: Patch looks good to me. ---------- stage: needs patch -> commit review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 12 21:51:44 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Tue, 12 Jul 2011 19:51:44 +0000 Subject: [docs] [issue3565] array documentation, method names not 3.x-compliant In-Reply-To: <1218878053.61.0.879399084038.issue3565@psf.upfronthosting.co.za> Message-ID: <1310500304.01.0.382388351265.issue3565@psf.upfronthosting.co.za> Antoine Pitrou added the comment: > Is there still any idea/intention of renaming .from/.tounicode to > .from/.tostring? That would have to be done at least one version with > the 'string' names absent, and would have little gain as 'unicode' is > clear. Indeed, not only it would bring little benefit, but may also confuse users porting from 2.x (since the from/tostring methods would then have a totally different meaning). ---------- resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> array constructor and array.fromstring should accept bytearray. _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 05:57:48 2011 From: report at bugs.python.org (Matt Giuca) Date: Wed, 13 Jul 2011 03:57:48 +0000 Subject: [docs] [issue3565] array documentation, method names not 3.x-compliant In-Reply-To: <1218878053.61.0.879399084038.issue3565@psf.upfronthosting.co.za> Message-ID: <1310529468.41.0.222174114219.issue3565@psf.upfronthosting.co.za> Matt Giuca added the comment: There are still some inconsistencies in the documentation (in particular, incorrectly using the word "string" to refer to a bytes object, which made sense in Python 2 but not 3), which I fixed in my doc-only.patch file that's coming up to its third birthday. Most of it has been fixed with the previous change which added 'tobytes' and 'frombytes' and made tostring and fromstring aliases. But there are some places which don't make sense: array: "If given a list or string" needs to be "If given a list, bytes or string" (since a bytes is not a string). frombytes: "Appends items from the string" needs to be "Appends items from the bytes object", since this does not work if you give it a string. Less importantly, I also recommended renaming "unicode string" to just "string", since in Python 3 there is no such thing as a non-unicode string. For instance, there is an example that uses a variable named "unicodestring" that could be renamed to just "string". > Indeed, not only it would bring little benefit, but may also confuse > users porting from 2.x (since the from/tostring methods would then > have a totally different meaning). Well, by that logic, you shouldn't have renamed "unicode" to "str" since that would also confuse users porting from 2.x. It generally seems like a good idea in Python 3 to rename all mentions of "string" to "bytes" and all mentions of "unicode" to "string", so as to be consistent with the new names of the types (it is better to be internally consistent than consistent with the previous version). Though I do agree that it would be chaos to rename array.from/tounicode to from/tostring now, given that array.from/tostring already has a different meaning in Python 3. ---------- _______________________________________ Python tracker _______________________________________ From albert.zeyer at rwth-aachen.de Tue Jul 12 02:03:20 2011 From: albert.zeyer at rwth-aachen.de (Albert Zeyer) Date: Tue, 12 Jul 2011 02:03:20 +0200 Subject: [docs] C code wrong after forward declaration Message-ID: Hi, [Here](http://docs.python.org/library/ctypes.html#incomplete-types) you have this C code: struct cell; /* forward declaration */ struct { char *name; struct cell *next; } cell; It should be like this: struct cell; /* forward declaration */ struct cell { char *name; struct cell *next; }; Regards, Albert From nneonneo at gmail.com Tue Jul 12 19:45:37 2011 From: nneonneo at gmail.com (Robert Xiao) Date: Tue, 12 Jul 2011 13:45:37 -0400 Subject: [docs] logging.Logger.debug example doesn't work Message-ID: The Logger.debug example (at http://docs.python.org/py3k/library/logging.html#logging.Logger.debug) does not actually work in Python 3.2: Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import logging >>> FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s' >>> logging.basicConfig(format=FORMAT) >>> d = {'clientip': '192.168.0.1', 'user': 'fbloggs'} >>> logging.warning('Protocol problem: %s', 'connection reset', extra=d) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", line 934, in emit msg = self.format(record) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", line 809, in format return fmt.format(record) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", line 551, in format s = self.formatMessage(record) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", line 520, in formatMessage return self._style.format(record) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", line 371, in format return self._fmt % record.__dict__ KeyError: 'asctime' Logged from file , line 1 The problem is that the logger expects to see the exact string "%(asctime)s" in the format string before it will add the asctime attribute. Using the "-15" modifier on the asctime causes the match to fail, and the asctime attribute is not emitted. To fix the example, change %(asctime)-15s to %(asctime)s: Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import logging >>> FORMAT = '%(asctime)s %(clientip)s %(user)-8s %(message)s' >>> logging.basicConfig(format=FORMAT) >>> d = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' } >>> logger = logging.getLogger('tcpserver') >>> logger.warning('Protocol problem: %s', 'connection reset', extra=d) 2011-07-12 13:39:44,317 192.168.0.1 fbloggs Protocol problem: connection reset This also reflects a problem in the library in that it is not flexible enough to understand different formats. As a separate matter, perhaps the library could be amended to always include the asctime field (the asctime string could be lazily computed by using a class instance for which the __str__ method produces the actual formatted date), rather than trying to guess when it is needed. Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohan.bavishi95 at gmail.com Wed Jul 13 05:19:59 2011 From: rohan.bavishi95 at gmail.com (Rohan Bavishi) Date: Wed, 13 Jul 2011 08:49:59 +0530 Subject: [docs] Bug Report Message-ID: <4E1D0EDF.4050407@gmail.com> The math package in both Python 2.7 and Python 2.5 is reporting a strange error. The sqrt function does not return the correct value for 1695843602719359844. It returns an answer ending in 0 which is not possible and it returns the same answer for values above it. Kindly check if the same is happening with you. Thanks, Rohan Bavishi rohan.bavishi95 at gmail.com From georg at python.org Wed Jul 13 09:50:00 2011 From: georg at python.org (Georg Brandl) Date: Wed, 13 Jul 2011 09:50:00 +0200 Subject: [docs] logging.Logger.debug example doesn't work In-Reply-To: References: Message-ID: <4E1D4E28.7010505@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Robert, this has already been fixed as part of http://bugs.python.org/issue11330 and the example should work now with 3.2.1. Georg Am 12.07.2011 19:45, schrieb Robert Xiao: > The Logger.debug example (at > http://docs.python.org/py3k/library/logging.html#logging.Logger.debug) does > not actually work in Python 3.2: > > Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build > 5664)] on darwin Type "help", "copyright", "credits" or "license" for more > information. >>>> import logging FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s >>>> %(message)s' logging.basicConfig(format=FORMAT) d = {'clientip': >>>> '192.168.0.1', 'user': 'fbloggs'} logging.warning('Protocol problem: >>>> %s', 'connection reset', extra=d) > Traceback (most recent call last): File > "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", > > line 934, in emit > msg = self.format(record) File > "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", > > line 809, in format > return fmt.format(record) File > "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", > > line 551, in format > s = self.formatMessage(record) File > "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", > > line 520, in formatMessage > return self._style.format(record) File > "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/logging/__init__.py", > > line 371, in format > return self._fmt % record.__dict__ KeyError: 'asctime' Logged from file > , line 1 > > The problem is that the logger expects to see the exact string "%(asctime)s" > in the format string before it will add the asctime attribute. Using the > "-15" modifier on the asctime causes the match to fail, and the asctime > attribute is not emitted. To fix the example, change %(asctime)-15s to > %(asctime)s: > > Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build > 5664)] on darwin Type "help", "copyright", "credits" or "license" for more > information. >>>> import logging FORMAT = '%(asctime)s %(clientip)s %(user)-8s >>>> %(message)s' logging.basicConfig(format=FORMAT) d = { 'clientip' : >>>> '192.168.0.1', 'user' : 'fbloggs' } logger = >>>> logging.getLogger('tcpserver') logger.warning('Protocol problem: %s', >>>> 'connection reset', extra=d) > 2011-07-12 13:39:44,317 192.168.0.1 fbloggs Protocol problem: connection > reset > > This also reflects a problem in the library in that it is not flexible enough > to understand different formats. As a separate matter, perhaps the library > could be amended to always include the asctime field (the asctime string > could be lazily computed by using a class instance for which the __str__ > method produces the actual formatted date), rather than trying to guess when > it is needed. > > Robert > > > _______________________________________________ docs mailing list > docs at python.org http://mail.python.org/mailman/listinfo/docs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk4dTigACgkQN9GcIYhpnLA7fACfcagCE7c74yOSxzwYb8UKhXzI rioAnRaHw2PTrxcRA1j5eBm3xy4dKFy9 =5S06 -----END PGP SIGNATURE----- From report at bugs.python.org Wed Jul 13 10:13:31 2011 From: report at bugs.python.org (July Tikhonov) Date: Wed, 13 Jul 2011 08:13:31 +0000 Subject: [docs] [issue12547] whatsnew/3.3: error in example about nntplib In-Reply-To: <1310544811.28.0.517615627121.issue12547@psf.upfronthosting.co.za> Message-ID: <1310544811.28.0.517615627121.issue12547@psf.upfronthosting.co.za> New submission from July Tikhonov : >>> from nntplib import NNTP >>> with nntplib.NNTP('news.gmane.org') as n: will not work. It should be >>> import nntplib >>> with nntplib.NNTP('news.gmane.org') as n: or >>> from nntplib import NNTP >>> with NNTP('news.gmane.org') as n: ---------- assignee: docs at python components: Documentation files: whatsnew.3.3.nntplib.example.diff keywords: patch messages: 140228 nosy: docs at python, july priority: normal severity: normal status: open title: whatsnew/3.3: error in example about nntplib type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file22638/whatsnew.3.3.nntplib.example.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 10:18:41 2011 From: report at bugs.python.org (Bharadwaj) Date: Wed, 13 Jul 2011 08:18:41 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310545121.59.0.106625221844.issue12524@psf.upfronthosting.co.za> Bharadwaj added the comment: Newbie to python dev. This looks like a good issue to get started with and I am interested in creating a patch. What should the new URL be? python.org:80? ---------- nosy: +barbi _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 10:22:28 2011 From: report at bugs.python.org (Ezio Melotti) Date: Wed, 13 Jul 2011 08:22:28 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310545348.68.0.589870880239.issue12524@psf.upfronthosting.co.za> Ezio Melotti added the comment: You'll need a page that accepts POST requests, possibly returning some meaningful value, and without side effects (e.g. adding messages is usually done via POST, but we don't want a new message for every user that tries the example). ---------- nosy: +ezio.melotti _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 10:35:20 2011 From: report at bugs.python.org (Bharadwaj) Date: Wed, 13 Jul 2011 08:35:20 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310546120.71.0.0110976239073.issue12524@psf.upfronthosting.co.za> Bharadwaj added the comment: Is there someway to create a test page in python.org instead of an external domain? This can ensure many people have access to it and will not become defunct. Please suggest next steps to proceed with this ticket. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 10:40:52 2011 From: report at bugs.python.org (Ezio Melotti) Date: Wed, 13 Jul 2011 08:40:52 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310546452.14.0.386925318636.issue12524@psf.upfronthosting.co.za> Ezio Melotti added the comment: FWIW the 'show issue' button on the left sidebar of http://bugs.python.org/ uses POST, so maybe you could send an issue number as request there to get back the issue page. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 10:45:00 2011 From: report at bugs.python.org (Roundup Robot) Date: Wed, 13 Jul 2011 08:45:00 +0000 Subject: [docs] [issue12547] whatsnew/3.3: error in example about nntplib In-Reply-To: <1310544811.28.0.517615627121.issue12547@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset e0cd35660ae9 by Ezio Melotti in branch 'default': #12547: Fix import and output in nntplib example. Initial patch by July Tikhonov. http://hg.python.org/cpython/rev/e0cd35660ae9 ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 10:48:34 2011 From: report at bugs.python.org (Ezio Melotti) Date: Wed, 13 Jul 2011 08:48:34 +0000 Subject: [docs] [issue12547] whatsnew/3.3: error in example about nntplib In-Reply-To: <1310544811.28.0.517615627121.issue12547@psf.upfronthosting.co.za> Message-ID: <1310546914.65.0.406007535823.issue12547@psf.upfronthosting.co.za> Ezio Melotti added the comment: Fixed, thanks for the report and the patch! ---------- nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 14:15:48 2011 From: report at bugs.python.org (Ezio Melotti) Date: Wed, 13 Jul 2011 12:15:48 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1310559348.36.0.228900126353.issue12531@psf.upfronthosting.co.za> Changes by Ezio Melotti : ---------- nosy: +ezio.melotti _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 16:14:50 2011 From: report at bugs.python.org (Sye van der Veen) Date: Wed, 13 Jul 2011 14:14:50 +0000 Subject: [docs] [issue10224] Build 3.x documentation using python3.x In-Reply-To: <1288304199.49.0.7053863257.issue10224@psf.upfronthosting.co.za> Message-ID: <1310566490.41.0.0756822056773.issue10224@psf.upfronthosting.co.za> Sye van der Veen added the comment: When I built the documentation on Win7, it failed with a SyntaxError, and it took some digging to find the reason why. I was hoping that issuing this warning would save others the trouble. I agree: on Windows, PYTHON is rarely set. However, look in make.bat: you'll see that when PYTHON is not already set, it's set to ..\pcbuild\python, which is Python 3. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 17:01:21 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Wed, 13 Jul 2011 15:01:21 +0000 Subject: [docs] [issue4819] Misc/cheatsheet needs updating In-Reply-To: <1230988594.32.0.497089911482.issue4819@psf.upfronthosting.co.za> Message-ID: <1310569281.38.0.0268808175276.issue4819@psf.upfronthosting.co.za> ?ric Araujo added the comment: I spent a few minutes updating the cheatsheet. I think that the document is an outdated duplicate of random parts of the docs (syntax, man page, library reference, etc.) that?s rather hard to maintain for little benefit. Is there any evidence that people used it? I?d like to propose that we delete the file in 2.7 (it?s already gone from 3.2+) and that we start anew on a real cheatsheet, i.e. one or two A4 pages, in HTML and PDF and t-shirts, which are a useful summary of commonly used things. I think one Python language cheatsheet and one standard library cheatsheet could be useful (one set for 2.7, another one for 3.2). Regarding process, I?m not sure using a wiki or a non-reST file not included in the real docs is the way to go. Maybe volunteers could work with the PSF team that?s producing a brochure? (http://brochure.getpython.info/ ?I discovered it recently, and don?t know at all who works on it and how) ---------- versions: -Python 3.1 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 17:18:36 2011 From: report at bugs.python.org (Ezio Melotti) Date: Wed, 13 Jul 2011 15:18:36 +0000 Subject: [docs] [issue4819] Misc/cheatsheet needs updating In-Reply-To: <1230988594.32.0.497089911482.issue4819@psf.upfronthosting.co.za> Message-ID: <1310570316.54.0.846793486386.issue4819@psf.upfronthosting.co.za> Ezio Melotti added the comment: Another idea might be to have a "cheatsheet" in the official docs with links to the right section and possibly a minimal description. It would be useful to get a quick overview of the features of the language and use the links to jump to the extended doc without having duplication. Otherwise the examples could be moved to an external file that gets included both in the cheatsheet and in the official doc. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 17:50:19 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Wed, 13 Jul 2011 15:50:19 +0000 Subject: [docs] [issue11260] smtpd-as-a-script feature should be documented and should use argparse In-Reply-To: <1298232231.08.0.088023732748.issue11260@psf.upfronthosting.co.za> Message-ID: <1310572219.85.0.20983997285.issue11260@psf.upfronthosting.co.za> ?ric Araujo added the comment: Here are comments on the doc patch. +Run as a script +--------------- I?d say ?Command-Line Interface?. +``smtpd`` is a pluggable RFC 2821-compliant SMTP proxy. :mod:`smtpd` is also a pluggable etc. +.. program:: smtpd.py Strip the .py + the ``setuid`` Please use markup like :func:`os.setuid`. + flag in order to run ``smtpd`` as a regular user. Use :mod:`smtpd` or :program:`smtp` (not very important). + Turns on verbose debugging prints (to stderr) Turn on verbose debbugging, which prints to stderr. + The concrete SMTP proxy class ``smtpd`` should use to perform its + proxying. Could you add a link to a section of the doc that defines such classes? +.. option:: localhost:localport Currently undocumented. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 13 18:06:27 2011 From: report at bugs.python.org (Eric Snow) Date: Wed, 13 Jul 2011 16:06:27 +0000 Subject: [docs] [issue10224] Build 3.x documentation using python3.x In-Reply-To: <1288304199.49.0.7053863257.issue10224@psf.upfronthosting.co.za> Message-ID: <1310573186.99.0.482893144016.issue10224@psf.upfronthosting.co.za> Changes by Eric Snow : ---------- nosy: +ericsnow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 14 15:29:31 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 14 Jul 2011 13:29:31 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: <1310650171.77.0.0964288399888.issue10403@psf.upfronthosting.co.za> Changes by Ezio Melotti : ---------- nosy: +ezio.melotti _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 14 16:15:43 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Thu, 14 Jul 2011 14:15:43 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: <1310652943.07.0.629760724759.issue10403@psf.upfronthosting.co.za> Senthil Kumaran added the comment: Hello Eric, I missed noticing Alexander's comments in the reitveld, I looked only at tracker then. I see that some of them can be addressed. Like using members (components) of the field, instead of attributes when it is not an attribute. Shall correct it. Thanks. ---------- _______________________________________ Python tracker _______________________________________ From thavu at ucdavis.edu Fri Jul 15 03:53:49 2011 From: thavu at ucdavis.edu (Thanh Vu) Date: Thu, 14 Jul 2011 18:53:49 -0700 Subject: [docs] Up arrow functionality, Previous input Message-ID: Was there ever a command to repeat the previous user keyboard input in the Python IDLE? I find that this is a major problem, and I could not find it anywhere In the documentation, nor could I Google it. Any thoughts on implementing the up key to? -- Thanh From report at bugs.python.org Fri Jul 15 18:05:43 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Fri, 15 Jul 2011 16:05:43 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1310745943.52.0.931549886077.issue1626300@psf.upfronthosting.co.za> ?ric Araujo added the comment: In distutils docs, I?ve mentioned ?setup.py thing? as an alternative to ?python setup.py thing? on Windows. For packaging, the situation is different: there is no local script anymore, people will have to invoke the global pysetup command. Would it work if I add a note like this: In order to run pysetup commands, you need to add the Python Scripts directory to your PATH *include link to relevant section of docs.python.org/using*. BTW, do scripts work without file extensions, or does the installer add .py? If it?s the latter, then my doc note will need to mention that too. ---------- nosy: +terry.reedy versions: +Python 3.3 -Python 3.1 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 15 20:09:41 2011 From: report at bugs.python.org (Petri Lehtinen) Date: Fri, 15 Jul 2011 18:09:41 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310753381.37.0.812951076691.issue12524@psf.upfronthosting.co.za> Petri Lehtinen added the comment: There's also http://httpstat.us/. You can send any request (also POST) to http://httpstat.us/200 and it gives you a 200 OK response. I recall seeing other similar services, but didn't find them quickly. ---------- nosy: +petri.lehtinen _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 15 20:36:40 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jul 2011 18:36:40 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1310755000.24.0.919774467148.issue1626300@psf.upfronthosting.co.za> Terry J. Reedy added the comment: On Windows, scripts run with whatever name -- no extension or other extensions. I have tested this from both IDLE and command line. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 15 21:25:51 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Fri, 15 Jul 2011 19:25:51 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1310757951.29.0.925939252566.issue12531@psf.upfronthosting.co.za> Terry J. Reedy added the comment: This is just the tip of the iceberg as far as needed symbol index entries goes. Nearly 3 years ago, I wrote a Python 3 symbol glossary "Python3 Syntax Symbol Uses" that was complete as far as I knew then. I think most of the entries there should have a corresponding index entry in the official docs. Link to download/view is https://code.google.com/p/xploro/downloads/detail?name=PySymbols.html&can=1&q= That has 7 entries for '*': *: In function parameter list, make following unstarred names keyword only. P *parameter_name: Function parameter bound to a tuple of extra positional arguments, any following unstarred names are keyword only. P *iterable: In a call, unpack iterable items as arguments. P *assignment_target: Starred target in assignment statement gets extra items from iterable. I number1 * number2: Number multiplication operator. I n * sequence or sequence * n: Operator to concatenate n copies of sequence. S from module import *: Import all public (non-private) names from the module. /P/I/S == 'nofix', prefix, infix, suffix. I have been planning to work on a patch 'sometime', but would be happy if someone else grabbed the above and ran with it (and expanded the title of this issue). I believe existing docs can get additions like this. ---------- nosy: +terry.reedy versions: +Python 2.7, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Fri Jul 15 22:36:02 2011 From: report at bugs.python.org (Eric Snow) Date: Fri, 15 Jul 2011 20:36:02 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1310762162.24.0.612948886345.issue12531@psf.upfronthosting.co.za> Changes by Eric Snow : ---------- nosy: +ericsnow _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 01:25:48 2011 From: report at bugs.python.org (Rafe Kettler) Date: Fri, 15 Jul 2011 23:25:48 +0000 Subject: [docs] [issue12574] Documentation for Queue in 2.x has an incorrect title In-Reply-To: <1310772348.87.0.605438364285.issue12574@psf.upfronthosting.co.za> Message-ID: <1310772348.87.0.605438364285.issue12574@psf.upfronthosting.co.za> New submission from Rafe Kettler : The documentation for Queue in all versions of Python 2.7 and 2.6 (see http://docs.python.org/release/2.6.7/library/queue.html#module-Queue for the 2.7 docs) has the title "queue -- A synchronized queue class." The module, however, is named "Queue" in all of 2.x. So, while the title is appropiate for 3.x, it's incorrect for 2.x. I can make a patch, as well. ---------- assignee: docs at python components: Documentation messages: 140475 nosy: docs at python, rafe.kettler priority: normal severity: normal status: open title: Documentation for Queue in 2.x has an incorrect title versions: Python 2.6, Python 2.7 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 10:26:55 2011 From: report at bugs.python.org (Bharadwaj) Date: Sat, 16 Jul 2011 08:26:55 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310804815.74.0.504581542877.issue12524@psf.upfronthosting.co.za> Changes by Bharadwaj : ---------- keywords: +patch Added file: http://bugs.python.org/file22674/http_example.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 10:41:11 2011 From: report at bugs.python.org (Georg Brandl) Date: Sat, 16 Jul 2011 08:41:11 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310805671.41.0.489171073354.issue12524@psf.upfronthosting.co.za> Georg Brandl added the comment: httpstat.us is has been registered quite recently, and is titled as an "experiment" in the footer. I'd rather use something more likely to be persistent. bugs.python.org seems a better choice. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 11:04:03 2011 From: report at bugs.python.org (Eli Bendersky) Date: Sat, 16 Jul 2011 09:04:03 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1310807043.84.0.00492707140306.issue12434@psf.upfronthosting.co.za> Eli Bendersky added the comment: The difference between 2.6 and 2.7 stems from the rewrite of the IO library in C that was made for 2.7 The error Terry sees gets thrown here (in Modules/_io/stringio.c): if (!PyUnicode_Check(obj)) { PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'", Py_TYPE(obj)->tp_name); return NULL; } Therefore, I propose to change this error message to: "unicode argument expected, got '%s'" as Terry suggested. Adding Antoine, Benjamin and Daniel (listed as experts on IO) to nosy. Is there an objection to making this change in the error message? ---------- nosy: +benjamin.peterson, pitrou, stutzbach _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 11:06:36 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Sat, 16 Jul 2011 09:06:36 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310805671.41.0.489171073354.issue12524@psf.upfronthosting.co.za> Message-ID: <20110716090628.GA2302@mathmagic> Senthil Kumaran added the comment: Also, it does not say or "advertise" about POST, it gives examples for GET. I find Ezio's suggestion using bugs.python.org as a good one. ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 11:30:21 2011 From: report at bugs.python.org (Eli Bendersky) Date: Sat, 16 Jul 2011 09:30:21 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1310808621.02.0.355902187228.issue12531@psf.upfronthosting.co.za> Eli Bendersky added the comment: Peter, doesn't your patch also refer to the meaning of * and ** in function definitions? I would argue that the missing reference is to a paragraph further down: [...] If the syntax *expression appears in the function call, expression must evaluate to a sequence. Elements from this sequence [...] Terry, the glossary you compiled certainly looks comprehensive. However, I wouldn't delay local fixes like the one discussed here until "the grand scheme" is committed. ---------- _______________________________________ Python tracker _______________________________________ From sandro.tosi at gmail.com Sat Jul 16 12:10:15 2011 From: sandro.tosi at gmail.com (Sandro Tosi) Date: Sat, 16 Jul 2011 12:10:15 +0200 Subject: [docs] programming newbie In-Reply-To: References: Message-ID: Hello dawud, On Mon, Jul 4, 2011 at 20:41, dawud barber wrote: > Hi. I went to python.org web site, looking to download release 3 of Python. > Had trouble locating it. This is not the right mailing list where to ask about that, since here we get reports about bugs in the documentation of Python. Probably the best place for your is to ask for support in the python-list [1] [1] http://mail.python.org/mailman/listinfo/python-list Anyhow, going from http://python.org, there's a link on the left column named "Download": http://python.org/download/ - there you can find te version of python we distribute Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi From report at bugs.python.org Sat Jul 16 12:43:32 2011 From: report at bugs.python.org (Antoine Pitrou) Date: Sat, 16 Jul 2011 10:43:32 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1310807043.84.0.00492707140306.issue12434@psf.upfronthosting.co.za> Message-ID: <1310812943.3630.0.camel@localhost.localdomain> Antoine Pitrou added the comment: > The error Terry sees gets thrown here (in Modules/_io/stringio.c): > > if (!PyUnicode_Check(obj)) { > PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'", > Py_TYPE(obj)->tp_name); > return NULL; > } > > Therefore, I propose to change this error message to: > > "unicode argument expected, got '%s'" > > as Terry suggested. > > Adding Antoine, Benjamin and Daniel (listed as experts on IO) to nosy. > > Is there an objection to making this change in the error message? No, the proposal is right. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 16:08:17 2011 From: report at bugs.python.org (Eli Bendersky) Date: Sat, 16 Jul 2011 14:08:17 +0000 Subject: [docs] [issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character In-Reply-To: <1308628210.93.0.613061897988.issue12380@psf.upfronthosting.co.za> Message-ID: <1310825297.07.0.461036458998.issue12380@psf.upfronthosting.co.za> Eli Bendersky added the comment: On one hand, I agree that the situation isn't intuitive. Why should some methods of bytearray accept bytearrays, and some shouldn't? On the other hand, this actually has rather deep implementation reasons. Methods like 'translate' are implemented in Objects/bytearrayobject.c On the other hand, ljust, rjust and center are taken from stringlib. Now, stringlib is generic code, and has some strict argument checking. For example, in stringlib_ljust: if (!PyArg_ParseTuple(args, "n|c:ljust", &width, &fillchar)) return NULL; The 'c' format to PyArg_ParseTuple expects an object that passes PyBytes_Check, IOW a bytes object or a subclass thereof. bytearray is not a subclass of bytes, hence the problem. The solution could be global, to allow bytearray fit the 'c' format of PyArg_ParseTuple. Then one would also be able to pass a bytearray into other stringlib methods requiring the 'c' format. One way or the other, this is of course doable. A decision has to be made though - is the nuisance annoying enough to warrant such an API change? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sat Jul 16 16:51:41 2011 From: report at bugs.python.org (Eli Bendersky) Date: Sat, 16 Jul 2011 14:51:41 +0000 Subject: [docs] [issue12574] Documentation for Queue in 2.x has an incorrect title In-Reply-To: <1310772348.87.0.605438364285.issue12574@psf.upfronthosting.co.za> Message-ID: Eli Bendersky added the comment: > The documentation for Queue in all versions of Python 2.7 and 2.6 (see > http://docs.python.org/release/2.6.7/library/queue.html#module-Queue for > the 2.7 docs) has the title "queue -- A synchronized queue class." The > module, however, is named "Queue" in all of 2.x. So, while the title is > appropiate for 3.x, it's incorrect for 2.x. > > I can make a patch, as well. > Sure, make a patch for 2.7 (the 2.6 line is now in "security only" mode). Eli ---------- nosy: +eli.bendersky Added file: http://bugs.python.org/file22676/unnamed _______________________________________ Python tracker _______________________________________ -------------- next part --------------

The documentation for Queue in all versions of Python 2.7 and 2.6 (see http://docs.python.org/release/2.6.7/library/queue.html#module-Queue for the 2.7 docs) has the title "queue -- A synchronized queue class." The module, however, is named "Queue" in all of 2.x. So, while the title is appropiate for 3.x, it's incorrect for 2.x.

I can make a patch, as well.

Sure, make a patch for 2.7 (the 2.6 line is now in "security only" mode).

Eli

From report at bugs.python.org Sat Jul 16 18:08:00 2011 From: report at bugs.python.org (Rafe Kettler) Date: Sat, 16 Jul 2011 16:08:00 +0000 Subject: [docs] [issue12574] Documentation for Queue in 2.x has an incorrect title In-Reply-To: <1310772348.87.0.605438364285.issue12574@psf.upfronthosting.co.za> Message-ID: <1310832480.85.0.955321578744.issue12574@psf.upfronthosting.co.za> Rafe Kettler added the comment: Okay, here's a patch. I also went ahead and added my name to ACKS, since this is my 3rd or 4th patch. Rafe ---------- keywords: +patch Added file: http://bugs.python.org/file22677/queue_docs.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 04:54:53 2011 From: report at bugs.python.org (Roundup Robot) Date: Sun, 17 Jul 2011 02:54:53 +0000 Subject: [docs] [issue12574] Documentation for Queue in 2.x has an incorrect title In-Reply-To: <1310772348.87.0.605438364285.issue12574@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 60ce5f279a5e by Eli Bendersky in branch '2.7': Issue #12574: correct capitalization of the Queue module. Patch by Rafe Kettler http://hg.python.org/cpython/rev/60ce5f279a5e ---------- nosy: +python-dev _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 04:56:59 2011 From: report at bugs.python.org (Eli Bendersky) Date: Sun, 17 Jul 2011 02:56:59 +0000 Subject: [docs] [issue12574] Documentation for Queue in 2.x has an incorrect title In-Reply-To: <1310772348.87.0.605438364285.issue12574@psf.upfronthosting.co.za> Message-ID: <1310871419.49.0.118384404022.issue12574@psf.upfronthosting.co.za> Changes by Eli Bendersky : ---------- resolution: -> fixed status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 10:59:21 2011 From: report at bugs.python.org (Catalin Iacob) Date: Sun, 17 Jul 2011 08:59:21 +0000 Subject: [docs] [issue12577] Misleading shutil.move docs regarding when os.rename is used In-Reply-To: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> Message-ID: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> New submission from Catalin Iacob : I recently tried to answer the question: "When moving a file to a destination that is an already existing file, is the destination overwritten?" >From the current docs I understood that if src and dst are on the same filesystem then os.rename is used, if they are on different filesystems then copy + remove is used instead. Since os.rename fails on Windows if the destination exists I concluded that shutil.move would fail on Windows and overwrite dst on Unix. ---------- assignee: docs at python components: Documentation messages: 140520 nosy: catalin.iacob, docs at python priority: normal severity: normal status: open title: Misleading shutil.move docs regarding when os.rename is used versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 11:00:14 2011 From: report at bugs.python.org (Catalin Iacob) Date: Sun, 17 Jul 2011 09:00:14 +0000 Subject: [docs] [issue12577] Misleading shutil.move docs regarding when os.rename is used In-Reply-To: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> Message-ID: <1310893214.16.0.939010185663.issue12577@psf.upfronthosting.co.za> Catalin Iacob added the comment: Attached patch which clarifies that the copy fallback is used whenever os.rename fails not just for the different filesystems case. ---------- keywords: +patch Added file: http://bugs.python.org/file22679/clarify-shutil.move-docs.patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 13:06:20 2011 From: report at bugs.python.org (Roundup Robot) Date: Sun, 17 Jul 2011 11:06:20 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 05f0ffe4e0b3 by Senthil Kumaran in branch '3.2': Fix Issue10403 - datetime documentation clarification based on review in the reitveld by Alexendar belopolsky. http://hg.python.org/cpython/rev/05f0ffe4e0b3 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 13:10:32 2011 From: report at bugs.python.org (Roundup Robot) Date: Sun, 17 Jul 2011 11:10:32 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 3935a1fb1db2 by Senthil Kumaran in branch '2.7': merge from 3.2 - Issue10403 - datetime module documentation changes based on review. http://hg.python.org/cpython/rev/3935a1fb1db2 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Sun Jul 17 13:11:10 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Sun, 17 Jul 2011 11:11:10 +0000 Subject: [docs] [issue10403] Use "member" consistently In-Reply-To: <1289623042.93.0.830099606418.issue10403@psf.upfronthosting.co.za> Message-ID: <1310901070.89.0.94501418418.issue10403@psf.upfronthosting.co.za> Changes by Senthil Kumaran : ---------- status: open -> closed _______________________________________ Python tracker _______________________________________ From sandro.tosi at gmail.com Sun Jul 17 15:46:42 2011 From: sandro.tosi at gmail.com (Sandro Tosi) Date: Sun, 17 Jul 2011 15:46:42 +0200 Subject: [docs] Bug Report In-Reply-To: <4E1D0EDF.4050407@gmail.com> References: <4E1D0EDF.4050407@gmail.com> Message-ID: Hello Rohan, On Wed, Jul 13, 2011 at 05:19, Rohan Bavishi wrote: > ?The math package in both Python 2.7 and Python 2.5 is reporting a strange > error. The sqrt function does not return the correct value for > 1695843602719359844. It returns an answer ending in 0 which is not possible > and it returns the same answer for values above it. Kindly check if the same > is happening ?with you. This is not a bug reporting mailing list (if not related to documentation). I suggest asking on python-list[1] your question. As a side note, 1302245600.0 is the result returned by several calculators. [1] http://mail.python.org/mailman/listinfo/python-list -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi From report at bugs.python.org Mon Jul 18 00:05:12 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Sun, 17 Jul 2011 22:05:12 +0000 Subject: [docs] [issue11468] Improve unittest basic example in the doc In-Reply-To: <1299867342.41.0.388080450116.issue11468@psf.upfronthosting.co.za> Message-ID: <1310940312.31.0.473185442402.issue11468@psf.upfronthosting.co.za> Senthil Kumaran added the comment: I would be +1 if the basic example also highlights setUp and tearDown methods. Those are useful ones for a new comer to know via an example snippet and not just with explanation. ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 00:33:49 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Sun, 17 Jul 2011 22:33:49 +0000 Subject: [docs] [issue12577] Misleading shutil.move docs regarding when os.rename is used In-Reply-To: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> Message-ID: <1310942029.52.0.0641175790476.issue12577@psf.upfronthosting.co.za> Senthil Kumaran added the comment: Should information on Windows behavior, which you experienced be included too? How about - It uses :func:`os.rename` to perform the move. If that fails, for example because src and dst are on different filesystems or in case of Windows where rename cannot be done if dst exists, fallback to copying src (with :func:`copy2`) to the dst and then removing src. ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 00:44:38 2011 From: report at bugs.python.org (Roundup Robot) Date: Sun, 17 Jul 2011 22:44:38 +0000 Subject: [docs] [issue12479] Add HTTPErrorProcessor class definition In-Reply-To: <1309697619.94.0.838258559522.issue12479@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 8d64d47569cb by Senthil Kumaran in branch '3.2': Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi http://hg.python.org/cpython/rev/8d64d47569cb New changeset b2125a6deb96 by Senthil Kumaran in branch 'default': merge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi http://hg.python.org/cpython/rev/b2125a6deb96 New changeset b9ae6be1874d by Senthil Kumaran in branch '2.7': merge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi http://hg.python.org/cpython/rev/b9ae6be1874d ---------- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 01:19:12 2011 From: report at bugs.python.org (Roundup Robot) Date: Sun, 17 Jul 2011 23:19:12 +0000 Subject: [docs] [issue12478] Possible error in HTTPErrorProcessor documentation In-Reply-To: <1309695268.0.0.0456155108685.issue12478@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 70983e8b114a by Senthil Kumaran in branch '3.2': Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response. http://hg.python.org/cpython/rev/70983e8b114a New changeset 04541e33364d by Senthil Kumaran in branch 'default': merge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response. http://hg.python.org/cpython/rev/04541e33364d New changeset edf238312baa by Senthil Kumaran in branch '2.7': merge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response. http://hg.python.org/cpython/rev/edf238312baa ---------- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 03:58:55 2011 From: report at bugs.python.org (Bharadwaj) Date: Mon, 18 Jul 2011 01:58:55 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1310954335.51.0.293530696314.issue12524@psf.upfronthosting.co.za> Bharadwaj added the comment: Newbie here. Please be patient. When I tried using the POST form in this page, I ran into minor issues. 1. The form returns a 302 to the actual issue page. Some other example with 200 may be better. 2. The params are a little weird, with '@' in the names. Might be confusing for newbies. 3. Form action param is '#', which is not a great example. Please suggest if I should continue with this example or find a better one. Code: import http.client, urllib.parse params = urllib.parse.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'}) headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"} conn = http.client.HTTPConnection("bugs.python.org") conn.request("POST", "#", params, headers) response = conn.getresponse() print(response.status, response.reason) data = response.read() conn.close() data b'Redirecting to http://bugs.python.org/issue12524' ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 10:27:11 2011 From: report at bugs.python.org (Catalin Iacob) Date: Mon, 18 Jul 2011 08:27:11 +0000 Subject: [docs] [issue12577] Misleading shutil.move docs regarding when os.rename is used In-Reply-To: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> Message-ID: <1310977631.79.0.214215494841.issue12577@psf.upfronthosting.co.za> Catalin Iacob added the comment: Senthil's proposal in msg140543 has +1 from me. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 15:46:12 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 13:46:12 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1310996772.26.0.978920105037.issue1626300@psf.upfronthosting.co.za> ?ric Araujo added the comment: > On Windows, scripts run with whatever name -- no extension or other > extensions. Thanks, this means that the docs can continue to say just ?pysetup3?, without ?.py?. (I wonder how Windows manages to run the script without file extension!) > I have tested this from both IDLE and command line. You can run command-line scripts from IDLE? Can you also comment on my proposed note about adding Scripts to PATH? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 16:03:46 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 14:03:46 +0000 Subject: [docs] [issue12479] Add HTTPErrorProcessor class definition In-Reply-To: <1309697619.94.0.838258559522.issue12479@psf.upfronthosting.co.za> Message-ID: <1310997826.58.0.791442932058.issue12479@psf.upfronthosting.co.za> ?ric Araujo added the comment: It seems to me that the doc after the patch is barely more helpful. It does not explain when and how one would see or use the class, nor what it does. ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 16:07:42 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 14:07:42 +0000 Subject: [docs] [issue12479] Add HTTPErrorProcessor class definition In-Reply-To: <1309697619.94.0.838258559522.issue12479@psf.upfronthosting.co.za> Message-ID: <1310998062.17.0.320532219765.issue12479@psf.upfronthosting.co.za> ?ric Araujo added the comment: Ah, I see that the class is referenced earlier in the file, and that its methods come after. I?d put the class definition just before the methods. (I would even refactor the reST to use nested class/method combo, but that?s a minor markup cleanup, not a content improvement.) ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 16:21:32 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 14:21:32 +0000 Subject: [docs] [issue11468] Improve unittest basic example in the doc In-Reply-To: <1299867342.41.0.388080450116.issue11468@psf.upfronthosting.co.za> Message-ID: <1310998892.87.0.336969112059.issue11468@psf.upfronthosting.co.za> ?ric Araujo added the comment: I think there?s value in accepting the current patch as really basic example, and then see if the section about setting up and tearing down also has a very simple example. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 16:57:07 2011 From: report at bugs.python.org (Chris Lambacher) Date: Mon, 18 Jul 2011 14:57:07 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1311001027.24.0.499221834073.issue1626300@psf.upfronthosting.co.za> Chris Lambacher added the comment: I don't think that is the default state. You need to add .py to the PATHEXT environment variable: http://effbot.org/pyfaq/how-do-i-make-python-scripts-executable.htm Maybe Terry did this at some point? My windows box certainly does not have it and I have 2.6 and 2.7 installed. I don't have a 3.x install so I can't check if that is new in 3. ---------- nosy: +lambacck _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 17:28:18 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 18 Jul 2011 15:28:18 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1311002898.51.0.674525056512.issue1626300@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I perhaps misunderstood your question. I ran files from the command line as as 'python whatever', not 'whatever' so only python would care about an extension. I do not have a file association to 'run' a file, with or without .py. I presume IDLE does same when one RUNs a file, except with pythonw. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 17:39:22 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 15:39:22 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1311003562.45.0.47024284938.issue1626300@psf.upfronthosting.co.za> ?ric Araujo added the comment: The original bug is that the distutils docs use commands like ?python setup.py spam? all over the place, and they don?t typically work > because the python executable is not in the path in the default > install. 'setup.py install' will work since .py files are associated > with python.exe (quoted from the first message). I added a note to instruct Windows users to mentally replace those commands with ?setup.py spam?. Now my concern is about packaging: In a typical Windows install, can people run ?pysetup3 spam?? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 17:49:42 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 15:49:42 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1311004182.29.0.682166492885.issue12531@psf.upfronthosting.co.za> ?ric Araujo added the comment: > [...] If the syntax *expression appears in the function call, > expression must evaluate to a sequence. An iterable :) ---------- nosy: +eric.araujo -ericsnow, terry.reedy versions: -Python 2.7, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 17:59:16 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Mon, 18 Jul 2011 15:59:16 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1311004756.09.0.049908966746.issue12531@psf.upfronthosting.co.za> Changes by ?ric Araujo : ---------- nosy: +ericsnow, terry.reedy versions: +Python 2.7, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 18:52:59 2011 From: report at bugs.python.org (Daniel Stutzbach) Date: Mon, 18 Jul 2011 16:52:59 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1310807043.84.0.00492707140306.issue12434@psf.upfronthosting.co.za> Message-ID: Daniel Stutzbach added the comment: On Sat, Jul 16, 2011 at 2:04 AM, Eli Bendersky wrote: > Therefore, I propose to change this error message to: > "unicode argument expected, got '%s'" > as Terry suggested. > Sounds good to me. ---------- Added file: http://bugs.python.org/file22687/unnamed _______________________________________ Python tracker _______________________________________ -------------- next part --------------
On Sat, Jul 16, 2011 at 2:04 AM, Eli Bendersky <report at bugs.python.org> wrote:
Therefore, I propose to change this error message to:
??"unicode argument expected, got '%s'"
??as Terry suggested.

Sounds good to me.??

--
Daniel Stutzbach
From report at bugs.python.org Mon Jul 18 19:08:59 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 18 Jul 2011 17:08:59 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1311008939.38.0.150963176446.issue1626300@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I went back and reread from the beginning, instead of merely answering the question you asked when adding me as nosy. More comments: Windows file associations are so disfunctional that you should not depend on them being anything in particular. I nearly always open files from within applications (IDLE for python files) or with RightClick context menu when an entry specifies the app that will be used (as with 'Edit with Notepad++' (getting Python make such is another issue). The only way I can run from Command Prompt is to cd to the appropriate pythonxy directory and enter 'python full\path\to\file' (with stupid backslashes or 'python -m module' (which looks for module under /Lib). In XP, and I presume later, the term 'DOS box' is obsolete and I would delete it. The 'Command Prompt' app (with caps) is found in the Start/Accessories directory. So I would say "open a Command Prompt window (in Start/Accessories)" Back to your message where you added me. I am not sure of the difference between 'local script' and 'global command'. I do not understand your proposed note, especially "*include link to relevant section of docs.python.org/using*.". Script run without extensions when run with an explicit python command. I was primed to answer this because someone recently, on the tracker or python-list, proposed to 'fix' a problem (wrongly) by adding a .py(o/w) extension check to determine if a file is Python code before running it. I am not sure what 'or does the installer add .py?' could mean. The Windows installer? 'Add' to what? I realize that my answers may appear naive. I hope usefully so. I have used Windows since Win95 and have learned to focus, as described above, on what dependably works with minimal surprise. The extremely few 3rd party Python-based stuff I have installed has either come as a zipped library I could extract into site-packeges or as an independent app to be unzipped elsewhere or installed with a Windows-style installer. I have never used setup.py so no expert advice on its successor from me. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 19:21:06 2011 From: report at bugs.python.org (Chris Lambacher) Date: Mon, 18 Jul 2011 17:21:06 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1311009666.5.0.152188388389.issue1626300@psf.upfronthosting.co.za> Chris Lambacher added the comment: > Now my concern is about packaging: In a typical Windows install, can people run ?pysetup3 spam?? The windows installer does not make any additions to the path so it is unlikely that "pysetup3 spam" will work. There is http://www.python.org/dev/peps/pep-0397/ which addresses running scripts in a multi-version windows environment but I don't think that will help in this case. If you are running more than 1 version of windows there is simple statement that tells you how to install and have the install go to the right interpreter. You are almost best to have a shortcut that gives you a command prompt with the PATH variable correctly set to the desired python instance. That does not help the 2.x crowd or anyone before 3.3 :/ ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 19:39:35 2011 From: report at bugs.python.org (Chris Lambacher) Date: Mon, 18 Jul 2011 17:39:35 +0000 Subject: [docs] [issue1626300] 'Installing Python Modules' does not work for Windows Message-ID: <1311010774.87.0.584674474896.issue1626300@psf.upfronthosting.co.za> Chris Lambacher added the comment: > I am not sure of the difference between 'local script' and 'global command' local script is the setup.py (or for that matter any other script in an arbitrary place in the filesystem. Global command is referring to something installed in %PYTHONINSTALLDIR%\scripts i.e. it is an installed command. This one operates on a specific version instance of python. I for instance have c:\python26\scripts\easy_install.exe and c:\python27\script\easy_install.exe and each of those operates on their own particular version. Neither are in my path. The current state is that I have to either put one of the scripts directories in my path or run easy_install with the full path. My understanding is that pysetup is a replacement for easy_install that will come with 3.3. > I am not sure what 'or does the installer add .py?' could mean. The Windows installer? 'Add' to what? I was referring .py being added to the PATHEXT evironment variable. I think it is safe to say that has not happened and is likely a bad idea. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 21:14:08 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 18 Jul 2011 19:14:08 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1311016448.14.0.493114570589.issue12531@psf.upfronthosting.co.za> Terry J. Reedy added the comment: I would not propose to do everything in one grand patch as it would be way too much to review all at once. A somewhat separate subissue is whether there should be however many separate issues over the next however many years or one master issue with multiple patches. The existing patch is enough to review for now. It needs changes and should add everything needed just for * and **. And there may be some unwritten policy issues. I agree that the directive for * should be moved as Eli says. I think 'statement' should be changed to 'function calls', or maybe 'in function calls' or 'function call operator' for both * and **. The same directives should be added to the tutorial at the top and middle of Tutorial 4.7.4 Unpacking Argument Lists. The existing * and ** 'statement' directives for defs in both tutorial and reference should become 'function defs' (or 'definitions') or 'in def statement'. The existing * 'operator' directive should be 'number multiplication' or 'number multiplication operator' or at least 'number operator'. Perhaps it (and the following) should be duplicated in the tutorial. A new * 'sequence repetition* directive should be added. The existing ** 'operator' directive should be 'number exponentiation'. New 'assigment' and 'import' directives are needed. I think *all* the entries for a given symbol should be considered together so that they can be properly differentiated. We should minimize duplicates that appear like this -- 'statement, [1]' -- and such duplicates should refer to the *same* usage. Policy issues: I think 'statement' should be reserved for statement keywords like def, class, etc. Things in statements should be at least qualified as 'in statement. I see that plain 'operator' is currently used for most or all operators. I think they should at least be qualified as to category -- number operator, seqeunce operator, comparision operator, logic operator, etc. This might tell users all they need to know and would separate overloaded operators like '*'. Both general suggestions follow other usages. Classes are specified as 'class in ', not just 'class'. Functions are specified not just with '()' but also 'in ' Expanding 'statement' to 'in statement' or something would be in the same spirit. Methods are specified as ' method', not just 'method'. Operators should get the same differentiation with at least ' operator' if not more detail. [separate issue note: 'as' seems not to be indexed.] Adding Georg as I am suggesting a deviation from certain precedents (and conformance to others). ---------- nosy: +georg.brandl stage: -> patch review _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Mon Jul 18 21:21:27 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Mon, 18 Jul 2011 19:21:27 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1311016887.57.0.681949350312.issue12531@psf.upfronthosting.co.za> Terry J. Reedy added the comment: > expression must evaluate to a sequence. To be clear, Eli quoted the doc correctly and Eric correctly suggested that 'sequence' needs to be updated to 'iterable' (in at least two places). Since the patch for this issue will be adding something just above, it could just as well make this change also. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 01:31:12 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Mon, 18 Jul 2011 23:31:12 +0000 Subject: [docs] [issue12479] Add HTTPErrorProcessor class definition In-Reply-To: <1310998062.17.0.320532219765.issue12479@psf.upfronthosting.co.za> Message-ID: <20110718233104.GB2599@mathmagic> Senthil Kumaran added the comment: On Mon, Jul 18, 2011 at 02:07:42PM +0000, ?ric Araujo wrote: > I?d put the class definition just before the methods. (I would even > refactor the reST to use nested class/method combo... This is a good suggestion. It would good to do some point in time soon. Thanks! ---------- nosy: +orsenthil _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 02:06:05 2011 From: report at bugs.python.org (Roundup Robot) Date: Tue, 19 Jul 2011 00:06:05 +0000 Subject: [docs] [issue12577] Misleading shutil.move docs regarding when os.rename is used In-Reply-To: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 62048a6eb43c by Senthil Kumaran in branch '3.2': Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob http://hg.python.org/cpython/rev/62048a6eb43c New changeset 912b97ee40a7 by Senthil Kumaran in branch 'default': merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob http://hg.python.org/cpython/rev/912b97ee40a7 New changeset 33f09733612e by Senthil Kumaran in branch '2.7': merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob http://hg.python.org/cpython/rev/33f09733612e ---------- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 05:53:48 2011 From: report at bugs.python.org (Eli Bendersky) Date: Tue, 19 Jul 2011 03:53:48 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: Message-ID: Eli Bendersky added the comment: > > Therefore, I propose to change this error message to: > > "unicode argument expected, got '%s'" > > as Terry suggested. > > > > Sounds good to me. > Terry, what are your thoughts? Can I commit the fix? ---------- Added file: http://bugs.python.org/file22694/unnamed _______________________________________ Python tracker _______________________________________ -------------- next part --------------

> Therefore, I propose to change this error message to:
> ??"unicode argument expected, got '%s'"
> ??as Terry suggested.
>

Sounds good to me.

Terry, what are your thoughts?
Can I commit the fix?
??

From report at bugs.python.org Tue Jul 19 07:11:17 2011 From: report at bugs.python.org (Eli Bendersky) Date: Tue, 19 Jul 2011 05:11:17 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1311052277.02.0.160980436521.issue12434@psf.upfronthosting.co.za> Changes by Eli Bendersky : Removed file: http://bugs.python.org/file22687/unnamed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 07:11:20 2011 From: report at bugs.python.org (Eli Bendersky) Date: Tue, 19 Jul 2011 05:11:20 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1311052280.85.0.867540982502.issue12434@psf.upfronthosting.co.za> Changes by Eli Bendersky : Removed file: http://bugs.python.org/file22694/unnamed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 08:00:56 2011 From: report at bugs.python.org (Terry J. Reedy) Date: Tue, 19 Jul 2011 06:00:56 +0000 Subject: [docs] [issue12434] Strengthen 2.7 io types warning In-Reply-To: <1309288978.39.0.732754105333.issue12434@psf.upfronthosting.co.za> Message-ID: <1311055256.83.0.20221926581.issue12434@psf.upfronthosting.co.za> Terry J. Reedy added the comment: Yes, that would be great. It is better than my initial suggestion. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 15:05:59 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 19 Jul 2011 13:05:59 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1311080759.9.0.489877165746.issue12524@psf.upfronthosting.co.za> ?ric Araujo added the comment: 1. 3xx codes are as fine as 200, IIRC. 2. Agreed, Roundup as very strange form parameters and URIs in general, but that?s not something we can change. 3. Maybe the empty string would work? (It?s a URI reference which means ?same URI as the resource where the form was found? IOW same page). Alternate idea: use example.org. People won?t be able to actually run the example, but is it really important? ---------- nosy: +eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 18:04:50 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Tue, 19 Jul 2011 16:04:50 +0000 Subject: [docs] [issue11176] give more meaningful argument names in argparse documentation In-Reply-To: <1297352937.46.0.470038569364.issue11176@psf.upfronthosting.co.za> Message-ID: <1311091490.17.0.389543780157.issue11176@psf.upfronthosting.co.za> ?ric Araujo added the comment: Hi Westley! Do you still have time to work on this? ---------- keywords: +easy nosy: +eric.araujo versions: +Python 2.7, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Tue Jul 19 20:04:50 2011 From: report at bugs.python.org (=?utf-8?q?Westley_Mart=C3=ADnez?=) Date: Tue, 19 Jul 2011 18:04:50 +0000 Subject: [docs] [issue11176] give more meaningful argument names in argparse documentation In-Reply-To: <1297352937.46.0.470038569364.issue11176@psf.upfronthosting.co.za> Message-ID: <1311098690.15.0.889110973467.issue11176@psf.upfronthosting.co.za> Westley Mart?nez added the comment: I worked on this some time ago; the problem was the size of the documentation, i.e. it was difficult to stay consistent. Do I have time for this? Yes, but I wouldn't get it done anytime soon, and the results could be anywhere from good to bad. As it stands, the documentation is fairly good, so I don't think it's imperative to fix it. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 02:06:30 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Wed, 20 Jul 2011 00:06:30 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1311080759.9.0.489877165746.issue12524@psf.upfronthosting.co.za> Message-ID: <20110720000620.GA2804@mathmagic> Senthil Kumaran added the comment: Hello Eric, On Tue, Jul 19, 2011 at 01:05:59PM +0000, ?ric Araujo wrote: > Alternate idea: use example.org. People won?t be able to actually > run the example, but is it really important? The whole idea is present a usable example. Please don't suggest unusable example. example.org does not support POST. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 05:25:10 2011 From: report at bugs.python.org (Eli Bendersky) Date: Wed, 20 Jul 2011 03:25:10 +0000 Subject: [docs] [issue12531] documentation index entries for * and ** In-Reply-To: <1310385823.58.0.152505903133.issue12531@psf.upfronthosting.co.za> Message-ID: <1311132310.63.0.0469254486656.issue12531@psf.upfronthosting.co.za> Eli Bendersky added the comment: Peter, would you like to submit a corrected patch? ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 09:55:45 2011 From: report at bugs.python.org (Bharadwaj) Date: Wed, 20 Jul 2011 07:55:45 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1311148545.27.0.867658510894.issue12524@psf.upfronthosting.co.za> Changes by Bharadwaj : Added file: http://bugs.python.org/file22704/http_example2.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 16:02:53 2011 From: report at bugs.python.org (Roundup Robot) Date: Wed, 20 Jul 2011 14:02:53 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset ab4d403cb0c0 by Senthil Kumaran in branch '3.2': Fix closes issue12524 - update http.client POST example with a working example. http://hg.python.org/cpython/rev/ab4d403cb0c0 New changeset bc71fff2b6c7 by Senthil Kumaran in branch 'default': merge from 3.2 - Fix closes issue12524 - update http.client POST example with a working example. http://hg.python.org/cpython/rev/bc71fff2b6c7 New changeset b754641a429f by Senthil Kumaran in branch '2.7': merge from 3.2 - Fix closes issue12524 - update http.client POST example with a working example. - Patch contributed by Bharadwaj http://hg.python.org/cpython/rev/b754641a429f ---------- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 16:03:55 2011 From: report at bugs.python.org (Senthil Kumaran) Date: Wed, 20 Jul 2011 14:03:55 +0000 Subject: [docs] [issue12524] change httplib docs POST example In-Reply-To: <1310288732.05.0.896091983102.issue12524@psf.upfronthosting.co.za> Message-ID: <1311170635.86.0.133878125817.issue12524@psf.upfronthosting.co.za> Senthil Kumaran added the comment: Thanks for the patch, Bharadwaj. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 17:00:57 2011 From: report at bugs.python.org (Christoph Schindler) Date: Wed, 20 Jul 2011 15:00:57 +0000 Subject: [docs] [issue12594] Docs for py3k still refer to "MacPython 2.5 folder" In-Reply-To: <1311174057.47.0.56455855185.issue12594@psf.upfronthosting.co.za> Message-ID: <1311174057.47.0.56455855185.issue12594@psf.upfronthosting.co.za> New submission from Christoph Schindler : In http://docs.python.org/py3k/using/mac.html#getting-and-installing-macpython and http://docs.python.org/py3k/using/mac.html#distributing-python-applications-on-the-mac . ---------- assignee: docs at python components: Documentation messages: 140744 nosy: docs at python, hop priority: normal severity: normal status: open title: Docs for py3k still refer to "MacPython 2.5 folder" versions: Python 3.1, Python 3.2 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 17:11:52 2011 From: report at bugs.python.org (=?utf-8?q?=C3=89ric_Araujo?=) Date: Wed, 20 Jul 2011 15:11:52 +0000 Subject: [docs] [issue11176] give more meaningful argument names in argparse documentation In-Reply-To: <1297352937.46.0.470038569364.issue11176@psf.upfronthosting.co.za> Message-ID: <1311174712.72.0.487859227279.issue11176@psf.upfronthosting.co.za> ?ric Araujo added the comment: > I worked on this some time ago; the problem was the size of the > documentation, i.e. it was difficult to stay consistent. I think it?s okay to improve the docs one patch at a time, starting with the simple example referenced in the first message in this bug report, and gradually improving other sections. Do you have a diff with your work, so that your efforts can serve as a base for someone else? > Do I have time for this? Yes, but I wouldn't get it done anytime > soon, and the results could be anywhere from good to bad. That?s why we do reviews :) It?s okay if you don?t have time, I?m interested in working on this some time in the future. ---------- assignee: docs at python -> eric.araujo _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Wed Jul 20 20:53:00 2011 From: report at bugs.python.org (Ned Deily) Date: Wed, 20 Jul 2011 18:53:00 +0000 Subject: [docs] [issue12594] Docs for py3k still refer to "MacPython 2.5 folder" In-Reply-To: <1311174057.47.0.56455855185.issue12594@psf.upfronthosting.co.za> Message-ID: <1311187980.89.0.299078055062.issue12594@psf.upfronthosting.co.za> Ned Deily added the comment: Thanks for the report. The whole "Using Python on a Macintosh" section is very out-of-date and needs a major update. ---------- assignee: docs at python -> ned.deily nosy: +ned.deily stage: -> needs patch versions: +Python 2.7, Python 3.3 -Python 3.1 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 06:21:26 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 04:21:26 +0000 Subject: [docs] [issue12204] str.upper converts to title In-Reply-To: <1306644560.56.0.146552718337.issue12204@psf.upfronthosting.co.za> Message-ID: <1311222086.58.0.0166383380022.issue12204@psf.upfronthosting.co.za> Ezio Melotti added the comment: Here's a patch. I don't think it's necessary to update the docstring. ---------- assignee: docs at python -> ezio.melotti keywords: +patch stage: -> commit review Added file: http://bugs.python.org/file22708/issue12204.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 06:54:56 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 04:54:56 +0000 Subject: [docs] [issue12204] str.upper converts to title In-Reply-To: <1306644560.56.0.146552718337.issue12204@psf.upfronthosting.co.za> Message-ID: <1311224096.44.0.973299842307.issue12204@psf.upfronthosting.co.za> Ezio Melotti added the comment: New patch that factors out the definition of cased characters adding it to a footnote. ---------- Added file: http://bugs.python.org/file22709/issue12204-2.diff _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 07:08:31 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 05:08:31 +0000 Subject: [docs] [issue11975] Fix referencing of built-in types (list, int, ...) In-Reply-To: <1304281262.53.0.265979216697.issue11975@psf.upfronthosting.co.za> Message-ID: <1311224911.57.0.650639754637.issue11975@psf.upfronthosting.co.za> Ezio Melotti added the comment: To distinguish the 'int' in functions.rst from the one in stdtypes.rst (if it works...). ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 07:28:54 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 05:28:54 +0000 Subject: [docs] [issue12298] Sphinx glitch in library/functions In-Reply-To: <1307635612.57.0.782200385704.issue12298@psf.upfronthosting.co.za> Message-ID: <1311226134.71.0.0488993044867.issue12298@psf.upfronthosting.co.za> Changes by Ezio Melotti : ---------- keywords: +easy stage: -> needs patch _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 07:58:37 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 05:58:37 +0000 Subject: [docs] [issue11363] Curses - add missing functions to doc In-Reply-To: <1299005402.55.0.443028099437.issue11363@psf.upfronthosting.co.za> Message-ID: <1311227917.56.0.460914870806.issue11363@psf.upfronthosting.co.za> Ezio Melotti added the comment: FWIW the typo has been fixed in 13c9b93e97ad. If the example is failing another issue should be created. ---------- status: open -> closed _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 08:39:59 2011 From: report at bugs.python.org (Roundup Robot) Date: Thu, 21 Jul 2011 06:39:59 +0000 Subject: [docs] [issue11435] Links to source code should now point to hg repo In-Reply-To: <1299519091.7.0.295996410449.issue11435@psf.upfronthosting.co.za> Message-ID: Roundup Robot added the comment: New changeset 79d2682c4fc5 by Ezio Melotti in branch '3.2': #11435: link to the correct branch. http://hg.python.org/cpython/rev/79d2682c4fc5 New changeset 3028b5ab92c0 by Ezio Melotti in branch 'default': #11435: dummy merge with 3.2. http://hg.python.org/cpython/rev/3028b5ab92c0 ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 08:42:07 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 06:42:07 +0000 Subject: [docs] [issue11435] Links to source code should now point to hg repo In-Reply-To: <1299519091.7.0.295996410449.issue11435@psf.upfronthosting.co.za> Message-ID: <1311230527.47.0.74314057108.issue11435@psf.upfronthosting.co.za> Ezio Melotti added the comment: I fixed the URL in 3.2. > The 2.7 docs link to the Subversion repo. Can I update them? 2.7 doesn't have the source directive, do you want to replace all the svn links manually? If so, either reopen this issue or create a new one. ---------- _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 11:33:42 2011 From: report at bugs.python.org (Ezio Melotti) Date: Thu, 21 Jul 2011 09:33:42 +0000 Subject: [docs] [issue11669] Clarify Lang Ref "Compound statements" footnote In-Reply-To: <1301042574.67.0.975748752077.issue11669@psf.upfronthosting.co.za> Message-ID: <1311240822.71.0.657665339867.issue11669@psf.upfronthosting.co.za> Changes by Ezio Melotti : ---------- nosy: +ncoghlan _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 13:57:06 2011 From: report at bugs.python.org (Nick Coghlan) Date: Thu, 21 Jul 2011 11:57:06 +0000 Subject: [docs] [issue12602] Missing using docs cross-references In-Reply-To: <1311249393.53.0.190511112739.issue12602@psf.upfronthosting.co.za> Message-ID: <1311249426.14.0.91773769342.issue12602@psf.upfronthosting.co.za> Changes by Nick Coghlan : ---------- assignee: -> docs at python components: +Documentation nosy: +docs at python versions: +Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker _______________________________________ From report at bugs.python.org Thu Jul 21 14:10:47 2011 From: report at bugs.python.org (Nick Coghlan) Date: Thu, 21 Jul 2011 12:10:47 +0000 Subject: [docs] [issue12602] Missing using docs cross-references In-Reply-To: <1311249426.14.0.91773769342.issue12602@psf.upfronthosting.co.za> Message-ID: Nick Coghlan added the comment: Should also be an outgoing link to http://bugs.python.org/issue1739468 from the