Re: Basic Python help

2020-10-23 Thread mikael petterson
fredag 23 oktober 2020 kl. 13:22:55 UTC+2 skrev Frank Millman: > On 2020-10-23 12:41 PM, mikael petterson wrote: > > Hi, > > > > I need to use the following code but in java. > > > > END_DELIM = '\n##\n' > > def start_delim(data_len): return '\n#%s\n' % (data_len) > > data = "%s%s%s" % (start

Re: Basic Python help

2020-10-23 Thread Frank Millman
On 2020-10-23 12:41 PM, mikael petterson wrote: Hi, I need to use the following code but in java. END_DELIM = '\n##\n' def start_delim(data_len): return '\n#%s\n' % (data_len) data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) Can anyone help me to understand what it means: I

Basic Python help

2020-10-23 Thread mikael petterson
Hi, I need to use the following code but in java. END_DELIM = '\n##\n' def start_delim(data_len): return '\n#%s\n' % (data_len) data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) Can anyone help me to understand what it means: I am guessing now: a function defined "start_delim" ta

Re: Basic python help

2006-03-13 Thread John M. Gabriele
(Please don't top-post -- fixed) Kevin Feng wrote: > > > On 3/14/06 2:12 AM, in article [EMAIL PROTECTED], > "Gregor Horvath" <[EMAIL PROTECTED]> wrote: > > >>Kevin Feng schrieb: >> >> >>>More information about this error may be available in the server error log. >>> >>> >>> >>>Any suggestion

Re: Basic python help

2006-03-13 Thread Kevin Feng
No idea, I do not have permission to access the error log. On 3/14/06 2:12 AM, in article [EMAIL PROTECTED], "Gregor Horvath" <[EMAIL PROTECTED]> wrote: > Kevin Feng schrieb: > >> More information about this error may be available in the server error log. >> >> >> >> Any suggestions? Much

Re: Basic python help

2006-03-13 Thread Gregor Horvath
Kevin Feng schrieb: > More information about this error may be available in the server error log. > > > > Any suggestions? Much thanks. > What does the error log of the webserver say? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Basic python help

2006-03-13 Thread Kevin Feng
Title: Basic python help I have the following simple html file that is trying to send data to a python script, however, I am getting a weird server error: This is my HTML: Ticker 1 This is my Python: #!/usr/bin/python import cgi print "Content-type: text/html" p