Opened 6 years ago

Closed 5 years ago

#250 closed defect (fixed)

Traceback method name is wrong for exceptions caught in methods

Reported by: scoder Owned by: robertwb
Priority: minor Milestone: 0.12
Component: Code Generation Keywords:
Cc:

Description (last modified by scoder)

When catching an exception in a method, Cython writes out this code:

    __pyx_1 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
    if (__pyx_1) {
      __Pyx_AddTraceback("lxml.etree.__init__");

This lacks the type name. At the end of the method, it correctly generates

  __Pyx_AddTraceback("lxml.etree.ElementBase.__init__");

Change History (5)

comment:1 Changed 6 years ago by scoder

  • Description modified (diff)
  • Summary changed from Traceback method name is wrong for exceptions caught in (special?) methods to Traceback method name is wrong for exceptions caught in methods

comment:2 Changed 6 years ago by dagss

  • Milestone changed from 0.11.2 to 0.11.3

comment:3 Changed 5 years ago by robertwb

  • Milestone changed from 0.11.3 to 0.12

comment:4 Changed 5 years ago by robertwb

  • Owner changed from somebody to robertwb

Looks like it's a problem with creating the local scopes.

comment:5 Changed 5 years ago by robertwb

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.