Ticket #250 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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) (diff)

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

Changed 5 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

Changed 5 years ago by dagss

  • milestone changed from 0.11.2 to 0.11.3

Changed 5 years ago by robertwb

  • milestone changed from 0.11.3 to 0.12

Changed 5 years ago by robertwb

  • owner changed from somebody to robertwb

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

Changed 5 years ago by robertwb

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