Nikita Nemkin, 04.06.2013 10:29:
> I just wanted to say that this
> https://github.com/cython/cython/commit/a3ace265e68ad97c24ce2b52d99d45b60b26eda2#L1L73
> 
> renaming seems totally unnecessary as it makes any array code
> verbose and ugly. I often have to create extra local variables
> just to avoid endless something.data.as_ints repetition.

Are one-shot operations on arrays really so common for you that the
explicit "unpacking" step matters for your code?


> What was the reason for ranaming? It would be really nice to
> reintroduce old names (_i, _d etc).

IMHO, the explicit names read better and make it clear what happens.

Also, I think the original idea was that most people shouldn't access the
field directly and use memory views and the buffer interface instead, at
least for user provided data. It might be a little different for arrays
that are only used internally.

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to