Opened 4 years ago

Closed 4 years ago

#585 closed enhancement (fixed)

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

comment:1 Changed 4 years ago by scoder

  • Component changed from Optimization to Language Feature

comment:2 Changed 4 years ago by scoder

  • Owner changed from somebody to scoder
  • Status changed from new to assigned

comment:3 Changed 4 years ago by scoder

  • Milestone changed from wishlist to 0.13.1
  • Resolution set to fixed
  • Status changed from assigned to closed

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.