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

2012-07-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-l

[issue15246] Line coverage for collectionts.abc.Set

2012-07-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15270] "Economy of Expression" section outdated

2012-07-06 Thread Chris Jerdonek
New submission from Chris Jerdonek : The "Economy of Expression" section of the Dev Guide's "Documenting Python"-- http://docs.python.org/devguide/documenting.html#economy-of-expression says, "The documentation for super() is an example of where a good deal of information was condensed into a

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Mark
Mark added the comment: So, I should not hold my breath in the hope of this being fixed in 2.7? -- ___ Python tracker ___ ___ Python-

[issue15269] Document dircmp.left and dircmp.right

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- keywords: +patch Added file: http://bugs.python.org/file26282/issue-15269-1.patch ___ Python tracker ___ __

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Nick Coghlan
Nick Coghlan 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 the test suite to c

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

2012-07-06 Thread Eric Snow
Eric Snow 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 ___ _

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

2012-07-06 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file26280/cache_tag_via_sys_var.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue13552] Compilation issues of the curses module on OpenIndiana

2012-07-06 Thread Justin Venus
Justin Venus 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 does for Solaris. 1)

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

2012-07-06 Thread Eric Snow
Eric Snow 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 __

[issue12927] test_ctypes: segfault with suncc

2012-07-06 Thread Justin Venus
Justin Venus 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 __

[issue15269] Document dircmp.left and dircmp.right

2012-07-06 Thread Chris Jerdonek
New submission from Chris Jerdonek : 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 the possibility of passin

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

2012-07-06 Thread Justin Venus
Justin Venus 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

[issue13405] Add DTrace probes

2012-07-06 Thread Justin Venus
Justin Venus 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. 1)http://buildbot.python.org/a

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot 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 -- _

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.3, you do not need it >>> Unhandled exception in thread started by 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: global name 'typo' is not defined In 3.2 only

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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, depending on how the pysetu

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15256] Typo in error message

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

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

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy 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 converted example does cr

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

2012-07-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- 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 tracker <

[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 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 the error message

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch! -- nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Roundup Robot
Roundup Robot 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 ___ 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 : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-07-06 Thread Matthias Klose
Matthias Klose 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

[issue15259] "Helping with Documentation" references missing dailybuild.py

2012-07-06 Thread Ned Deily
Ned Deily 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 ___ Python tracker

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

2012-07-06 Thread Matthias Klose
Changes by Matthias Klose : -- keywords: +needs review -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2012-07-06 Thread Matthias Klose
Matthias Klose 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 __

[issue15259] "Helping with Documentation" references missing dailybuild.py

2012-07-06 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2012-07-06 Thread Matthias Klose
Matthias Klose added the comment: can be closed if we don't bother to use the "wrong" header for the checks -- ___ Python tracker ___ ___

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

2012-07-06 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[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 : 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 -I/usr/include/ncursesw to CPPFLAGS fo

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-06 Thread Tim Smith
New submission from Tim Smith : 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 TypeError, te:

[issue15259] "Helping with Documentation" references missing dailybuild.py

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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 __

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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 versa). This seems clearer to

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

2012-07-06 Thread Éric Araujo
Éric Araujo 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 between PyPI’s checks

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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 _

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

2012-07-06 Thread Chris Jerdonek
New submission from Chris Jerdonek : 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 description to HTML succe

[issue4011] Create DAG for PEP 101

2012-07-06 Thread Georg Brandl
Georg Brandl added the comment: I think you can make nice graphs with graphviz if you put effort into it :) -- assignee: georg.brandl -> larry ___ Python tracker ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou 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

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

2012-07-06 Thread Glenn Linderman
Glenn Linderman 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 update/rewrite (same concepts, tho

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-06 Thread Glenn Linderman
Glenn Linderman 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, and the workaround is

[issue15256] Typo in error message

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

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

2012-07-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy 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 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 added the comment: Ah, ok. Processing may take some time. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: I did yesterday. I will post here when I receive a response. -- ___ Python tracker ___ ___ Python-

[issue15259] "Helping with Documentation" references missing dailybuild.py

2012-07-06 Thread Georg Brandl
Georg Brandl added the comment: ... because the script is absolutely irrelevant to building or helping with the docs. -- ___ Python tracker ___

[issue15259] "Helping with Documentation" references missing dailybuild.py

2012-07-06 Thread Georg Brandl
Georg Brandl 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 tracker

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

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy 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 both 32 bit and 64

[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 added the comment: Chris, can you please submit a contrib form? Thanks. -- ___ Python tracker ___ ___ Python-bugs-lis

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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. -- ___ Pyt

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

2012-07-06 Thread Dave Abrahams
Dave Abrahams added the comment: I won't get to this, FYI. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15256] Typo in error message

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

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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 script, and then relied on th

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

2012-07-06 Thread Roy Smith
New submission from Roy Smith : 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(). -- assign

[issue15259] "Helping with Documentation" references missing dailybuild.py

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue15256] Typo in error message

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file26270/query.csv ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: -139 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: -138 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15255] spam / garbage report

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

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

2012-07-06 Thread Ezio Melotti
Ezio Melotti 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 _

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz 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 user:Brett Ca

[issue15245] ast.literal_eval fails on some literals

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[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 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 outdated. Incorporating

[issue15256] Typo in error message

2012-07-06 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks, the issue should be fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

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

2012-07-06 Thread Roundup Robot
Roundup Robot 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 19bd61ed3b3b by Antoine Pitrou in branch 'de

[issue15264] PyErr_SetFromErrnoWithFilenameObject() undocumented

2012-07-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: PyErr_SetFromErrnoWithFilenameObject() undocume

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Éric Araujo
Éric Araujo 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” are not ordered.

[issue15235] allow newer berkeley db versions

2012-07-06 Thread Éric Araujo
Changes by Éric Araujo : -- title: allow newer berkley db versions -> allow newer berkeley db versions ___ Python tracker ___ ___ Pyth

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

2012-07-06 Thread Éric Araujo
Éric Araujo 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 __

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

2012-07-06 Thread Éric Araujo
Éric Araujo added the comment: “python3 -m /tmp/b” is invalid IIUC. -m takes a module name, not a path. -- nosy: +eric.araujo, ncoghlan ___ Python tracker ___ _

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

2012-07-06 Thread Dave King
Changes by Dave King : -- nosy: +davbo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

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

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk added the comment: Sorry about that... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk 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) : INVALID_HANDLE_VALUE -

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot 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 compatibility code from associate

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou 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 {} -- ___ Pytho

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot 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 directly http://hg.python.org/cpython

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Larry Hastings
Larry Hastings 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 deliberately passes in INVAL

[issue15255] spam / garbage report

2012-07-06 Thread andisthermal
andisthermal 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 Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which other functions are you thinking about? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bu

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

2012-07-06 Thread Larry Hastings
Larry Hastings 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 preferred it was subm

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Larry Hastings
New submission from Larry Hastings : #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 like #ifdef MS_WINDO

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

2012-07-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-07-06 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek 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 _

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

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk 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 {} -- ___ Python tracker

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

2012-07-06 Thread Roundup Robot
Roundup Robot 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 ___ Python tra

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Mark
New submission from Mark : 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 design. This caused me endle

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

2012-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 _