Return to Home Page
      Blog     Consulting     Seminars     Calendar     Books     CD-ROMS     Newsletter     About     FAQ      Search
 

Consider including the code for printf or at least make reference to Norvig's IAQ.

def printf(format, *args): print format % args,

See: http://www.norvig.com/python-iaq.html
f  e  x


It might be worth mentioning here that Python's RE support is via an external module in the standad library - after all, Perl's RE support is an integral part of the syntax which, while powerful, is a lot "messier" than Python's nice tidy module.

f  e  x


I'd be tempted to split regular expressions out into a quick pair of paragraphs on their own instead of just 'dumping' them in here. Its not worth dealing with them in detail at this point, but they're completely irrelevant to printf processing (the context at hand) and there are a few neat (and different from perl) features worth pointing out to anyone accustomed to re. work in the first place.

f  e  x


I agree. The regex comment feels a little out of place.

f  e  x



Add your comment below. Use an empty line between each paragraph. Paragraphs will be automatically formatted, and single carriage returns will be respected. Use <code> to begin a code block, and </code> to end a code block. Your email address will not be visible to spam harvesters or used in any way except to contact you with further questions.

Your Email Address:

Search     Home     WebLog     Consulting     Seminars     Calendar     Books     CD-ROMS     Newsletter     About     Contact     Site Design     Server Maintenance     Powered by Zope
©2007 MindView, Inc.