Changeset 737

Show
Ignore:
Timestamp:
03/06/10 08:49:19 (5 months ago)
Author:
hodgestar
Message:

Complete slides.

Location:
hodgestar/Talks/PythonForProgrammers
Files:
3 added
9 modified

Legend:

Unmodified
Added
Removed
  • hodgestar/Talks/PythonForProgrammers/example/text.py

    r728 r737  
    88UTILS = { 
    99    'sort': textutil.Sort, 
     10    'wc': textutil.WordCount, 
    1011} 
    1112 
  • hodgestar/Talks/PythonForProgrammers/example/textutil/__init__.py

    r728 r737  
    22 
    33from .sort import Sort 
     4from .wc import WordCount 
  • hodgestar/Talks/PythonForProgrammers/html/py4progs-0.html

    r733 r737  
    1515<li><a href='py4progs-6.html'>Classes and Basic OO</a></li> 
    1616<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> 
    2023</ol> 
    2124<br /></body></html> 
  • hodgestar/Talks/PythonForProgrammers/html/py4progs-10.html

    r733 r737  
    66</head> 
    77<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> 
    1022</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  
    66</head> 
    77<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> 
    1110 
    12 <li>New documentation!<ul><li>Interactive search -- in static HTML</li> 
     11<li>gc</li> 
    1312 
    14 <li>JSON index</li> 
     13<li>Turning garbage collection on and off</li> 
    1514 
    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> 
    1820</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  
    66</head> 
    77<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> 
    1120</ul> 
    1221</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  
    66</head> 
    77<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">&quot;textutils&quot;</span><span class="p">,</span> 
    13     <span class="n">version</span> <span class="o">=</span> <span class="s">&quot;0.1&quot;</span><span class="p">,</span> 
    14     <span class="n">description</span> <span class="o">=</span> <span class="s">&quot;A Python replacement for Unix text utilities&quot;</span><span class="p">,</span> 
    15     <span class="n">author</span> <span class="o">=</span> <span class="s">&quot;Simon Cross&quot;</span><span class="p">,</span> 
    16     <span class="n">author_email</span> <span class="o">=</span> <span class="s">&quot;hodgestar+ctpug@gmail.com&quot;</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">&quot;text.py&quot;</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> 
    2210</pre></div> 
    2311 
    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> 
    2525</ul> 
    2626</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  
    206206    ), 
    207207 
    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(''' 
    211218        '''), 
     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"), 
    212245    ), 
    213246 
     
    231264 
    232265    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"), 
    234273    ), 
    235274 
  • hodgestar/Talks/PythonForProgrammers/slides/slide-notes.txt

    r736 r737  
    11Slide Cheat Sheet 
    22================= 
     3 
     4* Introduce Ourselves 
     5* What is Python 
     6  * Interpretted 
     7  * Bytecode 
     8  * Dynamically Typed 
     9  * Strongly Typed 
    310 
    411