Skip to content

Conversation

@PragmaticMates
Copy link

No description provided.

@PragmaticMates
Copy link
Author

I've added functionality for rate service.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think EMPTY_VALUES is superfluous. All of the elements of EMPTY_VALUES evaluate to False, so simply saying if description or if to_addr.get('company') is sufficient.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think EMPTY_VALUES is superfluous. It is very common pattern used in big Python frameworks, Django for instance. Check it here or here.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I was unaware.

zamberjo referenced this pull request in aurestic/ClassicUPS Nov 15, 2019
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

Successfully merging this pull request may close these issues.

3 participants