Please help for Python programming
M.E.Farmer
mefjr75 at hotmail.com
Tue Mar 22 08:37:09 EST 2005
Terry,
This was posted from google groups, can you see the indents?
# code snippet
convertpage = 0
form = None
for o, a in opts:
if o in ["-h", "--help"]:
Usage()
sys.exit()
if o in ["-o", "--output", "--out"]:
output = a
if o in ["-i", "--input", "--in"]:
input = a
if input in [".", "cwd"]:
input = os.getcwd()
Notice the 'fixed font / proportional font' link in the top right
corner.
I think they have "fixed" the problem.
M.E.Farmer
Terry Reedy wrote:
> This is what I see (minus the '> '):
>
> > while 1:
> > user, serviceType, msgType, inOut, date, time, numBytes =
> > aLog.GetNextMessage("")
> [etc]
>
> Advice: use spaces, not tabs, to indent posted code (some readers
discard
> tabs). Don't use google groups to post code (it deletes initial
spaces and
> won't, apparently, fix this bug). Use news.gmane.org group
> gmane.comp.python.genral instead (I believe they also have web
interface in
> addition to newsreader interface). If you really, really must post
thru
> google, prefix lines with char such as '|', even tho this kill cut
and
> pastability.
>
> Terry J. Reedy
More information about the Python-list
mailing list