diff options
author | Kara Kincaid <kara_kincaid@epam.com> | 2015-10-13 10:06:11 -0400 |
---|---|---|
committer | Kara Kincaid <kara_kincaid@epam.com> | 2015-10-13 10:06:11 -0400 |
commit | 45a5a9ed5b45f483a04c3b985be74cbcd38179fe (patch) | |
tree | 9d7599079877adda1b28cac75b8bc8f8bf057091 /python3.html.markdown | |
parent | 622d4485ab9efd265be83d16abbe8cb12da7934c (diff) | |
parent | 59a07411effbd0ed6289e062621deb29fe8641a8 (diff) |
fix merge conflict in css.html.markdown
Diffstat (limited to 'python3.html.markdown')
-rw-r--r-- | python3.html.markdown | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index cd1a83cc..87fa0b70 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -569,8 +569,8 @@ filter(lambda x: x > 5, [3, 4, 5, 6, 7]) # => [6, 7] #################################################### -# We subclass from object to get a class. -class Human(object): +# We use the "class" operator to get a class +class Human: # A class attribute. It is shared by all instances of this class species = "H. sapiens" @@ -664,8 +664,6 @@ def double_numbers(iterable): # Instead of generating and returning all values at once it creates one in each # iteration. This means values bigger than 15 wont be processed in # double_numbers. -# Note range is a generator too. Creating a list 1-900000000 would take lot of -# time to be made # We use a trailing underscore in variable names when we want to use a name that # would normally collide with a python keyword range_ = range(1, 900000000) |