ABC hackery

Discussion in 'Python' started by Demian Brecht, Dec 12, 2013.

  1. Hey all,

    Thought I'd share some fun I had some time ago when digging into abcs
    and metaclasses: https://gist.github.com/demianbrecht/6944269. The
    implementation piggy backs off of abcs to achieve "class A should look
    like class B" type functionality without using inheritance.

    Not recommended for anything outside of POC :)

    --
    Demian Brecht
    http://demianbrecht.github.com
    Demian Brecht, Dec 12, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jiong Feng
    Replies:
    0
    Views:
    791
    Jiong Feng
    Nov 19, 2003
  2. Bruce Sam
    Replies:
    15
    Views:
    7,862
    John C. Bollinger
    Nov 19, 2004
  3. vsgdp

    ABC inheriting from ABC

    vsgdp, Sep 24, 2005, in forum: C++
    Replies:
    1
    Views:
    300
    vsgdp
    Sep 24, 2005
  4. Demian Brecht

    Metaclass/abc hackery

    Demian Brecht, Oct 12, 2013, in forum: Python
    Replies:
    1
    Views:
    94
    Marco Buttu
    Oct 12, 2013
  5. Chris Angelico

    Re: ABC hackery

    Chris Angelico, Dec 12, 2013, in forum: Python
    Replies:
    0
    Views:
    54
    Chris Angelico
    Dec 12, 2013
Loading...

Share This Page