Broken Library Code, suggested course of action

2007-02-05 Thread Melih Onvural
understand from looking at the docs that tuples cannot have operations done onto them as they are immutable and sans index, but there has to be a way to dive into the http address and parse what's there. Thanks for any suggestions, --Melih Onvural -- http://mail.python.org/mailman/listinfo/python-list

SyntaxError: 'return' outside function

2007-01-31 Thread Melih Onvural
Has anyone seen this error before and been able to solve it? I can't seem to find anything that leads to a solution. I found this post http://zope.org/Collectors/Zope/1809, but can't really understand it. I've attached my code below to see if anything looks funny. It happens at the very last

Re: SyntaxError: 'return' outside function

2007-01-31 Thread Melih Onvural
Thanks all, I did a massive make sure everything is indents and not spaces across all of my files and now things are running much more smoothly. I appreciate the responses. --melih On Jan 31, 4:49 pm, [EMAIL PROTECTED] wrote: Melih Has anyone seen this error before and been able to solve

Re: Executing Javascript, then reading value

2007-01-30 Thread Melih Onvural
In fact what you're describing is exactly what I needed. I ended up finding a way to execute the javascript using Rhino and then capturing the result. Not exactly what I wanted to do, but once I found it out, it works. Melih Onvural On Jan 30, 2:57 pm, John Nagle [EMAIL PROTECTED] wrote: Melih

Executing Javascript, then reading value

2007-01-29 Thread Melih Onvural
is the javascript function and not the calculated value. Is there anyway to get the javascript to execute first, and then return to me the value? thanks in advance, Melih Onvural -- http://mail.python.org/mailman/listinfo/python-list

Re: Executing Javascript, then reading value

2007-01-29 Thread Melih Onvural
Thanks, let me check out this route, and then I'll post the results. Melih Onvural On Jan 29, 4:04 pm, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 29 Jan 2007 12:44:07 -0800, Melih Onvural [EMAIL PROTECTED] wrote: I need to execute some javascript and then read the value as part

problem moving from char to integer

2006-09-26 Thread Melih Onvural
Group, I'm trying to get a very basic cast from a string to an integer working. Here is what I'm doing: for i in url: result[counter] = int(i) counter += 1; return result; anything that I'm doing drastically wrong? Mac OS 10.4, MacPython upgraded to 2.4. Thanks for any help, Melih

Re: problem moving from char to integer

2006-09-26 Thread Melih Onvural
literal for int(): i and here is the full code: def strord(url): counter=0; for i in url: result[counter] = int(i); counter += 1; return result; Thanks Pontus Ekberg wrote: Melih Onvural wrote: Group, I'm trying to get a very basic cast from a string

Re: problem moving from char to integer

2006-09-26 Thread Melih Onvural
them to their integer value. Thanks for the help and the advice on writing in Python. Definitely learning to do things right is the goal here. Also, the ord function worked. Thanks. Melih John Machin wrote: Melih Onvural wrote: This is the error message that I'm having a tough time