On Friday, April 8, 2016 at 8:59:33 PM UTC, Steven G. Johnson wrote: > > Just FYI, cstjean has implemented a really cool new feature in PyCall ( > https://github.com/stevengj/PyCall.jl/pull/250 ... requires PyCall > master at the moment): you can now define new Python classes easily from > Julia, via a natural syntax: >
> Multiple inheritance, special methods like __init__, and getter/setter > properties are all supported. Better yet, the methods support full Julian > multiple dispatch, optional args, and keywords (because, at their core, > they are ordinary Julia functions with ordinary dispatch taking place after > the Python arguments are converted to Julia types). > > It will be interesting to see what new kinds of interoperability this > enables. (I suspect that Python GUI toolkits, which often require you to > define your own classes, will become much easier to use.) > One thing I can think of, enabling using Django with Julia: https://docs.djangoproject.com/en/1.9/topics/class-based-views/intro/ https://docs.djangoproject.com/es/1.9/topics/db/models/ As I expected, the [GUI/web] framework Hollywood principle ("Don't call us. We'll call you"), seem to apply to Django too. As I've never used Django, and more generally do not have a complete overview of Python, would you say most any library and now framework of Python is supported with PyCall? At least the language features required by Django? [Is Django, preferable over web micro-frameworks, such as the Sinatra-like native Julia one? Or some other code, such as http://escher-jl.org/ ? I just like to know Django, and all Python web stuff is available.. Might look into all ways.] -- Palli.
