Coder Social home page Coder Social logo

Comments (1)

djhoese avatar djhoese commented on June 8, 2024

See #58 and #45. Basically aggdraw was written a long time ago and does some questionable things to produce instance objects. The "classes" are essentially C functions that return instances of the object class with the necessary pieces filled in. The side effects of this are as you described, aggdraw's classes can't be used like normal classes. Things like type(instance_obj) can cause segmentation faults. Aggdraw "classes" can't be subclassed.

In #45 I describe how we should convert aggdraw to use Cython to wrap the low-level C++ library. However, we first need to resolve #67 as our master branch is producing inconsistent results with old versions of aggdraw. This wasn't figured out until after the major migration to the new agg library. Due to limited time (this is a volunteer project) I can't justify cython-izing old versions of aggdraw knowing that I'd have to do major work to do it again with the new agg library.

If you don't mind I'm going to close this as a duplicate of #45. If you feel strongly about it we can reopen this.

from aggdraw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.