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

2012-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Many os functions started to accept file descriptors. I don't know how many are available on Windows, but IMO _PyVerify_fd() could be used for all of them; it's a no-op macro on Unix anyway. -- nosy: +amaury.forgeotdarc, larry

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Mark
New submission from Mark myagn...@students.poly.edu: Consider the following code: from thread import start_new def f(): typo #there is no variable called typo start_new(f, ()) If run from the command line, this produces a traceback. If run from IDLE, it does not. I suspect this is not by

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

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 62b9bfbc3356 by Richard Oudkerk in branch 'default': Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open. http://hg.python.org/cpython/rev/62b9bfbc3356 -- nosy: +python-dev

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

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Many os functions started to accept file descriptors. I don't know how many are available on Windows... On Windows os.stat() seems to be the only one: os.supports_fd {built-in function stat} --

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14649 ___ ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I have attached a patch with tests. -- keywords: +easy, patch stage: - patch review Added file: http://bugs.python.org/file26269/issue-14649-1.patch ___ Python tracker rep...@bugs.python.org

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

2012-07-06 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14649 ___ ___

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

2012-07-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15257 ___ ___ Python-bugs-list mailing

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: #15261 shows us that Windows can crash if you pass in an invalid file handle to Windows POSIX-y functions. We should ensure that functions which accept path-as-an-int-fd guard against this where necessary. I propose a macro, something

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

2012-07-06 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: The 62b9bfbc3356 changeset does more than add the guard against invalid file handles; it also adds documentation to os.path.exists documenting that it now accepts path-as-int-fd. While this modification is fine in principle I would have

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Which other functions are you thinking about? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15263 ___

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Windows will also crash if you pass INVALID_HANDLE_VALUE (which is not a file descriptor) to crt functions... How did you want to use this macro? -- ___ Python tracker rep...@bugs.python.org

[issue15255] spam / garbage report

2012-07-06 Thread andisthermal
andisthermal andisthermal@gmail.com added the comment: #!/usr/bin/env python A small wrapper file for parsing AsciiDoc files at Github. __author__ = Devin Weaver __copyright__ = Copyright (C) 2009 Devin Weaver __license__ = Public Domain __version__ = 0.1 github_asciidoc.py

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Antoine: all the functions enumerated in os.supports_fd. Note that the set of such functions may in fact just be os.stat which is already fixed. Amaury: If you read the checkin that fixes this problem ( 62b9bfbc3356 ) it actually

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b7cfdb48af62 by Nick Coghlan in branch 'default': Issue 14814: Better handling of cases where octet/hextet parsing fails, including ensuring that tracebacks are still clean even when calling class constructors

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine: all the functions enumerated in os.supports_fd. Note that the set of such functions may in fact just be os.stat which is already fixed. As far as I can tell, it is: os.supports_fd {built-in function stat} --

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 30e8f2242190 by Nick Coghlan in branch 'default': Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an exception early when given bytes data of the wrong length. Also removes 2.x backwards

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Every use of _get_osfhandle() should be guarded by _Py_VerifyFd(). Grepping through the source it seems that that is now true, but we could instead use #define _PY_GET_OSFHANDLE(fd) _Py_VerifyFd(fd) ? _get_osfhandle(fd) :

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

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Sorry about that... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___

[issue15247] io.open() is inconsistent re os.open()

2012-07-06 Thread Dave King
Changes by Dave King d...@davbo.org: -- nosy: +davbo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247 ___ ___ Python-bugs-list mailing list

[issue15230] runpy.run_path broken: Breaks scoping; pollutes sys.modules; doesn't set __package__

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: “python3 -m /tmp/b” is invalid IIUC. -m takes a module name, not a path. -- nosy: +eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15230

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

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In 2.7 and newer “setup.py check” is a better interface than rst2html. +1 to list all checks performed by PyPI on some wiki or PyPI doc page (and +1 to add the same checks in distutils2’s check command). -- nosy: +eric.araujo

[issue15235] allow newer berkeley db versions

2012-07-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: allow newer berkley db versions - allow newer berkeley db versions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15235 ___

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The whole file is ordered with newest on top (newest Python version), so I guess it’s implicit for all committers that sections are also ordered with newest on top. It does not actually matter; the contents of one “what’s new in Python W.XyZ”

[issue15264] PyErr_SetFromErrnoWithFilenameObject() undocumented

2012-07-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Title says it all. -- assignee: docs@python components: Documentation, Interpreter Core messages: 164736 nosy: docs@python, pitrou priority: normal severity: normal stage: needs patch status: open title:

[issue15247] io.open() is inconsistent re os.open()

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9cf9527358a5 by Antoine Pitrou in branch '3.2': Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. http://hg.python.org/cpython/rev/9cf9527358a5 New changeset

[issue15247] io.open() is inconsistent re os.open()

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, the issue should be fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247

[issue15256] Typo in error message

2012-07-06 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/issue15256 ___ ___ Python-bugs-list mailing list

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

2012-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Éric: your request is in passive voice. I'm not aware that anybody volunteered document the tests, but I doubt that this wiki page can reasonably be kept up-to-date. So the wiki page will outdate just as the current documentation got

[issue15245] ast.literal_eval fails on some literals

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245 ___ ___

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: I think this is just a simple typo and a consistency issue; not a grammatical issue. The misspelled version was added in a recent commit: [last: 0] marca@SCML-MarcA:~/dev/hg-repos/cpython$ hg log -r 76455 changeset: 76455:085cf1480cfe

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

2012-07-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: A FAQ entry could be added to explain this error, like we already do for the UnboundLocalError: http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value -- nosy: +ezio.melotti

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: collinwinter - components: -Benchmarks nosy: -andisthermal555, collinwinter resolution: fixed - invalid status: open - closed type: security - versions: -3rd party ___ Python tracker

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- hgrepos: -138 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___ Python-bugs-list

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file26270/query.csv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___

[issue15256] Typo in error message

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15259 ___

[issue15265] random.sample() docs unclear on k len(population)

2012-07-06 Thread Roy Smith
New submission from Roy Smith r...@panix.com: The docs don't say what happens if you call random.sample() with a population smaller than k. Experimentally, it raises ValueError, but this should be documented. I would have guessed it would return IndexError, by analogy to random.choice().

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Another way to make it easier for users to run the same command as PyPI locally -- also phrased in the passive voice :) -- would be if PyPI packaged its conversion code as a separate module that could also be run as a stand-alone

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: Attaching patch -- keywords: +patch Added file: http://bugs.python.org/file26271/python_issue_15256.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256

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

2012-07-06 Thread Dave Abrahams
Dave Abrahams d...@boostpro.com added the comment: I won't get to this, FYI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Does the proposed patch to the documentation look okay given the way things are today? I can open an issue on the PyPI tracker to discuss the broader issue or, if you prefer, on the main Python tracker. --

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

2012-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Chris, can you please submit a contrib form? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window. Closing it gives prompt back in Shell window. Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and maybe 64 bit version (you can install

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It does, in the 2.7 branch. You're welcome to port it to Python 3 and put it into 3.x. I don't see the point though, and rather would have the mention removed from the devguide. -- ___ Python

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: ... because the script is absolutely irrelevant to building or helping with the docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15259

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I did yesterday. I will post here when I receive a response. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___

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

2012-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ah, ok. Processing may take some time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree with Raymond. You might, however, emphasize 'normal' in 'normal interpreter termination'. That is the key point. The 'note' merely explains 'abnormal'. -- nosy: +terry.reedy ___ Python

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: Patch with Brett's comments -- Added file: http://bugs.python.org/file26272/python_issue_15256.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: See also issue 14191, which describes the problems of trying to make argparse achieve the goal of the default optparse handling of allow_interspersed_args ! The documentation for that branch of the feature is also seriously incomplete,

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-07-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: See also issue 15258 which points out issues with the converse case. Further testing and development also discovered that in certain error cases, the help message produced by t18-equivalent code was incorrect. t18a.py is an

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ping. The ARM buildbot still fails on test_fs_holes: http://buildbot.python.org/all/builders/ARM%20Ubuntu%203.x/builds/775/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue4011] Create DAG for PEP 101

2012-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think you can make nice graphs with graphviz if you put effort into it :) -- assignee: georg.brandl - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4011

[issue15266] Provide an easy way to check a reST long_description for PyPI

2012-07-06 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: There should be an easy way to check a reST long_description on one's local machine before uploading to PyPI. The check should use the same rules that PyPI uses, so that passing the check locally ensures that PyPI will convert the

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I created issue 15266 for the broader issue. The corresponding issue I made earlier on the PyPI tracker is also referenced there. -- ___ Python tracker rep...@bugs.python.org

[issue15266] Perform the same checks as PyPI for Description field

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This easy way exists: “pysetup run check” checks the rst syntax; retitling. Basically it’s a matter of using the same settings (no file inclusion, etc.) as PyPI and checking the URI schemes. One maintenance issue is the possible discrepancy

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Patch attached. I moved the discussion of NEWS entries to a section before the discussion on commit messages because previously, the commit message discussion referenced NEWS entries before they had been discussed (and not vice

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Patch attached; reference to the script removed. -- keywords: +patch Added file: http://bugs.python.org/file26275/issue-15259-1.patch ___ Python tracker rep...@bugs.python.org

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-06 Thread Tim Smith
New submission from Tim Smith t...@tzs.net: In httplib.py, there is this code to try to get the body length: def _set_content_length(self, body): # Set the content-length based on the body. thelen = None try: thelen = str(len(body)) except

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: the curses configure checks fail if only /usr/include/ncursesw/curses.h is installed (on a Debian/Ubuntu system, uninstall the libncurses5-dev package, and install the libncursesw5-dev package). The attached patch adds

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 707761d59a4a by doko in branch 'default': - Issue #15268: Search curses.h in /usr/include/ncursesw. http://hg.python.org/cpython/rev/707761d59a4a -- nosy: +python-dev ___

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: can be closed if we don't bother to use the wrong header for the checks -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d1958a94d0ff by Ned Deily in branch 'default': Issue #15259: Remove reference to dailybuild.py. http://hg.python.org/devguide/rev/d1958a94d0ff -- nosy: +python-dev ___

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: and only add the dir for the curses.h and nurses.h header checks -- Added file: http://bugs.python.org/file26277/curses2.diff ___ Python tracker rep...@bugs.python.org

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- keywords: +needs review -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks of the patch! I reworded it slightly to completely remove the reference to the script. -- nosy: +ned.deily resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: and a variant, which moves all curses header related check together (curses3.diff) -- keywords: +patch Added file: http://bugs.python.org/file26278/curses3.diff ___ Python tracker

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bbe197bf57a1 by Ned Deily in branch 'default': Issue #15260: Expand information on Misc/NEWS entries. http://hg.python.org/devguide/rev/bbe197bf57a1 -- nosy: +python-dev

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the patch! -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15260

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

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Stephen is right; this sort of guess-the-bug heuristic is out of scope for the CPython interpreter. I believe you grossly under estimate the difficulty of such a this. Consider that idea rejected. What *is* disconcerting is the exact form of

[issue15248] Better explain TypeError: 'tuple' object is not callable

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch title: In TypeError: 'tuple' object is not callable, explain that a comma may be missing - Better explain TypeError: 'tuple' object is not callable versions: +Python 3.4 ___ Python

[issue15251] new.code and new.function crashes Python iterpretter

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In Py3, new.code and new.function become types.CodeType and types.FunctionType. The 'documentation' of their signatures is only available with help(types.xxx). So the library doc issue is 2.7 only. Running with IDLE, 3.3b0, Win7, the

[issue15256] Typo in error message

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___ ___

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15258 ___ ___ Python-bugs-list

[issue15266] Perform the same checks as PyPI for Description field

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: With regard to the maintenance issue, what about the idea of aiming for PyPI to include that logic in a separately packaged module? Then there would be no need to cut and paste -- just include the right version. If that were done,

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In 3.3, you do not need it Unhandled exception in thread started by function f at 0x031D0158 Traceback (most recent call last): File F:\Python\mypy\tem.py, line 2, in f def f(): typo #there is no variable called typo NameError:

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d9c98730e2e8 by Nick Coghlan in branch 'default': Issue 14814: %s implies coercion with str() - remove a lot of redundant str() calls from the ipaddress implementation http://hg.python.org/cpython/rev/d9c98730e2e8

[issue13405] Add DTrace probes

2012-07-06 Thread Justin Venus
Justin Venus justin.ve...@gmail.com added the comment: @jcea I am the owner of the Solaris 11 buildslave[1]. I have configured the build user to have dtrace privileges if you need to run additional tests against it. Let me know if you encounter any additional issues with this system.

[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed

2012-07-06 Thread Justin Venus
Justin Venus justin.ve...@gmail.com added the comment: I have a similar issue on Solaris and a patch[1] to fix it attached to issue 3786. 1) http://bugs.python.org/file26171/bug3786.patch -- nosy: +Justin.Venus ___ Python tracker

[issue15269] Document dircmp.left and dircmp.right

2012-07-06 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: The documentation for the filecmp.dircmp class doesn't mention dircmp.left and dircmp.right. Being aware of this up front would make certain simplifications easier to think of. For example, knowing about these attributes opens up

[issue12927] test_ctypes: segfault with suncc

2012-07-06 Thread Justin Venus
Justin Venus justin.ve...@gmail.com added the comment: I can confirm this issue is resolved on Solaris 11 x86 and has been since '--with-system-ffi' was added to the build rules. -- ___ Python tracker rep...@bugs.python.org

[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-06 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Here's a new patch that keeps things simpler, but still cleans up the concerns about using sys.implementation.cache_tag in PyImport_GetMagicTag(). -- Added file: http://bugs.python.org/file26280/cache_tag_via_sys_var.diff

[issue13552] Compilation issues of the curses module on OpenIndiana

2012-07-06 Thread Justin Venus
Justin Venus justin.ve...@gmail.com added the comment: Does OpenIndiana ship with the gnu version of ncurses like Solaris 11? Headers: /usr/include/ncurses Libraries: /usr/gnu/lib If it matches Solaris, then you can use my patch[1] in issue 3786 to see if that works around the issue, like it

[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-06 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Removed file: http://bugs.python.org/file26280/cache_tag_via_sys_var.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15242 ___

[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag

2012-07-06 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Patch updated to include a doc addition. -- Added file: http://bugs.python.org/file26281/cache_tag_via_sys_var.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15242

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Just letting people know I'm working on a patch that updates the class constructors to give meaningful error messages for malformed addresses, instead of assuming that users can figure it out just by looking at the address. I'm also updating

[issue15269] Document dircmp.left and dircmp.right

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file26282/issue-15269-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15269

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Mark
Mark myagn...@students.poly.edu added the comment: So, I should not hold my breath in the hope of this being fixed in 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15262 ___