Skip to content

Commit

Permalink
Change session to lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
izissise committed Oct 27, 2018
1 parent dfaeaa9 commit 0469601
Show file tree
Hide file tree
Showing 32 changed files with 142 additions and 142 deletions.
40 changes: 20 additions & 20 deletions source/class_schedule/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@ First Quarter: Introduction to Python
.. toctree::
:maxdepth: 1

session_1_01
session_1_02
session_1_03
session_1_04
session_1_05
session_1_06
session_1_07
session_1_08
session_1_09
session_1_10
lesson_1_01
lesson_1_02
lesson_1_03
lesson_1_04
lesson_1_05
lesson_1_06
lesson_1_07
lesson_1_08
lesson_1_09
lesson_1_10

Second Quarter: Advanced Programming in Python
==============================================

.. toctree::
:maxdepth: 1

session_2_01
session_2_02
session_2_03
session_2_04
session_2_05
session_2_06
session_2_07
session_2_08
session_2_09
session_2_10
lesson_2_01
lesson_2_02
lesson_2_03
lesson_2_04
lesson_2_05
lesson_2_06
lesson_2_07
lesson_2_08
lesson_2_09
lesson_2_10
6 changes: 3 additions & 3 deletions source/class_schedule/session_1_01.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_01:
.. _lesson_1_01:

########################################
Session 1: Intro to the class and Python
Lesson 1: Intro to the class and Python
########################################

**Intro to the class and Python**
Expand Down Expand Up @@ -58,5 +58,5 @@ Finish the Python Pushups exercises: :ref:`python_pushups`

Finish getting your environment set up.

Do the prep for next class: :ref:`session_1_02`
Do the prep for next class: :ref:`lesson_1_02`

8 changes: 4 additions & 4 deletions source/class_schedule/session_1_02.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_02:
.. _lesson_1_02:

#####################################
Session 2: Basic Python and Functions
Lesson 2: Basic Python and Functions
#####################################

**Basic Python and Functions**
Expand Down Expand Up @@ -97,7 +97,7 @@ Post-class Activities

Finish the Exercises

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_03`
:ref:`lesson_1_03`

8 changes: 4 additions & 4 deletions source/class_schedule/session_1_03.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_03:
.. _lesson_1_03:

######################################################
Session 3: Booleans, Sequences, Iteration, and Strings
Lesson 3: Booleans, Sequences, Iteration, and Strings
######################################################

**Booleans, Sequences, Iteration, and Strings**
Expand Down Expand Up @@ -78,6 +78,6 @@ Finish the mailroom project.

And the other exercises

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_04`
:ref:`lesson_1_04`
10 changes: 5 additions & 5 deletions source/class_schedule/session_1_04.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_04:
.. _lesson_1_04:

################################################
Session 4: Dictionaries, Sets, and File Handling
Lesson 4: Dictionaries, Sets, and File Handling
################################################

Dictionaries, Sets, and File Handling
Expand Down Expand Up @@ -30,7 +30,7 @@ http://www.diveintopython3.net/native-datatypes.html#dictionaries
In-class Activities
===================

* Review last sessions labs:
* Review last lessons labs:
- slicing
- string formatting

Expand Down Expand Up @@ -59,6 +59,6 @@ Post-class Activities

Finish the exercises

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_05`
:ref:`lesson_1_05`
8 changes: 4 additions & 4 deletions source/class_schedule/session_1_05.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_05:
.. _lesson_1_05:

########################################
Session 5: Exceptions and Comprehensions
Lesson 5: Exceptions and Comprehensions
########################################

Exceptions and Comprehensions
Expand Down Expand Up @@ -50,9 +50,9 @@ Finish the exercises

- here's a good overview: https://pymotw.com/3/collections/

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_06`
:ref:`lesson_1_06`



8 changes: 4 additions & 4 deletions source/class_schedule/session_1_06.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_06:
.. _lesson_1_06:

################################################
Session 6: Testing and Advanced Argument Passing
Lesson 6: Testing and Advanced Argument Passing
################################################

Unit Testing and Advanced Argument Passing
Expand Down Expand Up @@ -68,9 +68,9 @@ Post-class Activities

Finish the exercises

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_07`
:ref:`lesson_1_07`

NOTE: there is not a lot of new stuff this week, but this will give all of you a chance to catch up if you don't have mailroom and trigrams fully working yet.

Expand Down
8 changes: 4 additions & 4 deletions source/class_schedule/session_1_07.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_07:
.. _lesson_1_07:

#####################################
Session 7: Object Oriented Programing
Lesson 7: Object Oriented Programing
#####################################

Object Oriented Programing: classes, instance and class attributes, subclassing and inheritance.
Expand Down Expand Up @@ -84,7 +84,7 @@ Post-class Activities

Finish the HTML render Exercise through step 3.

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_08`
:ref:`lesson_1_08`

8 changes: 4 additions & 4 deletions source/class_schedule/session_1_08.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_08:
.. _lesson_1_08:

#######################################
Session 8: Properties and Magic methods
Lesson 8: Properties and Magic methods
#######################################

More OO: Properties and Magic methods.
Expand Down Expand Up @@ -54,6 +54,6 @@ Post-class Activities

Finish the exercises

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_09`
:ref:`lesson_1_09`
8 changes: 4 additions & 4 deletions source/class_schedule/session_1_09.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_09:
.. _lesson_1_09:

#########################################################
Session 9: Static and class methods: multiple inheritance
Lesson 9: Static and class methods: multiple inheritance
#########################################################


Expand Down Expand Up @@ -55,9 +55,9 @@ Post-class Activities

Finish the exercises

Look at the next session for reading, etc:
Look at the next lesson for reading, etc:

:ref:`session_1_10`
:ref:`lesson_1_10`



4 changes: 2 additions & 2 deletions source/class_schedule/session_1_10.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_1_10:
.. _lesson_1_10:

###########################################################################
Session 10: Intro to Functional Programming: lambda and Map, Filter, Reduce
Lesson 10: Intro to Functional Programming: lambda and Map, Filter, Reduce
###########################################################################

Functional Programming
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_01.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_01:
.. _lesson_2_01:

##############################################
Session 1: Iterators and Generators, Packaging
Lesson 1: Iterators and Generators, Packaging
##############################################


Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_02.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_02:
.. _lesson_2_02:

############################################
Session 2: Closures, Currying and Decorators
Lesson 2: Closures, Currying and Decorators
############################################

* Closures
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_03.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_03:
.. _lesson_2_03:

####################################################
Session 3: Context Managers, Itertools and functools
Lesson 3: Context Managers, Itertools and functools
####################################################

Reading
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_04.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_04:
.. _lesson_2_04:

###########################
Session 4: Advanced Testing
Lesson 4: Advanced Testing
###########################

* Linting
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_05.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_05:
.. _lesson_2_05:

################################
Session 5: Logging and Debugging
Lesson 5: Logging and Debugging
################################

* Logging module
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_06.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_06:
.. _lesson_2_06:

##########################
Session 6: Metaprogramming
Lesson 6: Metaprogramming
##########################

* Metprogramming tools
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_07.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_07:
.. _lesson_2_07:

###############################
Session 7: Relational Databases
Lesson 7: Relational Databases
###############################

* SQL
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_08.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_08:
.. _lesson_2_08:

#########################################################
Session 8: Object/Document, Key/Value and Graph Databases
Lesson 8: Object/Document, Key/Value and Graph Databases
#########################################################

* Persistence and Serialization: pickle, json, csv, ...
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_09.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_09:
.. _lesson_2_09:

##########################################
Session 9: Concurrency & Async Programming
Lesson 9: Concurrency & Async Programming
##########################################

* Concurrency
Expand Down
4 changes: 2 additions & 2 deletions source/class_schedule/session_2_10.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _session_2_10:
.. _lesson_2_10:

##########################################
Session 10: Profiling & Performance
Lesson 10: Profiling & Performance
##########################################

* Timing
Expand Down
12 changes: 6 additions & 6 deletions source/examples/async/nba_stats_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
# params = {'leagueid': '00', 'season': '2016-17', 'isonlycurrentseason': '1'}
# url = base_url + endpoint
# print('Getting all players...')
# async with aiohttp.ClientSession() as session:
# print("got the session")
# async with session.get(url, headers=HEADERS, params=params) as resp:
# async with aiohttp.ClientSession() as lesson:
# print("got the lesson")
# async with lesson.get(url, headers=HEADERS, params=params) as resp:
# print("got the response")
# data = await resp.json()
# players.append([(item[0], item[2]) for item in data['resultSets'][0]['rowSet']])
Expand Down Expand Up @@ -91,9 +91,9 @@ async def get_player(player_id, player_name):
params = {'playerid': player_id}
url = base_url + endpoint
print("Getting player", player_name)
async with aiohttp.ClientSession() as session:
print("session created")
async with session.get(url,
async with aiohttp.ClientSession() as lesson:
print("lesson created")
async with lesson.get(url,
skip_auto_headers=["User-Agent"],
headers=HEADERS,
params=params) as resp:
Expand Down
2 changes: 1 addition & 1 deletion source/exercises/html_renderer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Create a ``OneLineTag`` subclass of ``Element``:

* It should override the render method, to render everything on one line -- for the simple tags, like::

<title> PythonClass - Session 6 example </title>
<title> PythonClass - Lesson 6 example </title>

Create a ``Title`` subclass of ``OneLineTag`` class for the title.

Expand Down
Loading

0 comments on commit 0469601

Please sign in to comment.