Navigation
index
next
|
MA792K vSpring 2011 documentation
»
MA792K Spring 2011
ΒΆ
1. Introduction to Python
2. Course Info
3. Python Is
4. There Is More Than One Python
5. Which Python Should I Use?
6. Where can I get Python?
7. Who Uses Python?
8. Show Me Some Code! (hello.py)
9. Beyond Hello World (fibonacci.py)
10. Learn to Love Whitespace
11. PEP 8
12. Zen of Python
13. Declaring Functions
14. So, What’s Your Type?
15. Everything Is An Object
16. Functions Can (And Do) Have Attributes
17. Functions with Attributes (fibo2.py)
18. Functions Can Be Assigned to Variables
19. Functions Can Be Changed at Runtime
20. What Do I Put in The Function?
21. Comparisons And Logic
22. Chaining Comparisons
23. Control Statements
24. If
25. For
26. Range
27. Break/Continue/Else
28. Break/Continue/Else Example (breakdance.py)
29. While
30. Infinite Loop
31. Pass
32. Comments
33. Building Python Modules
34. Modules as Scripts
35. Imports
36. Which Import to Use?
37. Python Path
38. What Happens on Import?
39. Listing Module Data
40. Listing Built-ins
41. Up Next
42. Native Types in Python
43. Numbers
44. Integers
45. Integers (cont.)
46. Floats
47. Some Notes on Division
48. Python 3 Note
49. Complex Numbers
50. Complex Math
51. Strings
52. Raw Strings
53. Triple Quoted Strings
54. Strings are Immutable
55. Basic String Formatting
56. String Formatting Examples
57. Formatting with Mappings
58. String Formatting in Python 3
59. String Concatenating
60. String Methods
61. String Methods Listing
62. Lists
63. Accessing List Items
64. Lists Functions
65. List as a Stack
66. Tuples
67. Beware of the Trailing Comma
68. Unpacking Lists and Tuples
69. Simple Variable Swap
70. Dictionaries
71. Using Dictionaries
72. Using Dictionaries (cont.)
73. Sets
74. Set Comparsions
75. Sets in Python 3.X
76. Unpacking Positional Arguments
77. Unpacking Keyword Arguments
78. Built-in Constants
79. Notes on Truth
80. Up Next
81. Object Oriented Python
82. Object Oriented Programming
83. The Simplest Class
84. I Lied
85. Stepping Out a Little More (image.py)
86. Class Initialization
87. Know Yourself
88. Class Attributes
89. Class Attribute Example (counter.py)
90. Private Methods
91. Private Method Example (private.py)
92. Inheritance is Super
93. Inheritance Example (square.py)
94. Extending Built-In Types
95. Note on Extending Immutable Types
96. Example Extending String (newstring.py)
97.
__new__
vs
__init__
98. Singleton
99. Singleton Implementation (singleton.py)
100. Singleton Usage (singleton.py)
101. The Borg Pattern
102. Borg Implementation (borg.py)
103. Borg Usage (borg.py)
104. Multiple Inheritance
105. Method Resolution Example (multi.py)
106. Mixins
107. Mixins Example
108. Defining Comparisons
109. Comparisons Example (compare.py)
110. Defining Operators
111. Operators Example (media.py)
112. Up Next
113. Object Oriented Python by Example
114. Python Person (person.py)
115. Extending Person
116. Using
super
117. Extending Person (student.py)
118. Exceptions and File Handling
119. Understanding Exceptions
120. Same Code but Different Style
121. Look Before You Leap
122. Easier to Ask Forgiveness than Permission
123. Catching Exceptions
124. Skeleton Example
125. Catching Multiple Types of Exceptions
126. Handling Different Exceptions Differently
127. Getting Exception Info
128. Built-in Exceptions
129. Creating Exceptions
130. Creating Exceptions Expanded
131. Raising Exceptions
132. Raising Exceptions Again
133. Supporting Different Python Versions
134. Opening Files
135. The File Object
136. Opening File Safely
137. With Statement
138. With Example (withexample.py)
139. Reading Files
140. A Program Which Outputs Itself (output.py)
141. Writing Files
142. Appending Files
143. File Paths
144. File Paths Example (filepath.py)
145. Directories
146. Iterating over Directories (directory.py)
147. Modules Special File Types
148. Up Next
149. Functional Tools in Python
150. What is Functional Programming?
151. What are Some Functional Languages?
152. Disclaimer
153. Who Cares?
154. Some Notes on Function Parameters
155. Function Nightmare (nightmare.py)
156. Getting Rid of Logical Blocks
157. Short Circuit Example
158. Using Short Circuit For Good
159. Getting Rid of Loops
160. Double List Comprehensions (identity.py)
161. Anonymous Functions
162. More List Filtering
163. Getting Rid of More Loops
164. Map
165. Map Example (matrix.py)
166. Sorting Lists
167. More List Sorting Examples (listsort.py)
168. Sorting Iterables
169. Common Key Functions
170. Key Functions Examples (keys.py)
171.
itertools
Module
172.
itertools
Examples (iter.py)
173. Closures
174. Closure Example (closure.py)
175. Why Closures?
176. Up Next
177. Tour of the Python Standard Library
178. What is the Standard Library?
179. Modules We’ve Already Seen/Discussed
180. Python 3 Notes
181.
random
182.
datetime
183. Date Formatting (dateformat.py)
184. Date Parsing (dateparse.py)
185.
urllib
/
urllib2
186. Twitter Data Example (twitter.py)
187.
glob
188.
re
189. Basic Regex Example (regex.py)
190.
logging
191. Log Configuration Example (log.conf)
192. Log Usage Example (log.py)
193.
timeit/cProfile
194. Simple Profile Example (timeme.py)
195. Larger Profile Example (profileme.py)
196.
unittest
197. Testing Example - Program (program.py)
198. Testing Example (program_test.py)
199. There are More Modules
200. Up Next
201. Common Third Party Libraries
202. Python Packaging
203. Packaging Solution - pip/virtualenv
204. The Python Package Index (PyPi)
205. lxml
206. lxml Example (geonames.py)
207. PIL (Python Image Library)
208. PIL Example (mandel.py)
209. NumPy/SciPy
210. NumPy For Matlab Users
211. Creating NumPy Arrays
212. Using NumPy Arrays
213. Array Slicing
214. SciPy Modules
215. SciPy Modules (cont.)
216. SciPy Cookbook
217. SciPy Regression Example (regress.py)
218. Matplotlib
219. Simple Plotting Example (regressplot.py)
Next topic
1. Introduction to Python
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
Navigation
index
next
|
MA792K vSpring 2011 documentation
»