-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
clean paridecl.pxd #58
base: master
Are you sure you want to change the base?
Conversation
Given that you have a script to clean things up, wouldn't it be better to run that script instead at installation time as part of the autogen process? This way, we get the best of both worlds: we don't need to mess with Then we could also decide to install just one file, i.e. take
and put that in one file. |
I like the idea. Though the autogen process is operating before the build and not at installation (if a distinction needs to be done). We certainly want to keep the name |
Partially automatic and partially by hand. It's copying the But I don't often update the complete file. Sometimes I just update a small part (say for example, everything related to L-functions), sometimes I add 1 function that I need. So it's a bit an organic process which is not easy to document exactly. |
3e8cee9
to
9c18256
Compare
The cleaning code is now integrated in the |
9c18256
to
d2e4c24
Compare
Can you explain me why you need to change the logic in Maybe it works, but it looks overcomplicated to me. |
The problem is that there is a discrepancy between the list of functions in |
Wouldn't it be much simpler to just return a boolean value from
and then check the return value of |
Would also work. I wanted to avoid calling twice |
d2e4c24
to
3ba6a21
Compare
done. Though, in the future we might want to distinguish between functions for which we can actually write the definition in |
That's not really what I meant (I said to change This should be
But you're still looping twice over all functions... the whole point of changing |
Then I don't understand what you suggest. |
Ho now I see. |
By the way, since this changes significantly the installed |
Actually, I don't see how to avoid going through the list of functions twice. The code is doing
|
3ba6a21
to
005b983
Compare
005b983
to
0e8b4c0
Compare
Maybe we could simplify the generator by keeping the files in memory instead of immediately writing them out. |
The largest file is a bit over 1MB in size, so it shouldn't be a problem to manage it in memory. |
28f2382
to
3660f17
Compare
Remove declarations from
paridecl.pxd
that already appear inauto_paridecl.pxd
. This was just achieved by running the following script