[issue16005] smtplib.SMTP().sendmail() and rset()
DDarko added the comment: I understand, in that case: /cpython/file/default/Lib/smtplib.py 760c760,761 self.rset() --- try: self.rset() except: pass Solves the problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15121] devguide doesn't document all bug tracker components
Ezio Melotti added the comment: I suspect it's automatically set for issues reported via email Apparently it's set automatically on new issues if no other component is specified, even if the issue is created from the web interface. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16011] in should be consistent with return value of __contains__
Mark Dickinson added the comment: There was a related discussion on python-ideas a while back: http://mail.python.org/pipermail/python-ideas/2010-July/007733.html -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0
Stefan Krah added the comment: test_threaded_import also takes around 5 min on Windows. I think we should go for 0.1 on all platforms. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15599 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Michele Orrù added the comment: Reviewed with Ezio. -- Added file: http://bugs.python.org/file27272/issue8425.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15998] Python GUI idle not working
Sreenivas added the comment: Hi All, I was able to solve the problem.I reinstalled the python overwriting the lib packages of the previously installed Python.I was not overwriting it before because I was afraid that I would lose my pyserial and cx_Freeze lib files.But it was still there and was not deleted :).Thanks guys for your help and answers.I wish I get some other issue and get back to the forum asap. cheers, Sreeni -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
New submission from Erich Seifert: It seems the recent changes to Modules/pyexpat.c made the boolean 'flag' for UseForeignDTD mandatory although it was optional in previous Python releases. According to the docs the usage is UseForeignDTD([flag]), but calling UseForeignDTD without arguments leads to an error:: from xml.parsers import expat parser = expat.ParserCreate('utf8') parser.UseForeignDTD() Traceback (most recent call last): File stdin, line 1, in module TypeError: UseForeignDTD() takes exactly 1 argument (0 given) This was tested with version bfdf366a779a from hg repository. -- components: Extension Modules messages: 171108 nosy: eseifert priority: normal severity: normal status: open title: pyexpat: Argument for UseForeignDTD should be optional type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15979] Improve timeit documentation
Ezio Melotti added the comment: Here's a patch. -- assignee: docs@python - ezio.melotti keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file27273/issue15979.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Christian Heimes added the comment: Confirmed! In Ubuntu's Python 2.7.3 and 3.2.3 UseForeignDTD() can be called without an argument. The hg versions of 2.7, 3.2 and 3.3 require one argument. The change smells like a regression for all affected Python versions. Antoine, it looks like you committed the modification. -- keywords: +3.2regression, 3.3regression nosy: +benjamin.peterson, christian.heimes, georg.brandl, pitrou priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Ezio Melotti added the comment: This seems to be the changeset that introduced the regression b878df1d23b1. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Christian Heimes added the comment: I've created a patch with a simple test case. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file27274/issue16012.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Antoine Pitrou added the comment: Ah, that's true. Too bad it wasn't tested for :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15979] Improve timeit documentation
Antoine Pitrou added the comment: I don't think there's a need for two separate examples sections (one basic examples and one examples). Also, you say a couple of times The equivalent can be achieved from the :ref:`python-interface`, but that's not true since the command-line interface auto-calibrates, which the Python API (unfortunately) doesn't. Besides, the results use different units and can't be directly compared. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Christian Heimes added the comment: Don't feel bad. The final hasn't been released yet. :) Here is a slightly different patch for 3.2 and 2.7. -- Added file: http://bugs.python.org/file27275/issue16012_py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15979] Improve timeit documentation
Ezio Melotti added the comment: The first example shows the basic usage and it's right at the beginning, all the other advanced examples are at the bottom. About the autocalibration you are right, I'll rephrase the sentence (see also #6422). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Serhiy Storchaka added the comment: $ ./python.exe -m timeit -s s= set(range(2000)); l = set(range(2000)); s=s-l You are measure empty loop. -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Roundup Robot added the comment: New changeset 22ddf77e0497 by Christian Heimes in branch '3.2': Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD() http://hg.python.org/cpython/rev/22ddf77e0497 New changeset 3e0d632ce910 by Christian Heimes in branch '2.7': Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD() http://hg.python.org/cpython/rev/3e0d632ce910 New changeset 0f55ad9b07c8 by Christian Heimes in branch 'default': Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD() http://hg.python.org/cpython/rev/0f55ad9b07c8 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Christian Heimes added the comment: Erich, thank you very much for your bug report. Your report made it right in time for the upcoming 3.3.0 final release. Here you are, Georg. -- assignee: - georg.brandl resolution: - fixed stage: patch review - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16012] pyexpat: Argument for UseForeignDTD should be optional
Georg Brandl added the comment: Fixed in release clone as b907f99272c5. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).
Stefan Krah added the comment: I'm glad I found this. Without the long incantation _decimal is seriously miscompiled on SPARC/Solaris 10/Sun Studio 12.3. I was using just ... ./configure --without-gcc CFLAGS=-m64 LDFLAGS=-m64 ..., and that seems to trigger an optimizer bug that produces different output for _mpd_div_words_r() when called with exactly the same input at different locations. The line that Trent gave appears to work. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15963 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16013] small csv reader bug
New submission from Armin Rigo: A small bug of cvs.reader(): list(csv.reader(['foo:'], delimiter=':', quotechar='')) [] Adding strict=True doesn't change anything. This is caused by the opening quote not followed by anything, which causes the error to be silently ignored and the last line to be dropped. -- components: Library (Lib) messages: 171122 nosy: arigo priority: normal severity: normal status: open title: small csv reader bug versions: Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16005] smtplib.SMTP().sendmail() and rset()
R. David Murray added the comment: Well, a bare except is almost always a bad idea, and certainly is in this case. I'll create a patch for this if no one beats me to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16008] [OS bug] DragonFly buildbot locale failures
Stefan Krah added the comment: Closing since this an OS bug. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16008 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16014] Incomplete link in docs
New submission from Ramchandra Apte: In http://docs.python.org/py3k/license.html#mersenne-twister, the link http://www.math.keio.ac.jp/ matumoto/MT2002/emt19937ar.html is not complete because there is a space in it. -- assignee: docs@python components: Documentation messages: 171125 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Incomplete link in docs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
New submission from Ramchandra Apte: In http://docs.python.org/py3k/tutorial/interpreter.html#interactive-mode , the header shown is Python 3.2 (py3k, Sep 12 2007, 12:21:02). Python 3.2 was no made in Sep 12 2007, so it could not be compiled at that time. It should be a correct date or the date of today. -- assignee: docs@python components: Documentation messages: 171126 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Incorrect startup header in tutorial ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16014] Incomplete link in docs
Roundup Robot added the comment: New changeset 5f19c505ecea by Ezio Melotti in branch '2.7': #16014: fix broken link. http://hg.python.org/cpython/rev/5f19c505ecea New changeset 74b4c8c2894f by Ezio Melotti in branch '3.2': #16014: fix broken link. http://hg.python.org/cpython/rev/74b4c8c2894f New changeset 6db739d611fd by Ezio Melotti in branch 'default': #16014: merge with 3.2. http://hg.python.org/cpython/rev/6db739d611fd -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16014] Incomplete link in docs
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16016] Maybe make one author in ipaddress HOWTO
New submission from Ramchandra Apte: In http://docs.python.org/dev/howto/ipaddress.html, I think there should be one author field with Peter Moody and Nick Coghlan on the right side. -- assignee: docs@python components: Documentation messages: 171129 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Maybe make one author in ipaddress HOWTO versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16016 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16017] urls should be capital in tutorial
New submission from Ramchandra Apte: In http://docs.python.org/py3k/tutorial/stdlib.html#internet-access , from urls should be from URLs. -- assignee: docs@python components: Documentation messages: 171130 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: urls should be capital in tutorial versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16017] urls should be capital in tutorial
Roundup Robot added the comment: New changeset 063a052af878 by Ezio Melotti in branch '2.7': #16017: capitalize URLs. http://hg.python.org/cpython/rev/063a052af878 New changeset d7455cceb917 by Ezio Melotti in branch '3.2': #16017: capitalize URLs. http://hg.python.org/cpython/rev/d7455cceb917 New changeset d6e4080960a3 by Ezio Melotti in branch 'default': #16017: merge with 3.2. http://hg.python.org/cpython/rev/d6e4080960a3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16017] urls should be capital in tutorial
Ezio Melotti added the comment: Fixed, thanks for the report. -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16016] Maybe make one author in ipaddress HOWTO
Ezio Melotti added the comment: I think it's OK to have two. -- nosy: +ezio.melotti resolution: - rejected stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16016 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
Ezio Melotti added the comment: Looks like the version got updated but not the rest, even the 3.3 doc has the same date. -- nosy: +ezio.melotti stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
Ramchandra Apte added the comment: The later lines also needs to be updated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] impossible ... line in tutorial
Ramchandra Apte added the comment: In http://docs.python.org/dev/tutorial/introduction.html, there is an ... line which is impossible in that case: Variables must be “defined” (assigned a value) before they can be used, or an error will occur: # try to access an undefined variable ... n Traceback (most recent call last): File stdin, line 1, in module NameError: name 'n' is not defined It should be: n # try to access an undefined variable Traceback (most recent call last): File stdin, line 1, in module NameError: name 'n' is not defined -- title: Incorrect startup header in tutorial - impossible ... line in tutorial ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] impossible ... line in tutorial
Ramchandra Apte added the comment: Oops! The last message should be in a new issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: impossible ... line in tutorial - Incorrect startup header in tutorial ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16018] Impossible ... line in tutorial
New submission from Ramchandra Apte: In http://docs.python.org/dev/tutorial/introduction.html, there is an ... line which is impossible in that case: Variables must be “defined” (assigned a value) before they can be used, or an error will occur: # try to access an undefined variable ... n Traceback (most recent call last): File stdin, line 1, in module NameError: name 'n' is not defined It should be: n # try to access an undefined variable Traceback (most recent call last): File stdin, line 1, in module NameError: name 'n' is not defined -- messages: 171138 nosy: ramchandra.apte priority: normal severity: normal status: open title: Impossible ... line in tutorial ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16018] Impossible ... line in tutorial
Changes by Ramchandra Apte maniandra...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16015] Incorrect startup header in tutorial
Ezio Melotti added the comment: I'm not sure it's worth updating it, it will probably get outdated again when new versions are released. Also this is just an example, the actual header and dates might be different depending on the version/.OS/compiler. -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16015 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16018] Impossible ... line in tutorial
Ezio Melotti added the comment: Is it? Python 3.2.3 (default, May 3 2012, 15:54:42) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. # try to access an undefined variable ... n Traceback (most recent call last): File stdin, line 2, in module NameError: name 'n' is not defined -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15998] Python GUI idle not working
Roger Serwy added the comment: A re-install fixed the issue for OP caused by what appeared to be a corrupt /Lib directory. I'm closing this issue. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16019] Python highlighting in tutorial; should be text highlighting
New submission from Ramchandra Apte: In http://docs.python.org/py3k/tutorial/stdlib2.html#logging , a text output has Python highlighting; it should be text highlighting This is incorrectly highlighted text: WARNING:root:Warning:config file server.conf not found ERROR:root:Error occurred CRITICAL:root:Critical error -- shutting down -- assignee: docs@python components: Documentation messages: 171142 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Python highlighting in tutorial;should be text highlighting ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16019 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16020] Missing in Python code example
New submission from Ramchandra Apte: In http://docs.python.org/py3k/tutorial/stdlib2.html#logging , some code in a code sample is missing . The code is: unsearched = deque([starting_node]) def breadth_first_search(unsearched): node = unsearched.popleft() for m in gen_moves(node): if is_goal(m): return m unsearched.append(m) should be: unsearched = deque([starting_node]) def breadth_first_search(unsearched): node = unsearched.popleft() for m in gen_moves(node): if is_goal(m): return m unsearched.append(m) -- assignee: docs@python components: Documentation messages: 171143 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Missing in Python code example ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16019] Python highlighting in tutorial; should be text highlighting
Roundup Robot added the comment: New changeset ce943bce76c9 by Ezio Melotti in branch '2.7': #16019, #16020: fix syntax highlight. http://hg.python.org/cpython/rev/ce943bce76c9 New changeset 101354f95a07 by Ezio Melotti in branch '3.2': #16019, #16020: fix syntax highlight. http://hg.python.org/cpython/rev/101354f95a07 New changeset 62ddf16eea24 by Ezio Melotti in branch 'default': #16019, #16020: merge with 3.2. http://hg.python.org/cpython/rev/62ddf16eea24 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16019 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16020] Missing in Python code example
Roundup Robot added the comment: New changeset ce943bce76c9 by Ezio Melotti in branch '2.7': #16019, #16020: fix syntax highlight. http://hg.python.org/cpython/rev/ce943bce76c9 New changeset 101354f95a07 by Ezio Melotti in branch '3.2': #16019, #16020: fix syntax highlight. http://hg.python.org/cpython/rev/101354f95a07 New changeset 62ddf16eea24 by Ezio Melotti in branch 'default': #16019, #16020: merge with 3.2. http://hg.python.org/cpython/rev/62ddf16eea24 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16020] Missing in Python code example
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16019] Python highlighting in tutorial; should be text highlighting
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16019 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16021] In a table in PEP 235, brrrrrrrr should be N/A
New submission from Ramchandra Apte: In the table: case-preserving case-destroying +---+--+ case-sensitive | most Unix flavors | brr | +---+--+ case-insensitive | Windows | some unfortunate | | MacOSX HFS+ | network schemes | | Cygwin| | | | OpenVMS | +---+--+ brrr (pardon me for not putting the correct amount of rs) should be replaced with N/A -- messages: 171148 nosy: ramchandra.apte priority: normal severity: normal status: open title: In a table in PEP 235, b should be N/A ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16021 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16020] Missing in Python code example
Chris Jerdonek added the comment: Thanks for the report. Minor clarification for future reference. Subsequent lines should begin with ... (when doctest-style is used): def breadth_first_search(unsearched): ... node = unsearched.popleft() etc. -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16021] In a table in PEP 235, brrrrrrrr should be N/A
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +tim_one type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16021 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16022] Mistake in What's New in Python 3.3
New submission from Ramchandra Apte: In What's New in Python 3.3, there is a note: Note: Beta users should be aware that this document is currently in draft form. It will be updated substantially as Python 3.3 moves towards release, so it’s worth checking back even after reading earlier versions. If it is still in a draft form, replace Beta users with Pre-release users or something similar. Else, obviously remove the note. -- assignee: docs@python components: Documentation messages: 171150 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Mistake in What's New in Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16022 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16020] Missing in Python code example
Ramchandra Apte added the comment: This issue still does not appear to be fixed - looking at http://hg.python.org/cpython/file/101354f95a07/Doc/tutorial/stdlib2.rst . And sorry, the URL should be http://docs.python.org/py3k/tutorial/stdlib2.html#tools-for-working-with-lists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16020] Missing in Python code example
Ezio Melotti added the comment: The code didn't have any output, so I created a separate code block with regular Python highlight -- no need to add /... there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Michele Orrù added the comment: woops, sry. Re-posting the benchmark, with three tests: the first one proposed (@abacabadabacaba) with very large sets; another one with smaller sets. $ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l = set(range(2000)) s-=l 100 loops, best of 3: 9.71 usec per loop [48787 refs] $ ./python.exe -m timeit -n 100 -s s= set(range(1)); l = set(range(20)) s-=l 100 loops, best of 3: 0.366 usec per loop $ hg co -C $ make -j3 [!PATCHED]-- $ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l = set(range(2000)) s-=l 100 loops, best of 3: 665 msec per loop [48787 refs] $ ./python.exe -m timeit -n 100 -s s= set(range(1)); l = set(range(20)) s-=l 100 loops, best of 3: 0.849 usec per loop [48787 refs] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16023] IDLE froze when typing ctrl-shift-5
New submission from Zellmeyer: IDLE do not response and you have to force to quit when you type the bad combination ctrl-shift-5. I find it on my macbook when i try do type a [ character and type the bad combination by mistake because the keyboard are not exactly the same as the iMac. -- assignee: ronaldoussoren components: IDLE, Macintosh messages: 171154 nosy: ronaldoussoren, szellmeyer priority: normal severity: normal status: open title: IDLE froze when typing ctrl-shift-5 type: crash versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16023 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16023] IDLE froze when typing ctrl-shift-5
Ronald Oussoren added the comment: What version of OSX do you use? Do you have ActiveState TCL installed, and if so, which version? Does 'Ctrl+Shift+5' insert a special character in the keyboard layout you use? BTW. I cannot reproduce this on my machine (OSX 10.8.2) with a recent snapshot of the 3.2 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16023 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc
New submission from Larry Hastings: You know how you start pulling on a thread and before you notice you've unraveled the whole sweater? I meant to do a simple *one line* fix on the docs and wound up with a nearly-300-line diff. I claim it's all an improvement, though I'm willing to change it if there's something you don't like. Definite improvements: * supports_fd et al are :class:`set` objects, not :class:`~collections.Set`. Those are different. * Linked to the specifying a file descriptor section in os from the relevant discussion in what's new. * Availability: Unix goes above :versionadded. Avowed improvements: * supports_* now explicitly mention what values are permitted for their parameters. * Lots of rewriting/munging in an effort to improve readability and precision. * A couple places where it's read better than it is. LGTU? -- assignee: larry components: Documentation files: lch.supports_set.doc.cleanup.1.diff keywords: patch messages: 171155 nosy: georg.brandl, larry priority: normal severity: normal stage: patch review status: open title: Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc type: enhancement versions: Python 3.3 Added file: http://bugs.python.org/file27276/lch.supports_set.doc.cleanup.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16024 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
New submission from Serhiy Storchaka: The proposed patch corrects a few markup errors in the zipfile documentation and adds a few relevant hyperlinks. -- assignee: docs@python components: Documentation files: doc_zipfile-3.3.patch keywords: patch messages: 171157 nosy: docs@python, storchaka priority: normal severity: normal status: open title: Minor corrections to the zipfile documentation versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file27277/doc_zipfile-3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file27278/doc_zipfile-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file27279/doc_zipfile-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16025] Minor corrections to the zipfile documentation
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16021] In a table in PEP 235, brrrrrrrr should be N/A
Mark Dickinson added the comment: Is this really necessary? I suggest closing this as 'wont fix'. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16021 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Serhiy Storchaka added the comment: $ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l = set(range(2000)) s-=l s is empty set after first loop. Try this: $ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l = set(range(2000,2000+2000)) s-=l -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15963 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16024 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Serhiy Storchaka added the comment: Michele, in any case you patch is not preserve set identity. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16026] csv.DictReader argument names documented incorrectly
New submission from Peter Eisentraut: The documentation for the csv.DictReader constructor is .. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds) but the implementation is def __init__(self, f, fieldnames=None, restkey=None, restval=None, dialect=excel, *args, **kwds): The name of the first argument is documented incorrectly, leading to surprise errors when attempting to use key word arguments. -- assignee: docs@python components: Documentation, Library (Lib) messages: 171161 nosy: docs@python, petere priority: normal severity: normal status: open title: csv.DictReader argument names documented incorrectly type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Michele Orrù added the comment: What do you mean by does not preserve set identity? Because I see: $ ./python.exe Python 3.3.0rc2+ (default:178f9042af81+, Sep 24 2012, 18:54:31) [GCC 4.2.1 Compatible Apple Clang 2.1 (tags/Apple/clang-163.7.1)] on darwin Type help, copyright, credits or license for more information. a = set(range(1)) [65967 refs] b = set(range(20)) [65989 refs] id(a) 4540421032 [65992 refs] a -= b [65991 refs] id(a) 4540421032 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
New submission from Marc-Andre Lemburg: pkgutil is used by runpy to run Python modules that are loaded via the -m command line switch. Unfortunately, this doesn't work for frozen modules, since pkgutil doesn't know how to load their code object (this can be had via imp.get_code_object() for frozen modules). We found the problem while working on eGenix PyRun (see http://www.egenix.com/products/python/PyRun/) which uses frozen modules extensively. We currently only target Python 2.x, so will have work around the problem with a patch, but Python 3.x still has the same problem. -- components: Library (Lib) messages: 171163 nosy: lemburg priority: normal severity: normal status: open title: pkgutil doesn't support frozen modules versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8425] a -= b should be fast if a is a small set and b is a large set
Serhiy Storchaka added the comment: Sorry, I was wrong. I think that the proposed changes should be applied in set_difference_update_internal() directly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Marc-Andre Lemburg added the comment: Correction: the helper function is called imp.get_frozen_object(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16021] In a table in PEP 235, brrrrrrrr should be N/A
Mark Dickinson added the comment: Closing. This doesn't appear to have caused any confusion in the 11 years since the PEP was written. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16021 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16027] pkgutil doesn't support frozen modules
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16011] in should be consistent with return value of __contains__
Neal Parikh added the comment: Thanks for passing along the thread, it was interesting. Oddly, it seemed to die off with no real resolution. I realize it is now too late to change __contains__ to return a non-boolean value, but for reference, the reason I wanted to return something different from __contains__ was also to implement a DSL, though not a SQL-related one. Basically, I have some kind of abstract mathematical set S, and I wanted x in S to return a constraint that the variable x must lie in the set S for use in a larger problem description. (In fact, one could implement __contains__ so it returned True/False with a constant numeric argument and a constraint object with a variable argument.) This would have mirrored the way one would write all this mathematically. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16028] break in finally discards exception
New submission from Erik Allik: This is either a bug, or a very weird but undocumented feature/caveat. def fn1(): while True: try: raise Exception() finally: pass def fn2(): while True: try: raise Exception() finally: break # - fn1() # exception, as expected fn2() # silence! -- messages: 171168 nosy: eallik priority: normal severity: normal status: open title: break in finally discards exception type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16028] break in finally discards exception
Mark Dickinson added the comment: This *was* a documented feature until very recently; it looks as though a recent doc change inadvertently removed it from the documentation. See http://hg.python.org/cpython/rev/bef098bd3fa5 and the associated issue, issue 14167. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Mark Dickinson added the comment: I think something went wrong with this doc change. The docs used to say: If the :keyword:`finally` clause raises another exception or executes a :keyword:`return` or :keyword:`break` statement, the saved exception is lost. Now we have: If there is a saved exception or :keyword:`break` statement, it is re-raised at the end of the :keyword:`finally` clause. which doesn't make much sense (what does 'it' refer to in the case of a 'break' statement), and we seem to have lost the explicit statement that a 'break' in a finally cause swallows exceptions. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Mark Dickinson added the comment: See also issue 16021. Re-opening this issue for reconsideration. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Mark Dickinson added the comment: Bah. Issue 16028; sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Yury Selivanov added the comment: Can you close this one? It's already merged. -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Yury Selivanov added the comment: I'll open another issue and will attach a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Mark Dickinson added the comment: Yury: I don't think there's any need for yet another issue; this one will do (or if you prefer, attach the patch to issue 16028.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Yury Selivanov added the comment: OK. Attaching the patch. Please review. -- Added file: http://bugs.python.org/file27280/finally_doc_patch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16028] break in finally discards exception
Erik Allik added the comment: It looks to me that it was not removed from the doc but explicitly changed to say that 'break' does not cause the exception to be discarded, unless I'm misunderstanding it: 1.20 +:keyword:`finally` clause is executed. If there is a saved exception 1.21 +or :keyword:`break` statement, it is re-raised at the end of the 1.22 +:keyword:`finally` clause. If the :keyword:`finally` clause raises -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16028] break in finally discards exception
Mark Dickinson added the comment: Hmm. Yes, true. Either way, it's the docs that need to be fixed rather than the behaviour. Thanks for catching this! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16028] break in finally discards exception
Yury Selivanov added the comment: see the issue 14167 -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Roundup Robot added the comment: New changeset 485902ecf0ee by Mark Dickinson in branch '3.2': Issue #14167: restore statement about breaks in finally clauses. http://hg.python.org/cpython/rev/485902ecf0ee New changeset f5ed3a5440b2 by Mark Dickinson in branch 'default': Issue #14167: merge fix from 3.2 branch. http://hg.python.org/cpython/rev/f5ed3a5440b2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Mark Dickinson added the comment: Thanks for the quick fix! Patch applied to 3.2 and 3.3 The 2.7 commit also introduced an incorrect statement about exception chaining; I'll look at fixing that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Yury Selivanov added the comment: thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Roundup Robot added the comment: New changeset f51d11405f1d by Mark Dickinson in branch '2.7': Issue #14167: restore statement about breaks in finally clauses; remove statement about exception chaining. http://hg.python.org/cpython/rev/f51d11405f1d -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14167] document return statement in finally blocks
Mark Dickinson added the comment: Reclosing. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16028] break in finally discards exception
Mark Dickinson added the comment: That portion of the documentation has been restored. Closing this issue. -- assignee: - docs@python components: +Documentation nosy: +docs@python resolution: - fixed status: open - closed versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16013] small csv reader bug
Serhiy Storchaka added the comment: A shorter example: import csv list(csv.reader(['foo,'])) [] -- nosy: +storchaka type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
New submission from akira: import sys from pickle import dumps, loads r = xrange(sys.maxsize) len(r) == sys.maxsize True pr = loads(dumps(r)) len(pr) == len(r) False pr xrange(0) r xrange(9223372036854775807) It breaks multiprocessing module: http://stackoverflow.com/questions/12569977/python-large-iterations-number-fail It fails on 2.6.6, 2.7.3. It works correctly on 3.1-3.3, pypy 1.7-1.9 x86_64 Linux. -- components: Library (Lib) files: test_pickle_dumps_xrange.py messages: 171187 nosy: akira priority: normal severity: normal status: open title: pickle.dumps(xrange(sys.maxsize)) produces xrange(0) type: behavior versions: Python 2.6, Python 2.7 Added file: http://bugs.python.org/file27281/test_pickle_dumps_xrange.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
Mark Dickinson added the comment: The bug is (not surprisingly) in range_reduce in Objects/rangeobject.c, where return Py_BuildValue((O(iii)), Py_TYPE(r), should be return Py_BuildValue((O(lll)), Py_TYPE(r), But in writing tests for this bug, I fell over another one: import sys xrange(0, sys.maxint, sys.maxint-1) xrange(0, -4, 2147483646) -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
Mark Dickinson added the comment: Here's the fix. There's a commented out test, which fails because of the second xrange bug (or something closely related to it). -- keywords: +patch Added file: http://bugs.python.org/file27282/issue16029.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
Mark Dickinson added the comment: Removing 2.6: this isn't a security issue. -- stage: - patch review versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16011] in should be consistent with return value of __contains__
STINNER Victor added the comment: Do you need this PEP? http://www.python.org/dev/peps/pep-0335/ -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com