Coder Social home page Coder Social logo

Comments (3)

clarete avatar clarete commented on June 7, 2024

Oh, we haven't released in a while. Would you mind checking if the code on master has your issue fixed? Thanks for opening the issue!

from forbiddenfruit.

davips avatar davips commented on June 7, 2024

Same as before:

In [10]: curse(list, "__init__", lambda x:x*x)                                                           
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-10-ac8633fa62a8> in <module>
----> 1 curse(list, "__init__", lambda x:x*x)

/tmp/forbiddenfruit/forbiddenfruit/__init__.py in curse(klass, attr, value, hide_from_dir)
    435             raise NotImplementedError(
    436                 "Dunder overloading is only supported on Python >= 3.3")
--> 437         _curse_special(klass, attr, value)
    438         return
    439 

/tmp/forbiddenfruit/forbiddenfruit/__init__.py in _curse_special(klass, attr, func)
    342             return NotImplementedRet
    343 
--> 344     tp_as_name, impl_method = override_dict[attr]
    345 
    346     # get the pointer to the correct tp_as_* structure

KeyError: '__init__'

from forbiddenfruit.

BeBopping avatar BeBopping commented on June 7, 2024

I'm also seeing this issue for __setattr__. Is there a known fix?

from forbiddenfruit.

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.