Muli Ben-Yehuda wrote on 2003-07-05: > Updated slides are now available at > http://www.mulix.org/lectures/python_intro_2/python_intro_2.pdf. > LaTeX source available at > http://www.mulix.org/lectures/python_intro_2/python_intro_2.tex. > Slide 7 (control flow): - The bit about "pass when waiting for an external event or to do nothing" is confusing IMHO; just say it's a no-op, needed because the syntax forbids suites (intented blocks) to be empty. - Perhaps mention ``else: ...`` on ``for`` and ``while`` loops. Rare but very clean and handy when you need it.
Slide 13 (modules): - You show how to use them but not how to create them. Say it just executes a file and captures its namespace. Slide 14 (dir): - If you mention `__doc__`, show how to create one (who will remember from slide 8?). Say it also works with modules & classes. - Definitely mention `help()`! Last slides (classes): These leave the impression they were cut off. If you have the time: - I suggest showing off some magic attrs, e.g. `__add__`, `__str__` and perhaps `__getattr__`. `__iter__` is very cool but not worth showing unless you also have the time for generators... - Say some words about Python's culture of type checking by implemented interfaces rather than acutal type. Last, 1 - 2 slides with overview of the standard library could be nice. You can steal from the quickref_ ;-). Of course not all these things require presence in the slides, some can be just said out-of-band (and some are just bad ideas, make your judgement)... . _quickref: http://rgruet.free.fr/PQR2.2.html -- Beni Cherniavsky <[EMAIL PROTECTED]> Israel is moving to 7-digit cellphone numbers since the current 6-digit scheme, although prolonged for some time by supernetting, "comes to the end of its useful life, once again due to address space exhaustion" [RFC 1606 on IPv9 :-]. Why won't they just use DNS? ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]