Skulpt & Metaclass

34 views
Skip to first unread message

Amirouche B.

unread,
Jan 14, 2012, 8:08:19 PM1/14/12
to sku...@googlegroups.com
Héllo again,

What is the state of metaclass support in Skulpt ?

type object doesn't seem to be available making the metaclass thing undoable. Did I miss something or Skulpt is modeled after Python old style class system [1] ?

I'm looking for a solution to do web development in Python (or pseudo-python...). So far I wasn't happy with available solutions and wanted to experiment with the topic myself [2] but now I need solid reason to fork or join forces...


Thanks in advance.

[1] http://docs.python.org/release/2.5.2/ref/node33.html
[2] https://bitbucket.org/abki/subscript

Scott Graham

unread,
Jan 14, 2012, 11:15:02 PM1/14/12
to sku...@googlegroups.com
There is a type object, but metaclasses aren't fully supported. test/run/t240.py to test/run/t243.py were I think the most complicated class/inheritance/etc. tests.

For the most part Skulpt was intended to follow the simplified (normalized) object model Py3, even though the syntax is 2.

Brad Miller

unread,
Jan 15, 2012, 1:38:05 PM1/15/12
to sku...@googlegroups.com
Scott,

Did you ever give much thought to implementing super?  If so I'd love to hear any ideas you had, as I'd like to implement.

Brad

Scott Graham wrote:

There is a type object, but metaclasses aren't fully supported.
test/run/t240.py to test/run/t243.py were I think the most complicated
class/inheritance/etc. tests.

For the most part Skulpt was intended to follow the simplified
(normalized) object model Py3, even though the syntax is 2.

On Sat, Jan 14, 2012 at 5:08 PM, Amirouche B.

Scott Graham

unread,
Jan 15, 2012, 2:27:43 PM1/15/12
to sku...@googlegroups.com
I haven't thought about it too much, no. I don't know all the rules for super, but I assume it's a lot like MRO? So it might be a matter of reusing the code that does the method search to find the proper base for the super invocation?
Reply all
Reply to author
Forward
0 new messages