[issue15245] ast.literal_eval fails on some literals

2012-07-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ah right, that's confusing indeed... Unit tests and doc updates are needed though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245

[issue15257] Misc/.gdbinit:pystack is too brittle

2012-07-05 Thread rian
New submission from rian r...@dropbox.com: the `pystack`, `pystackv`, and `printframe` macros in the sample gdbinit file distributed with python are too fragile. this patch (which relies on gdb 7) is much more robust. -- components: None files: mypatch.diff keywords: patch messages:

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-05 Thread Nefarious CodeMonkey, Jr.
New submission from Nefarious CodeMonkey, Jr. nejuc...@users.sourceforge.net: It was not obvious from the documentation on argparse how to emulate the optparse.OptionParser.allow_interspersed_args feature. Please add something like the following to the section titled Upgrading optparse code

[issue15257] Misc/.gdbinit:pystack is too brittle

2012-07-05 Thread rian
Changes by rian r...@dropbox.com: -- components: +Demos and Tools -None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15257 ___ ___

[issue15257] Misc/.gdbinit:pystack is too brittle

2012-07-05 Thread rian
Changes by rian r...@dropbox.com: -- versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15257 ___ ___

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-05 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: The intro to the Helping with Documentation section of the Developer's Guide-- http://docs.python.org/devguide/docquality.html#helping-with-documentation includes a reference to a Doc/tools/dailybuild.py script, but this script does

[issue15260] Mention how to order Misc/NEWS entries

2012-07-05 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: I think it would help if the Commit Messages and NEWS Entries subsection of the Developer's Guide said something about where in the ordering new Misc/NEWS entries should be added (e.g. at the top or bottom or by importance):

[issue15245] ast.literal_eval fails on some literals

2012-07-05 Thread João Bernardo
Changes by João Bernardo jbv...@gmail.com: Added file: http://bugs.python.org/file26264/ast.py_with_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245 ___

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-05 Thread Richard Oudkerk
New submission from Richard Oudkerk shibt...@gmail.com: In Python 3.3 (but not earlier) os.stat() is documented to work with file descriptors. (os.path.exists() also works with fds since it is implemented in terms of os.stat(), although that is *not* documented.) However, on Windows if fd is

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-05 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: This can probably be fixed by using _PyVerify_fd(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___

[issue15250] document that filecmp.dircmp comparisons are shallow

2012-07-05 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file26265/issue15250-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15250

[issue15245] ast.literal_eval fails on some literals

2012-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. It looks good to me, but I think that adding support for Ellipsis and adding a new parameter to allow extra names are two different requests, but someone more knowledgeable than me about AST may judge differently. My

[issue15257] Misc/.gdbinit:pystack is too brittle

2012-07-05 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15257 ___ ___ Python-bugs-list mailing list

[issue15245] ast.literal_eval fails on some literals

2012-07-05 Thread João Bernardo
João Bernardo jbv...@gmail.com added the comment: Just to be sure: What's a doc update? The `.rst` files are updated automatically with the doc strings? The adding another argument should require a: Changed in version 3.x: Accepts a second argument ... ? --

[issue15245] ast.literal_eval fails on some literals

2012-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: No, the rst documentation is maintained manually. Look for versionchanged in the doc source files or the documentation about writing documentation to see how to document the new argument (and new supported Ellipsis literal). --

[issue15245] ast.literal_eval fails on some literals

2012-07-05 Thread João Bernardo
Changes by João Bernardo jbv...@gmail.com: Added file: http://bugs.python.org/file26266/ast.py_tests_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245 ___

[issue15246] Line coverage for collectionts.abc.Set

2012-07-05 Thread James King
James King ja...@agentultra.com added the comment: How about a working test instead? Let me know if it looks right. -- Added file: http://bugs.python.org/file26267/set_abc_coverage.patch ___ Python tracker rep...@bugs.python.org

[issue15248] In TypeError: 'tuple' object is not callable, explain that a comma may be missing

2012-07-05 Thread Steven D'Aprano
Steven D'Aprano steve+pyt...@pearwood.info added the comment: I think this suggested enhancement is unreasonable and of limited usefulness, and even if it were useful, too specialised to bother with. The obvious message is badly misleading. When I read this: TypeError: 'tuple' object is not

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-05 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file26268/issue-15231-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231

[issue15009] urlsplit can't round-trip relative-host urls.

2012-07-05 Thread Buck Golemon
Buck Golemon buck.gole...@amd.com added the comment: Let's examine x:// absolute-URI = scheme : hier-part [ ? query ] hier-part = // authority path-abempty So this is okay if authority and path-abempty can both be empty strings. authority = [ userinfo @ ] host [ : port ] host

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-07-05 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14202 ___ ___ Python-bugs-list

[issue1767933] Badly formed XML using etree and utf-16

2012-07-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Serhiy, note that _SimpleElementPath is now gone in 3.3, since ElementPath.py is always there in stdlib. Could you update the patch to reflect this? Another thing. I'm trying really hard to phase out the doctest tests of etree, replacing them

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2012-07-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Please make sure that the patch(es) apply cleanly to 3.3, since this is the version I'll be focusing on. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-05 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- components: +Library (Lib) stage: - test needed versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14988 ___

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-07-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I see no harm in modifying the signature of the private _serialize_* functions to accept another argument or dict of options. -- ___ Python tracker rep...@bugs.python.org

[issue15248] In TypeError: 'tuple' object is not callable, explain that a comma may be missing

2012-07-05 Thread Ben Longbons
Ben Longbons b.r.longb...@gmail.com added the comment: This kind of debug your code is the kind of thing I've gotten used to from the Clang C/C++ compiler. Granted, compiled languages have an advantage here, but enough residual information remains for the interpreter at runtime. And I am in

<    1   2