Skip to content
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

Automatic casting to HTuple #3

Open
dov opened this issue Sep 9, 2014 · 0 comments
Open

Automatic casting to HTuple #3

dov opened this issue Sep 9, 2014 · 0 comments

Comments

@dov
Copy link
Owner

dov commented Sep 9, 2014

The binding should transparantly try to translate any python sequence and scalar to HTuple if there is a matching function.

E.g. currently it is necessary to write:

canvas = HImageArray(Images).TileImagesOffset(HTuple(OffsetRow),
                                              HTuple(OffsetCol),
                                              HTuple([0]*len(Images)),      # row1
                                              HTuple([0]*len(Images)),      # col1
                                              HTuple([i.Height() for i in Images]),
                                              HTuple([i.Width() for i in Images]),
                                              HTuple(Width),
                                              HTuple(Height))

Requested is to get rid of all the explicit HTuple() calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant