1.
from slides import Lecture, NumSlide, Slide, Bullet, SubBullet ... Slide( "What's neat about PyLogo", Bullet("It's free, of course (and cross-platform and everything else you get from " "implementing it in Python)"), ...
2.
"""Append module search paths for third-party packages to sys.path ... In earlier versions of Python (up to 1.5a3), scripts or modules that needed to use ..... 'lib', 'python'+sys.version[:3], 'plat-%s' % sys.platform) if ...
3.
Revision 3802: /home/ianb/wsgi-presentation/logos Revision 3802: /home/ianb/wsgi-presentation/logos .. MSS.gif · TwistedLogo.png · aquarium.png · cherryPyLogo.gif · clarens.jpg · coil.png · crusader.gif ...
4.
html.py 29 Dec 2002 Ian Bicking <ianb@colorstudy.com> Kind of like ... ``html.javascript`` will wrap its arguments in <script>... tags. ``html.literal`` will allow you to give HTML source without any quoting. ...
5.
:Author: Daniel Savard, XSOLI Inc. Inheritance ----------- Why ... Well, the obvious approach is to create a table Person with a column that describes ... Well, the inheritance machinery described below does exactly this! ...
6.
#!/usr/bin/env python import pyid3lib from ogg.vorbis import ... filename = filename[:-1] return path(dir + '/' + filename + '. ... DISPLAY: print 'Trimming directory %s' % dir dir.rmdir() trim_dir(dir.abspath().parent) ...
7.
Python mock object library When using doctest, mock objects can be very simple. Here's an example of something we might test, a simple email sender:: >>> import smtplib >>> def ...
8.
#!/usr/bin/env python import pyid3lib from ogg.vorbis import ... filename = filename[:-1] return path(dir + '/' + filename + '. ... new) if not TESTING: if not new.parent.exists(): new.parent.makedirs() filename.move(new) ... e) except: print "Bad file: %s" % dir raise else: for ext in ['.mp3', ...
9.
import sys import types from sqlobject.include.pydispatch import ... sendExact = _debug_sendExact dispatcher.disconnect = _debug_disconnect dispatcher.connect = _debug_connect def _debug_send(signal=dispatcher. ...
10.
import re import urllib import annotate all_engines = [] class ... query=([^&]*)', r'aolsearch.aol.co.uk/image_browse.*[?&]query=([^&]*)'], 'http://aolsearch.aol.com/aol/imagehome') engine('MSN', [r'http://search.msn.com/. ...
|