[issue16341] In examples, except: should use new syntax
Roundup Robot added the comment: New changeset 4e9617d3c514 by Andrew Svetlov in branch '2.7': Issue #16341: convert examples to use except ... as ... syntax. http://hg.python.org/cpython/rev/4e9617d3c514 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Andrew Svetlov added the comment: +1. Patch for 2.7 is attached. -- keywords: +patch nosy: +asvetlov Added file: http://bugs.python.org/file27763/issue16341.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Éric Araujo added the comment: I’m of two minds about this. On one hand this syntax avoids silent bugs and is compatible with 3.x, on the other hand if people use the 2.7 docs and use Python 2.4 or 2.5 the examples won’t work. Raymond, what’s your opinion? -- nosy: +eric.araujo, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Ezio Melotti added the comment: The patch LGTM, and there are only 21 changes. -- nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
New submission from Jesús Cea Avión: In python 2.7 documentation, doing grep -i 'except.*,.*:' *rst shows quite a few old style except:. I think that except X, e: should be transformed to except X as e:, for clarity, as done in issue #16332. The only thing is that this syntax, used in examples, would be incompatible with old python releases. Opinions? -- keywords: easy messages: 173988 nosy: jcea priority: normal severity: normal status: open title: In examples, except: should use new syntax versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Jesús Cea Avión j...@jcea.es: -- components: +Library (Lib) nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: - docs@python components: +Documentation -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com