Ticket #585 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Support "final" cdef classes

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.14
Component: Cython Language Feature Keywords:
Cc:

Description

It was agreed that Cython should have a way to mark classes and their methods final.

 http://comments.gmane.org/gmane.comp.python.cython.devel/8741

The first step is to enable completely "final" cdef classes. They must prevent subtyping and also imply "final" for all of their methods.

Change History

Changed 3 years ago by scoder

  • component changed from Optimization to Language Feature

Changed 3 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from new to assigned

Changed 3 years ago by scoder

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone changed from wishlist to 0.13.1

Implemented here:

 http://hg.cython.org/cython-devel/rev/fdecdaeaafdd

Follow-up for final methods in #586.

Note: See TracTickets for help on using tickets.