Opened 11 years ago

Last modified 6 years ago

#9107 closed defect

Nested class name mangling can be wrong in case of double nesting — at Initial Version

Reported by: hivert Owned by: nthiery
Priority: major Milestone: sage-6.3
Component: categories Keywords:
Cc: SimonKing, zabrocki Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

In the following class tree:

class Bla(UniqueRepresentation):
    class Bla1(UniqueRepresentation):
        class Bla11:
	    Pass
    class Bla2:
        class Bla21:
	    Pass

The names are set to

        sage: Bla.Bla1.__name__
        'Bla.Bla1'
        sage: Bla.Bla2.__name__
        'Bla.Bla2'
        sage: Bla.Bla2.Bla21.__name__
        'Bla.Bla2.Bla21'

But

        sage: Bla.Bla1.Bla11.__name__
        'Bla1.Bla11'

whereas one would expect 'Bla.Bla1.Bla11' This breaks a lot of doc in categories and in particular in functorial constructions.

Florent

Change History (0)

Note: See TracTickets for help on using tickets.