mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Fixed typos
This commit is contained in:
@@ -152,7 +152,7 @@ What You Should Do Instead
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Well. Here the general solution is arguably a bit of a hack. Due to Python's
|
||||
afformentioned behavior concerning evaluating default arguments to functions
|
||||
aforementioned behavior concerning evaluating default arguments to functions
|
||||
(see :ref:`default_args`), you can create a closure that binds immediately to
|
||||
its arguments by using a default arg like so:
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@ list of what is considered false.
|
||||
if not attr:
|
||||
print 'attr is falsey!'
|
||||
|
||||
# or, since None is considered false, explicity check for it
|
||||
# or, since None is considered false, explicitly check for it
|
||||
if attr is None:
|
||||
print 'attr is None!'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user