-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@pydef improvements #473
@pydef improvements #473
Conversation
What are all the 0.6 test failures? |
a993a8b
to
32650e8
Compare
Fixed. |
README.md
Outdated
x2.set!(self, new_val) = (self[:x] = new_val / 2) | ||
function x2.set!(self, new_val) | ||
self[:x] = new_val / 2 | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
Fixed indentation. |
I think this is causing errors on v0.7 that are being masked by the fact that the 0.7 build was stalling out. Previously, the 0.7 build would hit JuliaLang/julia#26357 but now it errors out earlier: https://travis-ci.org/JuliaPy/PyCall.jl/jobs/357206714#L674 As I understand it, that means that the |
Looks like some interaction with JuliaLang/julia#21746 ?
It shouldn't affect us, though. Maybe it's a bug? This line may have to be changed, but it looks unrelated. |
I don't think it's the new line number argument. The error message is:
which shows that the macro was defined to take the |
What's happening is that pydef now generates definitions like this:
|
I'll have a fix shortly. |
I used
MacroTools.splitdef
to clean up the method definition code. This enables support for long-form function definitions (along with parametric types and return types, which might not get much use). I also now create types with a method dictionary. It will help #470.(Sorry for the other PR; I had forgotten to branch)