Opened 11 years ago

Closed 11 years ago

#5444 closed (fixed) Dynamically created classes should be types

Reported by: leosoto <leo.soto@…> Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords: jython
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It's a obscure thing, but dynamic manipulator classes should be created using type, not types.ClassType, as it bases are new-style classes.

It may work on CPython, but Jython doesn't like this mismatch.

Attachments (1)

new-style-classes_are_types.patch (603 bytes) - added by leosoto <leo.soto@…> 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by leosoto <leo.soto@…>


comment:1 Changed 11 years ago by leosoto <leo.soto@…>

Keywords: jython added

comment:2 Changed 11 years ago by Malcolm Tredinnick

Triage Stage: UnreviewedReady for checkin

comment:3 Changed 11 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [6277]) Fixed #5444 -- Changed manipulator class construction to use type(), rather than types.ClassType(). Helps with Jython compatibility. Patch from Leo Soto.

Note: See TracTickets for help on using tickets.
Back to Top