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

You might want to point out that "val" did not need to be declared, and might discuss weak versus strong typing.

Also, I believe there is a strong preference for indentations to consist of 4 spaces; and that tabs should be avoided, since different editors may expand them to different tab-stops.

f  e  x


Statements may follow the colon on the same line, so formatting can still vary. Python just gets rid of brace quibbling in this context.
I might also be worth footnoting that python's caring about whitespace introduces some (slight) inconveniences in the UNIX and HTML worlds, where whitespace has traditionally not been a syntactic element. For example a number of times I've seen web pages where someone has just pasted the source of a python program and all the indentation is lost. One must retreat to the HTML source to recover it.

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.