[issue15261] os.stat(fd) crashes on Windows if fd does not exist
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15262] Idle does not show traceback in other threads
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 design. This caused me endless grief in debugging until one happy day I discovered the traceback module. I now write: from thread import start_new from traceback import print_exc def f(): try: typo except: print_exc() start_new(f, ()) this works, but I wish I didn't need it. -- components: IDLE messages: 164718 nosy: Mark priority: normal severity: normal status: open title: Idle does not show traceback in other threads type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15262 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15261] os.stat(fd) crashes on Windows if fd does not exist
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15261] os.stat(fd) crashes on Windows if fd does not exist
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} -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14649] doctest.DocTestSuite error misleading when module has no docstrings
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14649] doctest.DocTestSuite error misleading when module has no docstrings
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 http://bugs.python.org/issue14649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15261] os.stat(fd) crashes on Windows if fd does not exist
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14649] doctest.DocTestSuite error misleading when module has no docstrings
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15257] Misc/.gdbinit:pystack is too brittle
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15257 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15263] Guard against invalid file handles in os functions
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 like #ifdef MS_WINDOWS #define FD_GUARD(fd) (_PyVerify_fd(fd) ? (fd) : INVALID_HANDLE_VALUE) #else #define FD_GUARD(fd) (fd) #endif -- assignee: larry components: Library (Lib) messages: 164722 nosy: amaury.forgeotdarc, larry, sbt priority: normal severity: normal stage: needs patch status: open title: Guard against invalid file handles in os functions type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15261] os.stat(fd) crashes on Windows if fd does not exist
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 preferred it was submitted separately. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15263] Guard against invalid file handles in os functions
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15263] Guard against invalid file handles in os functions
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 http://bugs.python.org/issue15263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15255] spam / garbage report
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 -- This is a wrapper file for parsing AsciiDoc files at github. It wraps the current AsciiDoc API. AsciiDoc specifications suggest using the file extension of `.txt` however this causes conflict because there is no way to determine if a text file is an AsciiDoc or not without pre-processing the file. This gives us two simple options: 1. **Parse all text files**. We could have all files ending in `.txt` or ``README.txt`` be parsed through AsciiDoc. It will print pretty text fine even if it isn't formatted as such. However this could be *not what the user expects*. 2. **Pick a unique extension**. We could pick a unique extension (i.e. `.asciidoc`) to prevent clashing. Although not directly suggested by the author of AsciiDoc there is no standard or practice to the contrary. Option two is recommended by myself. Requirements The AsciiDoc API comes in two parts. The first is the system installation of AsciiDoc which has a simple install_. The second part is the API script. You can either copy this to the current directory or the application's lib folder. There is more information on the `API page`_ The `re` package is imported here for the purpose to accomplish E-Mail address cloaking. AsciiDoc does not offer it's own cloaking algorithm like docutils does. So I made a simple one here to do the same. **If the expense of regex's is too high it can be easily commented out.** .. tip:: AsciiDoc by default runs in *safe mode* which means it will not include external files that are **not** in the same directory as the `infile`. However since we use a StringIO through the API it should be based on the current working directory. .. _install: http://www.methods.co.nz/asciidoc/userguide.html .. _API page: http://www.methods.co.nz/asciidoc/asciidocapi.html try: import locale locale.setlocale(locale.LC_ALL, '') except: pass import sys import cStringIO # faster then StringIO from asciidocapi import AsciiDocAPI from asciidocapi import AsciiDocError import re # only needed to simulate cloak_email_addresses def main(): Parses the given AsciiDoc file or the redirected string input and returns the HTML body. Usage: asciidoc2html README.rst asciidoc2html README.rst try: text = open(sys.argv[1], 'r').read() except IOError: # given filename could not be found return '' except IndexError: # no filename given text = sys.stdin.read() infile = cStringIO.StringIO(text) outfile = cStringIO.StringIO() asciidoc = AsciiDocAPI() asciidoc.options('-s') try: asciidoc.execute(infile, outfile, 'xhtml11') except AsciiDocError, strerror: str = %s % (strerror) str = str.replace(, amp;) # Must be done first str = str.replace(, %lt;) str = str.replace(, %gt;) outfile.write (blockquotestrongAsciiDoc ERROR: %s/strong/blockquote % (str)) Cloak email addresses AsciiDoc API does not have a `cloak_email_addresses` option. We can do the same with a set of regex but that can be expensive. Keep section commented to disable. So ``a...@mail.example.com`` becomes: --- a class=reference href=mailto:abc#37;#52;#48;mail#46;example#46;org; abcspan#64;/spanmailspan#46;/spanexamplespan#46;/spanorg/a --- def mangleEmail(matches): email1 = %s#37;#52;#48;%s % (matches.group(1), matches.group(2)) email1 = email1.replace(., #46;) email2 = %sspan#64;/span%s % (matches.group(1), matches.group(2)) email2 = email2.replace(., span#46;/span) return a class=\reference\ href=\mailto:%s\;%s/a % (email1, email2) return re.sub(r'a href=mailto:([^@]+)@([^@]+)([^@]+)@([^@]+)/a', mangleEmail, outfile.getvalue()) #return outfile.getvalue() if __name__ == '__main__': print main() div id=rainbow-message style=display:none Double repositories all the way across the sky!br/ a href=http://docs.python.org/devguide/triaging.html#assigned-to/;What does it mean?/a /div -- assignee: - collinwinter components: +Benchmarks -XML hgrepos: +139 nosy: +andisthermal555, collinwinter resolution: invalid - fixed status: closed - open type: - security Added file: http://bugs.python.org/file26270/query.csv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15263] Guard against invalid file handles in os functions
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 deliberately passes in INVALID_HANDLE_VALUE to win32_fstat. I admit that's kind of where I lost interest. I'm not really a Windows developer anymore, so maybe somebody else should do it. So I have given myself a demotion; I am no longer assigned the bug. -- assignee: larry - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
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 directly http://hg.python.org/cpython/rev/b7cfdb48af62 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15263] Guard against invalid file handles in os functions
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} -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
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 compatibility code from associated tests. http://hg.python.org/cpython/rev/30e8f2242190 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15263] Guard against invalid file handles in os functions
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) : INVALID_HANDLE_VALUE -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15261] os.stat(fd) crashes on Windows if fd does not exist
Richard Oudkerk shibt...@gmail.com added the comment: Sorry about that... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15247] io.open() is inconsistent re os.open()
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15230] runpy.run_path broken: Breaks scoping; pollutes sys.modules; doesn't set __package__
É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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
É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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15235] allow newer berkeley db versions
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15260] Mention how to order Misc/NEWS entries
É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” are not ordered. A nice trick to make Mercurial’s automatic file merge work is to put your entry after the first or the first two entries, so that if you commit, then pull new changesets and merge, the merge will success automatically. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15264] PyErr_SetFromErrnoWithFilenameObject() undocumented
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: PyErr_SetFromErrnoWithFilenameObject() undocumented type: behavior versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15247] io.open() is inconsistent re os.open()
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 19bd61ed3b3b by Antoine Pitrou in branch 'default': Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. http://hg.python.org/cpython/rev/19bd61ed3b3b New changeset d7040647d590 by Antoine Pitrou in branch '2.7': Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. http://hg.python.org/cpython/rev/d7040647d590 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15247] io.open() is inconsistent re os.open()
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15256] Typo in error message
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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 outdated. Incorporating the check into distutils 2 is more feasible, but would still require someone to incorporate updates when we make them. The code is (currently) at https://bitbucket.org/loewis/pypi/raw/default/description_utils.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15245] ast.literal_eval fails on some literals
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15256] Typo in error message
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 user:Brett Cannon br...@python.org date:Sat Apr 21 21:09:46 2012 -0400 summary: Issue #13959: Re-implement imp.find_module() in Lib/imp.py. Link to issue: http://bugs.python.org/issue13959 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15248] In TypeError: 'tuple' object is not callable, explain that a comma may be missing
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15255] spam / garbage report
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 rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15255] spam / garbage report
Changes by Ezio Melotti ezio.melo...@gmail.com: -- hgrepos: -138 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15255] spam / garbage report
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15255] spam / garbage report
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15256] Typo in error message
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15259] Helping with Documentation references missing dailybuild.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15265] random.sample() docs unclear on k len(population)
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(). -- assignee: docs@python components: Documentation messages: 164742 nosy: docs@python, roysmith priority: normal severity: normal status: open title: random.sample() docs unclear on k len(population) type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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 script, and then relied on that. That would eliminate the need to keep different code bases in synch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15256] Typo in error message
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..
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 both 32 bit and 64 bit if you specify different directory -- I have done it.) -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15227 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15259] Helping with Documentation references missing dailybuild.py
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 tracker rep...@bugs.python.org http://bugs.python.org/issue15259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15259] Helping with Documentation references missing dailybuild.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15233] atexit: guarantee order of execution of registered functions?
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 tracker rep...@bugs.python.org http://bugs.python.org/issue15233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15256] Typo in error message
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args
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, and the workaround is more than a single line. -- nosy: +v+python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15258 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters
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 update/rewrite (same concepts, though) that produces a correct help message when errors occur. -- Added file: http://bugs.python.org/file26273/t18a.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14191 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10142] Support for SEEK_HOLE/SEEK_DATA
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 http://bugs.python.org/issue10142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4011] Create DAG for PEP 101
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15266] Provide an easy way to check a reST long_description for PyPI
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 description to HTML successfully. Issue 15231 is related and focuses on the current documentation. See that issue for some background and ideas. Also see the corresponding issue filed on the PyPI tracker: http://sourceforge.net/tracker/?func=detailaid=3539253group_id=66150atid=513503 -- assignee: eric.araujo components: Distutils2 messages: 164759 nosy: alexis, cjerdonek, eric.araujo, loewis, tarek priority: normal severity: normal status: open title: Provide an easy way to check a reST long_description for PyPI ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py
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 http://bugs.python.org/issue15231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15266] Perform the same checks as PyPI for Description field
É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 between PyPI’s checks and distutils2’s; if the PyPI maintainers agree to announce all changes to catalog-sig it could work (just like for classifiers). -- keywords: +easy stage: - needs patch title: Provide an easy way to check a reST long_description for PyPI - Perform the same checks as PyPI for Description field type: - behavior versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15260] Mention how to order Misc/NEWS entries
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 versa). This seems clearer to me. Let me know if I have mischaracterized what is customary, and I can change the wording. -- keywords: +patch Added file: http://bugs.python.org/file26274/issue-15260-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15259] Helping with Documentation references missing dailybuild.py
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 http://bugs.python.org/issue15259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15267] tempfile.TemporaryFile and httplib incompatibility
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 TypeError, te: # If this is a file-like object, try to # fstat its file descriptor try: thelen = str(os.fstat(body.fileno()).st_size) except (AttributeError, OSError): # Don't send a length if this failed if self.debuglevel 0: print Cannot stat!! However, if the body is a temporary file created by tempfile.TemporaryFile(), the len(body) in the first try throws an AttributeError, not a TypeError, on Windows and so it is not caught and unhappiness ensues. It is fine on Macintosh, and I would presume also on Linux. Windows behaves different because on the other systems, TemporaryFile() returns an actual file object, and len() on a file throws TypeError. On Windows, TemporaryFile() returns an object that wraps the underlying file, and calling len() on that objects invokes this from tempfile.py (around line 371): def __getattr__(self, name): # Attribute lookups are delegated to the underlying file # and cached for non-numeric results # (i.e. methods are cached, closed and friends are not) file = self.__dict__['file'] a = getattr(file, name) if not issubclass(type(a), type(0)): setattr(self, name, a) return a Since the underlying file does not have a __len__ method, the getattr fails and throws AttributeError. I'm sorry I'm not submitting a patch, but I do not know enough about the design of these two libraries to know whether the correct fix is for httplib to be more broad in the exceptions that cause it to check for a file when len() fails, or if the object returned by TemporaryFile() should be more closely mimicking a true file object and so should be made to throw TypeError when someone tries to use len() on it. -- components: Windows messages: 164764 nosy: tzs priority: normal severity: normal status: open title: tempfile.TemporaryFile and httplib incompatibility type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
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 -I/usr/include/ncursesw to CPPFLAGS for the tests. I assume that most buildbot systems still have an /usr/include/curses.h installed, so the tests do the intended thing, because the features tested are the same in ncurses and ncursesw, but basically the wrong headers are used for these tests if both /usr/include/curses.h and /usr/include/ncursesw/curses.h are installed. -- components: Build files: curses.diff keywords: patch messages: 164765 nosy: doko priority: normal severity: normal status: open title: curses configure checks fail if only /usr/include/ncursesw/curses.h is installed versions: Python 3.3 Added file: http://bugs.python.org/file26276/curses.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15259] Helping with Documentation references missing dailybuild.py
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
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 http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
Changes by Matthias Klose d...@debian.org: -- keywords: +needs review -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15259] Helping with Documentation references missing dailybuild.py
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
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 rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15260] Mention how to order Misc/NEWS entries
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15260] Mention how to order Misc/NEWS entries
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15248] In TypeError: 'tuple' object is not callable, explain that a comma may be missing
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 the error message for this particular code pattern: Traceback (most recent call last): File pyshell#0, line 3, in module (4, 5, 6) TypeError: 'tuple' object is not callable Uh... There was no attempt to call the tuple (4,5,6), which was misinterpreted as a () call operator with 3 args. What might be a reasonable request is to print a size-limited representation of the object that is not callable but was attempted to be called. Truncated representations would be generally useful for traceback messages. I believe we already have them for unittest error messages. A useful document for someone (or some people) to write would be 'How to interpret exception messages'. That could start with a catalog of messages and possible causes. 'type' would be used to stand for any specific type. The section on TypeErrors would have an heading 'type' object is not callable followed by an explanation There are two general reasons for this message. The first is that you intentionally write expression(args) with the intent that expression evaluate to a callable, but it does not. The second is that you accidentally omit a comma in a sequence and write expression (tuple_members). Note that the error is triggered by the (args) call operator and its line is the one printed. So if expression is on the preceeding line, it will not appear in the traceback. This can happen with either type of error. In the meanwhile, the above is a start for a faq entry. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15248] Better explain TypeError: 'tuple' object is not callable
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 tracker rep...@bugs.python.org http://bugs.python.org/issue15248 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15251] new.code and new.function crashes Python iterpretter
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 converted example does crash after 5 seconds or so even with the missing arg and the pprint gone. The crash is in the new_fun(5) call. I might have gotten something wrong. Or maybe the the help is wrong. -- nosy: +terry.reedy Added file: http://bugs.python.org/file26279/tem.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15251 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15256] Typo in error message
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args
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 mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15266] Perform the same checks as PyPI for Description field
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, depending on how the pysetup change is done, users might be able to use PyPI's latest version even if pysetup was out of synch and hadn't been updated yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15262] Idle does not show traceback in other threads
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: global name 'typo' is not defined In 3.2 only the first line is printed; the traceback is not. The change is due to recent internal improvements in core Python 3 exception handling. (In 3.x, thread was renamed _thread to discourage its direct use and to encourage use of threading instead. I tested with _thread.) -- nosy: +terry.reedy resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15262 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
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 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13405] Add DTrace probes
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. 1)http://buildbot.python.org/all/builders/x86%20Solaris%2011%20custom/builds/3 -- nosy: +Justin.Venus ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15268] curses configure checks fail if only /usr/include/ncursesw/curses.h is installed
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 rep...@bugs.python.org http://bugs.python.org/issue15268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15269] Document dircmp.left and dircmp.right
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 the possibility of passing dircmp instances around without having to pass the two paths separately (e.g. in certain recursive algorithms involving dircmp). Knowing this also means you can recover the two paths if using the subdirs attribute (whose values are dircmp instances). -- assignee: docs@python components: Documentation keywords: easy messages: 164781 nosy: cjerdonek, docs@python priority: normal severity: normal status: open title: Document dircmp.left and dircmp.right versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12927] test_ctypes: segfault with suncc
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 http://bugs.python.org/issue12927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13552] Compilation issues of the curses module on OpenIndiana
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 does for Solaris. 1) http://bugs.python.org/file26171/bug3786.patch -- nosy: +Justin.Venus ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13552 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15242] PyImport_GetMagicTag() should use the same const char * as sys.implementation.cache_tag
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
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 the test suite to check that these more detailed errors are being reported as expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15269] Document dircmp.left and dircmp.right
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15262] Idle does not show traceback in other threads
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com