Changeset 737
- Timestamp:
- 03/06/10 08:49:19 (5 months ago)
- Location:
- hodgestar/Talks/PythonForProgrammers
- Files:
-
- 3 added
- 9 modified
-
example/text.py (modified) (1 diff)
-
example/textutil/__init__.py (modified) (1 diff)
-
example/textutil/wc.py (added)
-
html/py4progs-0.html (modified) (1 diff)
-
html/py4progs-10.html (modified) (1 diff)
-
html/py4progs-11.html (modified) (1 diff)
-
html/py4progs-12.html (added)
-
html/py4progs-13.html (added)
-
html/py4progs-8.html (modified) (1 diff)
-
html/py4progs-9.html (modified) (1 diff)
-
slides/py4prog.py (modified) (2 diffs)
-
slides/slide-notes.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hodgestar/Talks/PythonForProgrammers/example/text.py
r728 r737 8 8 UTILS = { 9 9 'sort': textutil.Sort, 10 'wc': textutil.WordCount, 10 11 } 11 12 -
hodgestar/Talks/PythonForProgrammers/example/textutil/__init__.py
r728 r737 2 2 3 3 from .sort import Sort 4 from .wc import WordCount -
hodgestar/Talks/PythonForProgrammers/html/py4progs-0.html
r733 r737 15 15 <li><a href='py4progs-6.html'>Classes and Basic OO</a></li> 16 16 <li><a href='py4progs-7.html'>Dictionaries and Sets</a></li> 17 <li><a href='py4progs-8.html'>Debugging</a></li> 18 <li><a href='py4progs-9.html'>Packaging</a></li> 19 <li><a href='py4progs-10.html'>Interacting with the Python Community</a></li> 17 <li><a href='py4progs-8.html'>More OO</a></li> 18 <li><a href='py4progs-9.html'>Functional Programming</a></li> 19 <li><a href='py4progs-10.html'>Miscellaneous</a></li> 20 <li><a href='py4progs-11.html'>Debugging and Internals</a></li> 21 <li><a href='py4progs-12.html'>Packaging</a></li> 22 <li><a href='py4progs-13.html'>Interacting with the Python Community</a></li> 20 23 </ol> 21 24 <br /></body></html> -
hodgestar/Talks/PythonForProgrammers/html/py4progs-10.html
r733 r737 6 6 </head> 7 7 <body> 8 <div style='margin: auto; width: 50%;'><h2>Interacting with the Python Community</h2><ul> 9 <li>...</li> 8 <div style='margin: auto; width: 50%;'><h2>Miscellaneous</h2><ul> 9 <li>os, os.path</li> 10 11 <li>pkg_resources</li> 12 13 <li>id()</li> 14 15 <li>*args, **kwargs</li> 16 17 <li>unicode</li> 18 19 <li>encoding line for .py files.</li> 20 21 <li>StringIO</li> 10 22 </ul> 11 </div><br /><div class="footer"><hr /><div style="float: left; font-style: italic;">Python 4 Programmers</div><div style="float: right;"><a accesskey="P" href="py4progs-9.html">Prev</a> | <a accesskey="I" href="py4progs-0.html">Index</a> | Next</div></div></body></html>23 </div><br /><div class="footer"><hr /><div style="float: left; font-style: italic;">Python 4 Programmers</div><div style="float: right;"><a accesskey="P" href="py4progs-9.html">Prev</a> | <a accesskey="I" href="py4progs-0.html">Index</a> | <a accesskey="N" href="py4progs-11.html">Next</a></div></div></body></html> -
hodgestar/Talks/PythonForProgrammers/html/py4progs-11.html
r726 r737 6 6 </head> 7 7 <body> 8 <div style='margin: auto; width: 50%;'><h2>C API Documentation</h2><ul> 9 <li>PyObject API:<ul><li>List of methods unchanged between 2.5, 2.6 and 3.0</li> 10 </ul></li> 8 <div style='margin: auto; width: 50%;'><h2>Debugging and Internals</h2><ul> 9 <li>Interned objects</li> 11 10 12 <li> New documentation!<ul><li>Interactive search -- in static HTML</li>11 <li>gc</li> 13 12 14 <li> JSON index</li>13 <li>Turning garbage collection on and off</li> 15 14 16 <li><a href="http://www.example.com/Doc/build/html/index.html">2.6 Docs</a></li> 17 </ul></li> 15 <li>Reference counting</li> 16 17 <li>pdb</li> 18 19 <li>timeit, %timeit</li> 18 20 </ul> 19 </div><br /><div class="footer"><hr /><div style="float: left; font-style: italic;">Python 4 Programmers</div><div style="float: right;"><a accesskey="P" href="py4progs-10.html">Prev</a> | <a accesskey="I" href="py4progs-0.html">Index</a> | Next</div></div></body></html>21 </div><br /><div class="footer"><hr /><div style="float: left; font-style: italic;">Python 4 Programmers</div><div style="float: right;"><a accesskey="P" href="py4progs-10.html">Prev</a> | <a accesskey="I" href="py4progs-0.html">Index</a> | <a accesskey="N" href="py4progs-12.html">Next</a></div></div></body></html> -
hodgestar/Talks/PythonForProgrammers/html/py4progs-8.html
r733 r737 6 6 </head> 7 7 <body> 8 <div style='margin: auto; width: 50%;'><h2>Debugging</h2><ul> 9 <div class="highlight"><pre> 10 </pre></div> 8 <div style='margin: auto; width: 50%;'><h2>More OO</h2><ul> 9 <li>Scopes, global keyword</li> 10 11 <li>classmethods, staticmethods</li> 12 13 <li>properties</li> 14 15 <li>super()</li> 16 17 <li>__slots__</li> 18 19 <li>decorators</li> 11 20 </ul> 12 21 </div><br /><div class="footer"><hr /><div style="float: left; font-style: italic;">Python 4 Programmers</div><div style="float: right;"><a accesskey="P" href="py4progs-7.html">Prev</a> | <a accesskey="I" href="py4progs-0.html">Index</a> | <a accesskey="N" href="py4progs-9.html">Next</a></div></div></body></html> -
hodgestar/Talks/PythonForProgrammers/html/py4progs-9.html
r735 r737 6 6 </head> 7 7 <body> 8 <div style='margin: auto; width: 50%;'><h2>Packaging</h2><ul> 9 <div class="highlight"><pre><span class="kn">from</span> <span class="nn">setuptools</span> <span class="kn">import</span> <span class="n">setup</span><span class="p">,</span> <span class="n">find_packages</span> 10 11 <span class="n">setup</span><span class="p">(</span> 12 <span class="n">name</span> <span class="o">=</span> <span class="s">"textutils"</span><span class="p">,</span> 13 <span class="n">version</span> <span class="o">=</span> <span class="s">"0.1"</span><span class="p">,</span> 14 <span class="n">description</span> <span class="o">=</span> <span class="s">"A Python replacement for Unix text utilities"</span><span class="p">,</span> 15 <span class="n">author</span> <span class="o">=</span> <span class="s">"Simon Cross"</span><span class="p">,</span> 16 <span class="n">author_email</span> <span class="o">=</span> <span class="s">"hodgestar+ctpug@gmail.com"</span><span class="p">,</span> 17 <span class="n">packages</span> <span class="o">=</span> <span class="n">find_packages</span><span class="p">(),</span> 18 <span class="n">scripts</span> <span class="o">=</span> <span class="p">[</span> 19 <span class="s">"text.py"</span><span class="p">,</span> 20 <span class="p">],</span> 21 <span class="p">)</span> 8 <div style='margin: auto; width: 50%;'><h2>Functional Programming</h2><ul> 9 <div class="highlight"><pre> 22 10 </pre></div> 23 11 24 <li><a href="http://pypi.python.org/">PyPI</a></li> 12 <li>List Comprehensions</li> 13 14 <li>Generator Expressions</li> 15 16 <li>lambda</li> 17 18 <li>closures</li> 19 20 <li>Iterators</li> 21 22 <li>Generators</li> 23 24 <li>Creating your own iterable / sequence / dict</li> 25 25 </ul> 26 26 </div><br /><div class="footer"><hr /><div style="float: left; font-style: italic;">Python 4 Programmers</div><div style="float: right;"><a accesskey="P" href="py4progs-8.html">Prev</a> | <a accesskey="I" href="py4progs-0.html">Index</a> | <a accesskey="N" href="py4progs-10.html">Next</a></div></div></body></html> -
hodgestar/Talks/PythonForProgrammers/slides/py4prog.py
r735 r737 206 206 ), 207 207 208 # ... 3 slides go here ... 209 210 Slide("Debugging", PYCON(r''' 208 Slide("More OO", 209 Bullet("Scopes, global keyword"), 210 Bullet("classmethods, staticmethods"), 211 Bullet("properties"), 212 Bullet("super()"), 213 Bullet("__slots__"), 214 Bullet("decorators"), 215 ), 216 217 Slide("Functional Programming", PYCODE(''' 211 218 '''), 219 Bullet("List Comprehensions"), 220 Bullet("Generator Expressions"), 221 Bullet("lambda"), 222 Bullet("closures"), 223 Bullet("Iterators"), 224 Bullet("Generators"), 225 Bullet("Creating your own iterable / sequence / dict"), 226 ), 227 228 Slide("Miscellaneous", 229 Bullet("os, os.path"), 230 Bullet("pkg_resources"), 231 Bullet("id()"), 232 Bullet("*args, **kwargs"), 233 Bullet("unicode"), 234 Bullet("encoding line for .py files."), 235 Bullet("StringIO"), 236 ), 237 238 Slide("Debugging and Internals", 239 Bullet("Interned objects"), 240 Bullet("gc"), 241 Bullet("Turning garbage collection on and off"), 242 Bullet("Reference counting"), 243 Bullet("pdb"), 244 Bullet("timeit, %timeit"), 212 245 ), 213 246 … … 231 264 232 265 Slide("Interacting with the Python Community", 233 Bullet("..."), 266 Bullet(URL("Python.org", "http://www.python.org")), 267 SubBullet( 268 Bullet(URL("PEP8", "http://www.python.org/dev/peps/")), 269 Bullet(URL("PEP8 Checker", "http://pypi.python.org/pypi/pep8")), 270 ), 271 Bullet(URL("Python Docs", "http://docs.python.org/")), 272 Bullet("import this"), 234 273 ), 235 274 -
hodgestar/Talks/PythonForProgrammers/slides/slide-notes.txt
r736 r737 1 1 Slide Cheat Sheet 2 2 ================= 3 4 * Introduce Ourselves 5 * What is Python 6 * Interpretted 7 * Bytecode 8 * Dynamically Typed 9 * Strongly Typed 3 10 4 11
