-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support slicewise assignment. #21
Comments
First item fixed in #23. Second shouldn't be too hard to add either with a property setter. The one thing I worry about there is that |
On 2013-08-01 3:59 PM, Matt Davis wrote:
grid[:, :].red = other_grid[:, :].green or grid[:, :].red = grid[:, :].red / 2 |
Hmm, your first example maybe, if we think of But that won't work with your second example unless we bring numpy into the picture. |
On 2013-08-01 5:44 PM, Matt Davis wrote:
|
And I should have said that bringing numpy into the picture is not an option. I'm keeping this dependency free. I've mentally sketched out how to implement this, I think I should be able to get it done in an hour here sometime. |
Actually, |
Thinking about this a bit more going the route of monochrome grids seems like the thing to do. If we just use nested lists then indexing won't match for |
Okay:
If I get a chance I'd like to do these myself, but no promises on timeliness. |
Grid to grid assignment added in #23. |
The following code doesn't work:
We would like it to for teaching purposes. We would also like:
and similar.
The text was updated successfully, but these errors were encountered: