Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1147] string exceptions inconsistently deprecated/disabled

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Sep 11, 2007, 8:16 AM

Post #1 of 5 (237 views)
Permalink
[issue1147] string exceptions inconsistently deprecated/disabled

New submission from Jean-Paul Calderone:

Python 2.5 deprecated raising string exceptions. It also added the
throw method to generator objects which can be used to raise an
exception, including a string exception. Raising an exception with this
method doesn't issue a deprecation warning.

It looks like Python 2.6 will remove string exceptions entirely.
Current trunk still allows strings to be passed to the throw method of
generators though, and raises the string exception, again without a
deprecation warning.

----------
components: Interpreter Core
messages: 55825
nosy: exarkun
severity: normal
status: open
title: string exceptions inconsistently deprecated/disabled
type: behavior
versions: Python 2.5, Python 2.6

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1147>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Sep 11, 2007, 8:16 AM

Post #2 of 5 (219 views)
Permalink
[issue1147] string exceptions inconsistently deprecated/disabled [In reply to]

New submission from Jean-Paul Calderone:

Python 2.5 deprecated raising string exceptions. It also added the
throw method to generator objects which can be used to raise an
exception, including a string exception. Raising an exception with this
method doesn't issue a deprecation warning.

It looks like Python 2.6 will remove string exceptions entirely.
Current trunk still allows strings to be passed to the throw method of
generators though, and raises the string exception, again without a
deprecation warning.

----------
components: Interpreter Core
messages: 55825
nosy: exarkun
severity: normal
status: open
title: string exceptions inconsistently deprecated/disabled
type: behavior
versions: Python 2.5, Python 2.6

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1147>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Sep 11, 2007, 12:34 PM

Post #3 of 5 (219 views)
Permalink
[issue1147] string exceptions inconsistently deprecated/disabled [In reply to]

Changes by Brett Cannon:


----------
assignee: -> brett.cannon
nosy: +brett.cannon

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1147>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Sep 11, 2007, 2:03 PM

Post #4 of 5 (217 views)
Permalink
[issue1147] string exceptions inconsistently deprecated/disabled [In reply to]

Brett Cannon added the comment:

Fixed on the trunk in rev. 58108. Need to change 2.5 to raise a warning.

----------
priority: -> normal
versions: -Python 2.6

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1147>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Sep 11, 2007, 2:12 PM

Post #5 of 5 (217 views)
Permalink
[issue1147] string exceptions inconsistently deprecated/disabled [In reply to]

Brett Cannon added the comment:

Rev. 58109 covers 2.5.

----------
resolution: -> fixed
status: open -> closed

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1147>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.