Skip to content

Conversation

@leetrout
Copy link
Contributor

I feel like the existing example if not attr: print 'attr is None!' is very misleading.

Since this is such an opinionated style guide it seems like a great opportunity to link out to the Python documentation on falsey values and give an example of explicitly checking for a value to be None with the is keyword.

@kennethreitz
Copy link
Contributor

Perfect, thanks!

@kennethreitz
Copy link
Contributor

Hmm, I'll have to manually merge this.

@kennethreitz
Copy link
Contributor

Merged!

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.

2 participants