[Patches] [ python-Patches-1626538 ] update to PEP 344 - exception attributes

SourceForge.net noreply at sourceforge.net
Thu Jan 4 03:53:30 CET 2007


Patches item #1626538, was opened at 2007-01-02 15:50
Message generated for change (Comment added) made by ping
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1626538&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 3000
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Ka-Ping Yee (ping)
Summary: update to PEP 344 - exception attributes

Initial Comment:
PEP 344 proposes adding __traceback__, __context__, and __cause__ attributes to Exception.

The primary objection has been that the __traceback__ exception would cause a cycle, which would delay resource release.

This objection is now added to the PEP, along with some details about why it is a problem, and why weakrefs aren't a straightforward solution.

----------------------------------------------------------------------

>Comment By: Ka-Ping Yee (ping)
Date: 2007-01-03 18:53

Message:
Logged In: YES 
user_id=45338
Originator: NO

I've checked in this change.  Thanks for writing the patch.

----------------------------------------------------------------------

Comment By: Ka-Ping Yee (ping)
Date: 2007-01-02 16:30

Message:
Logged In: YES 
user_id=45338
Originator: NO

Okay, it will take me a moment to page this back into my head and respond.

----------------------------------------------------------------------

Comment By: Jim Jewett (jimjjewett)
Date: 2007-01-02 16:00

Message:
Logged In: YES 
user_id=764593
Originator: YES

File Added: pep344diff.txt

----------------------------------------------------------------------

Comment By: Jim Jewett (jimjjewett)
Date: 2007-01-02 15:56

Message:
Logged In: YES 
user_id=764593
Originator: YES

http://mail.python.org/pipermail/python-3000/2007-January/005322.html

Guido said he could check it in if Ping agrees, so I'm assigning the patch
to ping (who I *hope* is Ka-Ping Yee)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1626538&group_id=5470


More information about the Patches mailing list