Closed benfei closed 7 years ago
Hi @feinsteinben,
Thank you for your pull requests. Some comments on this one:
Thanks again for you request. If you don't feel like fixing this let me know and I'll do it. All good changes.
Cheers, David
Hi @davidmogar ,
Thanks for your review.
I rebased the pull-request according to your comments. Is it OK?
Bests, Ben.
Hi @feinsteinben,
Capitalized please? :yum:
Still, you should squash your commits (you have two commits for optimizations and two for new rules). Ideally I would have 3 commits. Also, you are still using str.maketrans in one method, which would fail. Easy to test applying all normalizations with Python 2.6.
Thanks for your effort!
Cheers, David
Hi @davidmogar ,
Thanks for your comments. Just to make sure I understand correctly - one commit for removing/fixing old stuff, one for adding new normalizations and the last for optimizations?
Regarding to str.maketrans
- my bad. I'll add tests for that later.
Cheers, Ben
Hi @feinsteinben,
Yeah, I think is clearer that way.
Thanks! David
Hi @davidmogar ,
Thanks to your review, I tested my code and found some bugs (fixed now). Additionally, the commits were squashed together (I tried to follow the style from your previous commits).
Cheers, Ben.
That's perfect @feinsteinben! Please, rebase, fix conflicts and I'll merge it ;)
Thanks @davidmogar!
I don't really know to do what you've asked for (it's my first real contribution in GitHub), but I want to learn. I would really appreciate some guidance here.
Thanks, Ben
Done! @davidmogar
Hi @davidmogar ,
After the tests were merged, I found a bug in my commits. It works fine for python3, but breaks/does wrong in python2. I fixed it in the same branch as the pull-request.
Additionally, I found a wrong test-case and fixed it too (in the other pull-request. I'll add a message there, too).
Sorry for the trouble, Ben.
The wrong test-case is fixed as I commented in the other pull-request. The patch for Python 2 have to go in a new PR ;)
Cheers, David
I'll do it later today.
On Mon, Oct 24, 2016, 16:51 David Moreno García notifications@github.com wrote:
The wrong test-case is fixed as I commented in the other pull-request. The patch for Python 2 have to go in a new PR ;)
Cheers, David
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/davidmogar/normalizr/pull/9#issuecomment-255746091, or mute the thread https://github.com/notifications/unsubscribe-auth/AKuWBtenUlfAjyfj4VfNaO0Dz2OZnUICks5q3LfvgaJpZM4KcTQu .
New normalization rules:
Optimized normalization rules: